|
Liferay 7.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<DDLRecord>
com.liferay.portlet.dynamicdatalists.service.persistence.impl.DDLRecordPersistenceImpl
@ProviderType public class DDLRecordPersistenceImpl
The persistence implementation for the d d l record service.
Caching information and settings can be found in portal.properties
DDLRecordPersistence,
DDLRecordUtil| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR |
| Constructor Summary | |
|---|---|
DDLRecordPersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Initializes the d d l record persistence. |
void |
cacheResult(DDLRecord ddlRecord)
Caches the d d l record in the entity cache if it is enabled. |
void |
cacheResult(List<DDLRecord> ddlRecords)
Caches the d d l records in the entity cache if it is enabled. |
protected void |
cacheUniqueFindersCache(DDLRecord ddlRecord)
|
void |
clearCache()
Clears the cache for all d d l records. |
void |
clearCache(DDLRecord ddlRecord)
Clears the cache for the d d l record. |
void |
clearCache(List<DDLRecord> ddlRecords)
Clears the cache for a List instances of this model. |
protected void |
clearUniqueFindersCache(DDLRecord ddlRecord)
|
int |
countAll()
Returns the number of d d l records. |
int |
countByCompanyId(long companyId)
Returns the number of d d l records where companyId = ?. |
int |
countByR_U(long recordSetId,
long userId)
Returns the number of d d l records where recordSetId = ? and userId = ?. |
int |
countByRecordSetId(long recordSetId)
Returns the number of d d l records where recordSetId = ?. |
int |
countByUuid_C(String uuid,
long companyId)
Returns the number of d d l records where uuid = ? and companyId = ?. |
int |
countByUUID_G(String uuid,
long groupId)
Returns the number of d d l records where uuid = ? and groupId = ?. |
int |
countByUuid(String uuid)
Returns the number of d d l records where uuid = ?. |
DDLRecord |
create(long recordId)
Creates a new d d l record with the primary key. |
void |
destroy()
|
DDLRecord |
fetchByCompanyId_First(long companyId,
OrderByComparator<DDLRecord> orderByComparator)
Returns the first d d l record in the ordered set where companyId = ?. |
DDLRecord |
fetchByCompanyId_Last(long companyId,
OrderByComparator<DDLRecord> orderByComparator)
Returns the last d d l record in the ordered set where companyId = ?. |
DDLRecord |
fetchByPrimaryKey(long recordId)
Returns the d d l record with the primary key or returns null if it could not be found. |
DDLRecord |
fetchByPrimaryKey(Serializable primaryKey)
Returns the d d l record with the primary key or returns null if it could not be found. |
Map<Serializable,DDLRecord> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
|
DDLRecord |
fetchByR_U_First(long recordSetId,
long userId,
OrderByComparator<DDLRecord> orderByComparator)
Returns the first d d l record in the ordered set where recordSetId = ? and userId = ?. |
DDLRecord |
fetchByR_U_Last(long recordSetId,
long userId,
OrderByComparator<DDLRecord> orderByComparator)
Returns the last d d l record in the ordered set where recordSetId = ? and userId = ?. |
DDLRecord |
fetchByRecordSetId_First(long recordSetId,
OrderByComparator<DDLRecord> orderByComparator)
Returns the first d d l record in the ordered set where recordSetId = ?. |
DDLRecord |
fetchByRecordSetId_Last(long recordSetId,
OrderByComparator<DDLRecord> orderByComparator)
Returns the last d d l record in the ordered set where recordSetId = ?. |
DDLRecord |
fetchByUuid_C_First(String uuid,
long companyId,
OrderByComparator<DDLRecord> orderByComparator)
Returns the first d d l record in the ordered set where uuid = ? and companyId = ?. |
DDLRecord |
fetchByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<DDLRecord> orderByComparator)
Returns the last d d l record in the ordered set where uuid = ? and companyId = ?. |
DDLRecord |
fetchByUuid_First(String uuid,
OrderByComparator<DDLRecord> orderByComparator)
Returns the first d d l record in the ordered set where uuid = ?. |
DDLRecord |
fetchByUUID_G(String uuid,
long groupId)
Returns the d d l record where uuid = ? and groupId = ? or returns null if it could not be found. |
DDLRecord |
fetchByUUID_G(String uuid,
long groupId,
boolean retrieveFromCache)
Returns the d d l record where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. |
DDLRecord |
fetchByUuid_Last(String uuid,
OrderByComparator<DDLRecord> orderByComparator)
Returns the last d d l record in the ordered set where uuid = ?. |
List<DDLRecord> |
findAll()
Returns all the d d l records. |
List<DDLRecord> |
findAll(int start,
int end)
Returns a range of all the d d l records. |
List<DDLRecord> |
findAll(int start,
int end,
OrderByComparator<DDLRecord> orderByComparator)
Returns an ordered range of all the d d l records. |
DDLRecord |
findByCompanyId_First(long companyId,
OrderByComparator<DDLRecord> orderByComparator)
Returns the first d d l record in the ordered set where companyId = ?. |
DDLRecord |
findByCompanyId_Last(long companyId,
OrderByComparator<DDLRecord> orderByComparator)
Returns the last d d l record in the ordered set where companyId = ?. |
DDLRecord[] |
findByCompanyId_PrevAndNext(long recordId,
long companyId,
OrderByComparator<DDLRecord> orderByComparator)
Returns the d d l records before and after the current d d l record in the ordered set where companyId = ?. |
List<DDLRecord> |
findByCompanyId(long companyId)
Returns all the d d l records where companyId = ?. |
List<DDLRecord> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the d d l records where companyId = ?. |
List<DDLRecord> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<DDLRecord> orderByComparator)
Returns an ordered range of all the d d l records where companyId = ?. |
DDLRecord |
findByPrimaryKey(long recordId)
Returns the d d l record with the primary key or throws a NoSuchRecordException if it could not be found. |
DDLRecord |
findByPrimaryKey(Serializable primaryKey)
Returns the d d l record with the primary key or throws a NoSuchModelException if it could not be found. |
DDLRecord |
findByR_U_First(long recordSetId,
long userId,
OrderByComparator<DDLRecord> orderByComparator)
Returns the first d d l record in the ordered set where recordSetId = ? and userId = ?. |
DDLRecord |
findByR_U_Last(long recordSetId,
long userId,
OrderByComparator<DDLRecord> orderByComparator)
Returns the last d d l record in the ordered set where recordSetId = ? and userId = ?. |
DDLRecord[] |
findByR_U_PrevAndNext(long recordId,
long recordSetId,
long userId,
OrderByComparator<DDLRecord> orderByComparator)
Returns the d d l records before and after the current d d l record in the ordered set where recordSetId = ? and userId = ?. |
List<DDLRecord> |
findByR_U(long recordSetId,
long userId)
Returns all the d d l records where recordSetId = ? and userId = ?. |
List<DDLRecord> |
findByR_U(long recordSetId,
long userId,
int start,
int end)
Returns a range of all the d d l records where recordSetId = ? and userId = ?. |
List<DDLRecord> |
findByR_U(long recordSetId,
long userId,
int start,
int end,
OrderByComparator<DDLRecord> orderByComparator)
Returns an ordered range of all the d d l records where recordSetId = ? and userId = ?. |
DDLRecord |
findByRecordSetId_First(long recordSetId,
OrderByComparator<DDLRecord> orderByComparator)
Returns the first d d l record in the ordered set where recordSetId = ?. |
DDLRecord |
findByRecordSetId_Last(long recordSetId,
OrderByComparator<DDLRecord> orderByComparator)
Returns the last d d l record in the ordered set where recordSetId = ?. |
DDLRecord[] |
findByRecordSetId_PrevAndNext(long recordId,
long recordSetId,
OrderByComparator<DDLRecord> orderByComparator)
Returns the d d l records before and after the current d d l record in the ordered set where recordSetId = ?. |
List<DDLRecord> |
findByRecordSetId(long recordSetId)
Returns all the d d l records where recordSetId = ?. |
List<DDLRecord> |
findByRecordSetId(long recordSetId,
int start,
int end)
Returns a range of all the d d l records where recordSetId = ?. |
List<DDLRecord> |
findByRecordSetId(long recordSetId,
int start,
int end,
OrderByComparator<DDLRecord> orderByComparator)
Returns an ordered range of all the d d l records where recordSetId = ?. |
DDLRecord |
findByUuid_C_First(String uuid,
long companyId,
OrderByComparator<DDLRecord> orderByComparator)
Returns the first d d l record in the ordered set where uuid = ? and companyId = ?. |
DDLRecord |
findByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<DDLRecord> orderByComparator)
Returns the last d d l record in the ordered set where uuid = ? and companyId = ?. |
DDLRecord[] |
findByUuid_C_PrevAndNext(long recordId,
String uuid,
long companyId,
OrderByComparator<DDLRecord> orderByComparator)
Returns the d d l records before and after the current d d l record in the ordered set where uuid = ? and companyId = ?. |
List<DDLRecord> |
findByUuid_C(String uuid,
long companyId)
Returns all the d d l records where uuid = ? and companyId = ?. |
List<DDLRecord> |
findByUuid_C(String uuid,
long companyId,
int start,
int end)
Returns a range of all the d d l records where uuid = ? and companyId = ?. |
List<DDLRecord> |
findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<DDLRecord> orderByComparator)
Returns an ordered range of all the d d l records where uuid = ? and companyId = ?. |
DDLRecord |
findByUuid_First(String uuid,
OrderByComparator<DDLRecord> orderByComparator)
Returns the first d d l record in the ordered set where uuid = ?. |
DDLRecord |
findByUUID_G(String uuid,
long groupId)
Returns the d d l record where uuid = ? and groupId = ? or throws a NoSuchRecordException if it could not be found. |
DDLRecord |
findByUuid_Last(String uuid,
OrderByComparator<DDLRecord> orderByComparator)
Returns the last d d l record in the ordered set where uuid = ?. |
DDLRecord[] |
findByUuid_PrevAndNext(long recordId,
String uuid,
OrderByComparator<DDLRecord> orderByComparator)
Returns the d d l records before and after the current d d l record in the ordered set where uuid = ?. |
List<DDLRecord> |
findByUuid(String uuid)
Returns all the d d l records where uuid = ?. |
List<DDLRecord> |
findByUuid(String uuid,
int start,
int end)
Returns a range of all the d d l records where uuid = ?. |
List<DDLRecord> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator<DDLRecord> orderByComparator)
Returns an ordered range of all the d d l records where uuid = ?. |
protected Set<String> |
getBadColumnNames()
|
protected DDLRecord |
getByCompanyId_PrevAndNext(Session session,
DDLRecord ddlRecord,
long companyId,
OrderByComparator<DDLRecord> orderByComparator,
boolean previous)
|
protected DDLRecord |
getByR_U_PrevAndNext(Session session,
DDLRecord ddlRecord,
long recordSetId,
long userId,
OrderByComparator<DDLRecord> orderByComparator,
boolean previous)
|
protected DDLRecord |
getByRecordSetId_PrevAndNext(Session session,
DDLRecord ddlRecord,
long recordSetId,
OrderByComparator<DDLRecord> orderByComparator,
boolean previous)
|
protected DDLRecord |
getByUuid_C_PrevAndNext(Session session,
DDLRecord ddlRecord,
String uuid,
long companyId,
OrderByComparator<DDLRecord> orderByComparator,
boolean previous)
|
protected DDLRecord |
getByUuid_PrevAndNext(Session session,
DDLRecord ddlRecord,
String uuid,
OrderByComparator<DDLRecord> orderByComparator,
boolean previous)
|
DDLRecord |
remove(long recordId)
Removes the d d l record with the primary key from the database. |
DDLRecord |
remove(Serializable primaryKey)
Removes the d d l record with the primary key from the database. |
void |
removeAll()
Removes all the d d l records from the database. |
void |
removeByCompanyId(long companyId)
Removes all the d d l records where companyId = ? from the database. |
void |
removeByR_U(long recordSetId,
long userId)
Removes all the d d l records where recordSetId = ? and userId = ? from the database. |
void |
removeByRecordSetId(long recordSetId)
Removes all the d d l records where recordSetId = ? from the database. |
void |
removeByUuid_C(String uuid,
long companyId)
Removes all the d d l records where uuid = ? and companyId = ? from the database. |
DDLRecord |
removeByUUID_G(String uuid,
long groupId)
Removes the d d l record where uuid = ? and groupId = ? from the database. |
void |
removeByUuid(String uuid)
Removes all the d d l records where uuid = ? from the database. |
protected DDLRecord |
removeImpl(DDLRecord ddlRecord)
Removes the model instance from the database. |
protected DDLRecord |
toUnwrappedModel(DDLRecord ddlRecord)
|
DDLRecord |
updateImpl(DDLRecord ddlRecord)
Updates the model instance in the database or adds it if it does not yet exist. |
| Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update |
| Field Detail |
|---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID
public static final FinderPath FINDER_PATH_COUNT_BY_UUID
public static final FinderPath FINDER_PATH_FETCH_BY_UUID_G
public static final FinderPath FINDER_PATH_COUNT_BY_UUID_G
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C
public static final FinderPath FINDER_PATH_COUNT_BY_UUID_C
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_RECORDSETID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_RECORDSETID
public static final FinderPath FINDER_PATH_COUNT_BY_RECORDSETID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_R_U
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_R_U
public static final FinderPath FINDER_PATH_COUNT_BY_R_U
| Constructor Detail |
|---|
public DDLRecordPersistenceImpl()
| Method Detail |
|---|
public List<DDLRecord> findByUuid(String uuid)
findByUuid in interface DDLRecordPersistenceuuid - the uuid
public List<DDLRecord> findByUuid(String uuid,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DDLRecordModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByUuid in interface DDLRecordPersistenceuuid - the uuidstart - the lower bound of the range of d d l recordsend - the upper bound of the range of d d l records (not inclusive)
public List<DDLRecord> findByUuid(String uuid,
int start,
int end,
OrderByComparator<DDLRecord> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DDLRecordModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByUuid in interface DDLRecordPersistenceuuid - the uuidstart - the lower bound of the range of d d l recordsend - the upper bound of the range of d d l records (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public DDLRecord findByUuid_First(String uuid,
OrderByComparator<DDLRecord> orderByComparator)
throws NoSuchRecordException
findByUuid_First in interface DDLRecordPersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecordException - if a matching d d l record could not be found
public DDLRecord fetchByUuid_First(String uuid,
OrderByComparator<DDLRecord> orderByComparator)
fetchByUuid_First in interface DDLRecordPersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d l record could not be found
public DDLRecord findByUuid_Last(String uuid,
OrderByComparator<DDLRecord> orderByComparator)
throws NoSuchRecordException
findByUuid_Last in interface DDLRecordPersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecordException - if a matching d d l record could not be found
public DDLRecord fetchByUuid_Last(String uuid,
OrderByComparator<DDLRecord> orderByComparator)
fetchByUuid_Last in interface DDLRecordPersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d l record could not be found
public DDLRecord[] findByUuid_PrevAndNext(long recordId,
String uuid,
OrderByComparator<DDLRecord> orderByComparator)
throws NoSuchRecordException
findByUuid_PrevAndNext in interface DDLRecordPersistencerecordId - the primary key of the current d d l recorduuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecordException - if a d d l record with the primary key could not be found
protected DDLRecord getByUuid_PrevAndNext(Session session,
DDLRecord ddlRecord,
String uuid,
OrderByComparator<DDLRecord> orderByComparator,
boolean previous)
public void removeByUuid(String uuid)
removeByUuid in interface DDLRecordPersistenceuuid - the uuidpublic int countByUuid(String uuid)
countByUuid in interface DDLRecordPersistenceuuid - the uuid
public DDLRecord findByUUID_G(String uuid,
long groupId)
throws NoSuchRecordException
NoSuchRecordException if it could not be found.
findByUUID_G in interface DDLRecordPersistenceuuid - the uuidgroupId - the group ID
NoSuchRecordException - if a matching d d l record could not be found
public DDLRecord fetchByUUID_G(String uuid,
long groupId)
null if it could not be found. Uses the finder cache.
fetchByUUID_G in interface DDLRecordPersistenceuuid - the uuidgroupId - the group ID
null if a matching d d l record could not be found
public DDLRecord fetchByUUID_G(String uuid,
long groupId,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
fetchByUUID_G in interface DDLRecordPersistenceuuid - the uuidgroupId - the group IDretrieveFromCache - whether to use the finder cache
null if a matching d d l record could not be found
public DDLRecord removeByUUID_G(String uuid,
long groupId)
throws NoSuchRecordException
removeByUUID_G in interface DDLRecordPersistenceuuid - the uuidgroupId - the group ID
NoSuchRecordException
public int countByUUID_G(String uuid,
long groupId)
countByUUID_G in interface DDLRecordPersistenceuuid - the uuidgroupId - the group ID
public List<DDLRecord> findByUuid_C(String uuid,
long companyId)
findByUuid_C in interface DDLRecordPersistenceuuid - the uuidcompanyId - the company ID
public List<DDLRecord> findByUuid_C(String uuid,
long companyId,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DDLRecordModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByUuid_C in interface DDLRecordPersistenceuuid - the uuidcompanyId - the company IDstart - the lower bound of the range of d d l recordsend - the upper bound of the range of d d l records (not inclusive)
public List<DDLRecord> findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<DDLRecord> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DDLRecordModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByUuid_C in interface DDLRecordPersistenceuuid - the uuidcompanyId - the company IDstart - the lower bound of the range of d d l recordsend - the upper bound of the range of d d l records (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public DDLRecord findByUuid_C_First(String uuid,
long companyId,
OrderByComparator<DDLRecord> orderByComparator)
throws NoSuchRecordException
findByUuid_C_First in interface DDLRecordPersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecordException - if a matching d d l record could not be found
public DDLRecord fetchByUuid_C_First(String uuid,
long companyId,
OrderByComparator<DDLRecord> orderByComparator)
fetchByUuid_C_First in interface DDLRecordPersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d l record could not be found
public DDLRecord findByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<DDLRecord> orderByComparator)
throws NoSuchRecordException
findByUuid_C_Last in interface DDLRecordPersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecordException - if a matching d d l record could not be found
public DDLRecord fetchByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<DDLRecord> orderByComparator)
fetchByUuid_C_Last in interface DDLRecordPersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d l record could not be found
public DDLRecord[] findByUuid_C_PrevAndNext(long recordId,
String uuid,
long companyId,
OrderByComparator<DDLRecord> orderByComparator)
throws NoSuchRecordException
findByUuid_C_PrevAndNext in interface DDLRecordPersistencerecordId - the primary key of the current d d l recorduuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecordException - if a d d l record with the primary key could not be found
protected DDLRecord getByUuid_C_PrevAndNext(Session session,
DDLRecord ddlRecord,
String uuid,
long companyId,
OrderByComparator<DDLRecord> orderByComparator,
boolean previous)
public void removeByUuid_C(String uuid,
long companyId)
removeByUuid_C in interface DDLRecordPersistenceuuid - the uuidcompanyId - the company ID
public int countByUuid_C(String uuid,
long companyId)
countByUuid_C in interface DDLRecordPersistenceuuid - the uuidcompanyId - the company ID
public List<DDLRecord> findByCompanyId(long companyId)
findByCompanyId in interface DDLRecordPersistencecompanyId - the company ID
public List<DDLRecord> findByCompanyId(long companyId,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DDLRecordModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByCompanyId in interface DDLRecordPersistencecompanyId - the company IDstart - the lower bound of the range of d d l recordsend - the upper bound of the range of d d l records (not inclusive)
public List<DDLRecord> findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<DDLRecord> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DDLRecordModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByCompanyId in interface DDLRecordPersistencecompanyId - the company IDstart - the lower bound of the range of d d l recordsend - the upper bound of the range of d d l records (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public DDLRecord findByCompanyId_First(long companyId,
OrderByComparator<DDLRecord> orderByComparator)
throws NoSuchRecordException
findByCompanyId_First in interface DDLRecordPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecordException - if a matching d d l record could not be found
public DDLRecord fetchByCompanyId_First(long companyId,
OrderByComparator<DDLRecord> orderByComparator)
fetchByCompanyId_First in interface DDLRecordPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d l record could not be found
public DDLRecord findByCompanyId_Last(long companyId,
OrderByComparator<DDLRecord> orderByComparator)
throws NoSuchRecordException
findByCompanyId_Last in interface DDLRecordPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecordException - if a matching d d l record could not be found
public DDLRecord fetchByCompanyId_Last(long companyId,
OrderByComparator<DDLRecord> orderByComparator)
fetchByCompanyId_Last in interface DDLRecordPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d l record could not be found
public DDLRecord[] findByCompanyId_PrevAndNext(long recordId,
long companyId,
OrderByComparator<DDLRecord> orderByComparator)
throws NoSuchRecordException
findByCompanyId_PrevAndNext in interface DDLRecordPersistencerecordId - the primary key of the current d d l recordcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecordException - if a d d l record with the primary key could not be found
protected DDLRecord getByCompanyId_PrevAndNext(Session session,
DDLRecord ddlRecord,
long companyId,
OrderByComparator<DDLRecord> orderByComparator,
boolean previous)
public void removeByCompanyId(long companyId)
removeByCompanyId in interface DDLRecordPersistencecompanyId - the company IDpublic int countByCompanyId(long companyId)
countByCompanyId in interface DDLRecordPersistencecompanyId - the company ID
public List<DDLRecord> findByRecordSetId(long recordSetId)
findByRecordSetId in interface DDLRecordPersistencerecordSetId - the record set ID
public List<DDLRecord> findByRecordSetId(long recordSetId,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DDLRecordModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByRecordSetId in interface DDLRecordPersistencerecordSetId - the record set IDstart - the lower bound of the range of d d l recordsend - the upper bound of the range of d d l records (not inclusive)
public List<DDLRecord> findByRecordSetId(long recordSetId,
int start,
int end,
OrderByComparator<DDLRecord> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DDLRecordModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByRecordSetId in interface DDLRecordPersistencerecordSetId - the record set IDstart - the lower bound of the range of d d l recordsend - the upper bound of the range of d d l records (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public DDLRecord findByRecordSetId_First(long recordSetId,
OrderByComparator<DDLRecord> orderByComparator)
throws NoSuchRecordException
findByRecordSetId_First in interface DDLRecordPersistencerecordSetId - the record set IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecordException - if a matching d d l record could not be found
public DDLRecord fetchByRecordSetId_First(long recordSetId,
OrderByComparator<DDLRecord> orderByComparator)
fetchByRecordSetId_First in interface DDLRecordPersistencerecordSetId - the record set IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d l record could not be found
public DDLRecord findByRecordSetId_Last(long recordSetId,
OrderByComparator<DDLRecord> orderByComparator)
throws NoSuchRecordException
findByRecordSetId_Last in interface DDLRecordPersistencerecordSetId - the record set IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecordException - if a matching d d l record could not be found
public DDLRecord fetchByRecordSetId_Last(long recordSetId,
OrderByComparator<DDLRecord> orderByComparator)
fetchByRecordSetId_Last in interface DDLRecordPersistencerecordSetId - the record set IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d l record could not be found
public DDLRecord[] findByRecordSetId_PrevAndNext(long recordId,
long recordSetId,
OrderByComparator<DDLRecord> orderByComparator)
throws NoSuchRecordException
findByRecordSetId_PrevAndNext in interface DDLRecordPersistencerecordId - the primary key of the current d d l recordrecordSetId - the record set IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecordException - if a d d l record with the primary key could not be found
protected DDLRecord getByRecordSetId_PrevAndNext(Session session,
DDLRecord ddlRecord,
long recordSetId,
OrderByComparator<DDLRecord> orderByComparator,
boolean previous)
public void removeByRecordSetId(long recordSetId)
removeByRecordSetId in interface DDLRecordPersistencerecordSetId - the record set IDpublic int countByRecordSetId(long recordSetId)
countByRecordSetId in interface DDLRecordPersistencerecordSetId - the record set ID
public List<DDLRecord> findByR_U(long recordSetId,
long userId)
findByR_U in interface DDLRecordPersistencerecordSetId - the record set IDuserId - the user ID
public List<DDLRecord> findByR_U(long recordSetId,
long userId,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DDLRecordModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByR_U in interface DDLRecordPersistencerecordSetId - the record set IDuserId - the user IDstart - the lower bound of the range of d d l recordsend - the upper bound of the range of d d l records (not inclusive)
public List<DDLRecord> findByR_U(long recordSetId,
long userId,
int start,
int end,
OrderByComparator<DDLRecord> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DDLRecordModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByR_U in interface DDLRecordPersistencerecordSetId - the record set IDuserId - the user IDstart - the lower bound of the range of d d l recordsend - the upper bound of the range of d d l records (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public DDLRecord findByR_U_First(long recordSetId,
long userId,
OrderByComparator<DDLRecord> orderByComparator)
throws NoSuchRecordException
findByR_U_First in interface DDLRecordPersistencerecordSetId - the record set IDuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecordException - if a matching d d l record could not be found
public DDLRecord fetchByR_U_First(long recordSetId,
long userId,
OrderByComparator<DDLRecord> orderByComparator)
fetchByR_U_First in interface DDLRecordPersistencerecordSetId - the record set IDuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d l record could not be found
public DDLRecord findByR_U_Last(long recordSetId,
long userId,
OrderByComparator<DDLRecord> orderByComparator)
throws NoSuchRecordException
findByR_U_Last in interface DDLRecordPersistencerecordSetId - the record set IDuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecordException - if a matching d d l record could not be found
public DDLRecord fetchByR_U_Last(long recordSetId,
long userId,
OrderByComparator<DDLRecord> orderByComparator)
fetchByR_U_Last in interface DDLRecordPersistencerecordSetId - the record set IDuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d l record could not be found
public DDLRecord[] findByR_U_PrevAndNext(long recordId,
long recordSetId,
long userId,
OrderByComparator<DDLRecord> orderByComparator)
throws NoSuchRecordException
findByR_U_PrevAndNext in interface DDLRecordPersistencerecordId - the primary key of the current d d l recordrecordSetId - the record set IDuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecordException - if a d d l record with the primary key could not be found
protected DDLRecord getByR_U_PrevAndNext(Session session,
DDLRecord ddlRecord,
long recordSetId,
long userId,
OrderByComparator<DDLRecord> orderByComparator,
boolean previous)
public void removeByR_U(long recordSetId,
long userId)
removeByR_U in interface DDLRecordPersistencerecordSetId - the record set IDuserId - the user ID
public int countByR_U(long recordSetId,
long userId)
countByR_U in interface DDLRecordPersistencerecordSetId - the record set IDuserId - the user ID
public void cacheResult(DDLRecord ddlRecord)
cacheResult in interface DDLRecordPersistenceddlRecord - the d d l recordpublic void cacheResult(List<DDLRecord> ddlRecords)
cacheResult in interface DDLRecordPersistenceddlRecords - the d d l recordspublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<DDLRecord>clearCache in class BasePersistenceImpl<DDLRecord>public void clearCache(DDLRecord ddlRecord)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<DDLRecord>clearCache in class BasePersistenceImpl<DDLRecord>ddlRecord - the instance of this model to clear the cache forpublic void clearCache(List<DDLRecord> ddlRecords)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<DDLRecord>clearCache in class BasePersistenceImpl<DDLRecord>ddlRecords - the List instances of this model to clear the cache forprotected void cacheUniqueFindersCache(DDLRecord ddlRecord)
protected void clearUniqueFindersCache(DDLRecord ddlRecord)
public DDLRecord create(long recordId)
create in interface DDLRecordPersistencerecordId - the primary key for the new d d l record
public DDLRecord remove(long recordId)
throws NoSuchRecordException
remove in interface DDLRecordPersistencerecordId - the primary key of the d d l record
NoSuchRecordException - if a d d l record with the primary key could not be found
public DDLRecord remove(Serializable primaryKey)
throws NoSuchRecordException
remove in interface BasePersistence<DDLRecord>remove in class BasePersistenceImpl<DDLRecord>primaryKey - the primary key of the d d l record
NoSuchRecordException - if a d d l record with the primary key could not be foundprotected DDLRecord removeImpl(DDLRecord ddlRecord)
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<DDLRecord>ddlRecord - the model instance to remove
public DDLRecord updateImpl(DDLRecord ddlRecord)
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface DDLRecordPersistenceupdateImpl in class BasePersistenceImpl<DDLRecord>ddlRecord - the model instance to update
protected DDLRecord toUnwrappedModel(DDLRecord ddlRecord)
public DDLRecord findByPrimaryKey(Serializable primaryKey)
throws NoSuchRecordException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface BasePersistence<DDLRecord>findByPrimaryKey in class BasePersistenceImpl<DDLRecord>primaryKey - the primary key of the d d l record
NoSuchRecordException - if a d d l record with the primary key could not be found
public DDLRecord findByPrimaryKey(long recordId)
throws NoSuchRecordException
NoSuchRecordException if it could not be found.
findByPrimaryKey in interface DDLRecordPersistencerecordId - the primary key of the d d l record
NoSuchRecordException - if a d d l record with the primary key could not be foundpublic DDLRecord fetchByPrimaryKey(Serializable primaryKey)
null if it could not be found.
fetchByPrimaryKey in interface BasePersistence<DDLRecord>fetchByPrimaryKey in class BasePersistenceImpl<DDLRecord>primaryKey - the primary key of the d d l record
null if a d d l record with the primary key could not be foundpublic DDLRecord fetchByPrimaryKey(long recordId)
null if it could not be found.
fetchByPrimaryKey in interface DDLRecordPersistencerecordId - the primary key of the d d l record
null if a d d l record with the primary key could not be foundpublic Map<Serializable,DDLRecord> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys in interface BasePersistence<DDLRecord>fetchByPrimaryKeys in interface DDLRecordPersistencefetchByPrimaryKeys in class BasePersistenceImpl<DDLRecord>public List<DDLRecord> findAll()
findAll in interface DDLRecordPersistence
public List<DDLRecord> findAll(int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DDLRecordModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll in interface DDLRecordPersistencestart - the lower bound of the range of d d l recordsend - the upper bound of the range of d d l records (not inclusive)
public List<DDLRecord> findAll(int start,
int end,
OrderByComparator<DDLRecord> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DDLRecordModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll in interface DDLRecordPersistencestart - the lower bound of the range of d d l recordsend - the upper bound of the range of d d l records (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public void removeAll()
removeAll in interface DDLRecordPersistencepublic int countAll()
countAll in interface DDLRecordPersistenceprotected Set<String> getBadColumnNames()
getBadColumnNames in class BasePersistenceImpl<DDLRecord>public void afterPropertiesSet()
public void destroy()
|
Liferay 7.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||