|
Liferay 6.1.2-ce-ga3 | |||||||||
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.DDLRecordPersistenceImpl
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, 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 |
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_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 |
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. |
DDLRecord |
fetchByR_U_First(long recordSetId,
long userId,
OrderByComparator 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 orderByComparator)
Returns the last d d l record in the ordered set where recordSetId = ? and userId = ?. |
DDLRecord |
fetchByRecordSetId_First(long recordSetId,
OrderByComparator orderByComparator)
Returns the first d d l record in the ordered set where recordSetId = ?. |
DDLRecord |
fetchByRecordSetId_Last(long recordSetId,
OrderByComparator orderByComparator)
Returns the last d d l record in the ordered set where recordSetId = ?. |
DDLRecord |
fetchByUuid_First(String uuid,
OrderByComparator 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 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 orderByComparator)
Returns an ordered range of all the d d l records. |
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 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 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 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 orderByComparator)
Returns an ordered range of all the d d l records where recordSetId = ? and userId = ?. |
DDLRecord |
findByRecordSetId_First(long recordSetId,
OrderByComparator orderByComparator)
Returns the first d d l record in the ordered set where recordSetId = ?. |
DDLRecord |
findByRecordSetId_Last(long recordSetId,
OrderByComparator orderByComparator)
Returns the last d d l record in the ordered set where recordSetId = ?. |
DDLRecord[] |
findByRecordSetId_PrevAndNext(long recordId,
long recordSetId,
OrderByComparator 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 orderByComparator)
Returns an ordered range of all the d d l records where recordSetId = ?. |
DDLRecord |
findByUuid_First(String uuid,
OrderByComparator 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 orderByComparator)
Returns the last d d l record in the ordered set where uuid = ?. |
DDLRecord[] |
findByUuid_PrevAndNext(long recordId,
String uuid,
OrderByComparator 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 orderByComparator)
Returns an ordered range of all the d d l records where uuid = ?. |
protected DDLRecord |
getByR_U_PrevAndNext(Session session,
DDLRecord ddlRecord,
long recordSetId,
long userId,
OrderByComparator orderByComparator,
boolean previous)
|
protected DDLRecord |
getByRecordSetId_PrevAndNext(Session session,
DDLRecord ddlRecord,
long recordSetId,
OrderByComparator orderByComparator,
boolean previous)
|
protected DDLRecord |
getByUuid_PrevAndNext(Session session,
DDLRecord ddlRecord,
String uuid,
OrderByComparator 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 |
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. |
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,
boolean merge)
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, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getClassLoader, getDataSource, getDB, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update |
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, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, 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_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_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
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
@BeanReference(type=DDLRecordPersistence.class) protected DDLRecordPersistence ddlRecordPersistence
@BeanReference(type=DDLRecordSetPersistence.class) protected DDLRecordSetPersistence ddlRecordSetPersistence
@BeanReference(type=DDLRecordVersionPersistence.class) protected DDLRecordVersionPersistence ddlRecordVersionPersistence
@BeanReference(type=ResourcePersistence.class) protected ResourcePersistence resourcePersistence
@BeanReference(type=UserPersistence.class) protected UserPersistence userPersistence
@BeanReference(type=WorkflowInstanceLinkPersistence.class) protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence
@BeanReference(type=AssetEntryPersistence.class) protected AssetEntryPersistence assetEntryPersistence
@BeanReference(type=DDMStructurePersistence.class) protected DDMStructurePersistence ddmStructurePersistence
Constructor Detail |
---|
public DDLRecordPersistenceImpl()
Method Detail |
---|
public void cacheResult(DDLRecord ddlRecord)
cacheResult
in interface DDLRecordPersistence
ddlRecord
- the d d l recordpublic void cacheResult(List<DDLRecord> ddlRecords)
cacheResult
in interface DDLRecordPersistence
ddlRecords
- 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 DDLRecordPersistence
recordId
- the primary key for the new d d l record
public DDLRecord remove(long recordId) throws NoSuchRecordException, SystemException
remove
in interface DDLRecordPersistence
recordId
- the primary key of the d d l record
NoSuchRecordException
- if a d d l record with the primary key could not be found
SystemException
- if a system exception occurredpublic DDLRecord remove(Serializable primaryKey) throws NoSuchRecordException, SystemException
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 found
SystemException
- if a system exception occurredprotected DDLRecord removeImpl(DDLRecord ddlRecord) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.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
SystemException
- if a system exception occurredpublic DDLRecord updateImpl(DDLRecord ddlRecord, boolean merge) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.remove(BaseModel)
depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl
in interface DDLRecordPersistence
updateImpl
in class BasePersistenceImpl<DDLRecord>
ddlRecord
- the model instance to updatemerge
- whether to merge the model instance with the current
session. See BatchSession.update(
com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean)
for an explanation.
SystemException
- if a system exception occurredprotected DDLRecord toUnwrappedModel(DDLRecord ddlRecord)
public DDLRecord findByPrimaryKey(Serializable primaryKey) throws NoSuchModelException, SystemException
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
NoSuchModelException
- if a d d l record with the primary key could not be found
SystemException
- if a system exception occurredpublic DDLRecord findByPrimaryKey(long recordId) throws NoSuchRecordException, SystemException
NoSuchRecordException
if it could not be found.
findByPrimaryKey
in interface DDLRecordPersistence
recordId
- the primary key of the d d l record
NoSuchRecordException
- if a d d l record with the primary key could not be found
SystemException
- if a system exception occurredpublic DDLRecord fetchByPrimaryKey(Serializable primaryKey) throws SystemException
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 found
SystemException
- if a system exception occurredpublic DDLRecord fetchByPrimaryKey(long recordId) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface DDLRecordPersistence
recordId
- the primary key of the d d l record
null
if a d d l record with the primary key could not be found
SystemException
- if a system exception occurredpublic List<DDLRecord> findByUuid(String uuid) throws SystemException
findByUuid
in interface DDLRecordPersistence
uuid
- the uuid
SystemException
- if a system exception occurredpublic List<DDLRecord> findByUuid(String uuid, int start, int end) throws SystemException
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.
findByUuid
in interface DDLRecordPersistence
uuid
- 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)
SystemException
- if a system exception occurredpublic List<DDLRecord> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByUuid
in interface DDLRecordPersistence
uuid
- 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
)
SystemException
- if a system exception occurredpublic DDLRecord findByUuid_First(String uuid, OrderByComparator orderByComparator) throws NoSuchRecordException, SystemException
findByUuid_First
in interface DDLRecordPersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRecordException
- if a matching d d l record could not be found
SystemException
- if a system exception occurredpublic DDLRecord fetchByUuid_First(String uuid, OrderByComparator orderByComparator) throws SystemException
fetchByUuid_First
in interface DDLRecordPersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching d d l record could not be found
SystemException
- if a system exception occurredpublic DDLRecord findByUuid_Last(String uuid, OrderByComparator orderByComparator) throws NoSuchRecordException, SystemException
findByUuid_Last
in interface DDLRecordPersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchRecordException
- if a matching d d l record could not be found
SystemException
- if a system exception occurredpublic DDLRecord fetchByUuid_Last(String uuid, OrderByComparator orderByComparator) throws SystemException
fetchByUuid_Last
in interface DDLRecordPersistence
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching d d l record could not be found
SystemException
- if a system exception occurredpublic DDLRecord[] findByUuid_PrevAndNext(long recordId, String uuid, OrderByComparator orderByComparator) throws NoSuchRecordException, SystemException
findByUuid_PrevAndNext
in interface DDLRecordPersistence
recordId
- 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
SystemException
- if a system exception occurredprotected DDLRecord getByUuid_PrevAndNext(Session session, DDLRecord ddlRecord, String uuid, OrderByComparator orderByComparator, boolean previous)
public DDLRecord findByUUID_G(String uuid, long groupId) throws NoSuchRecordException, SystemException
NoSuchRecordException
if it could not be found.
findByUUID_G
in interface DDLRecordPersistence
uuid
- the uuidgroupId
- the group ID
NoSuchRecordException
- if a matching d d l record could not be found
SystemException
- if a system exception occurredpublic DDLRecord fetchByUUID_G(String uuid, long groupId) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByUUID_G
in interface DDLRecordPersistence
uuid
- the uuidgroupId
- the group ID
null
if a matching d d l record could not be found
SystemException
- if a system exception occurredpublic DDLRecord fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByUUID_G
in interface DDLRecordPersistence
uuid
- the uuidgroupId
- the group IDretrieveFromCache
- whether to use the finder cache
null
if a matching d d l record could not be found
SystemException
- if a system exception occurredpublic List<DDLRecord> findByRecordSetId(long recordSetId) throws SystemException
findByRecordSetId
in interface DDLRecordPersistence
recordSetId
- the record set ID
SystemException
- if a system exception occurredpublic List<DDLRecord> findByRecordSetId(long recordSetId, int start, int end) throws SystemException
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.
findByRecordSetId
in interface DDLRecordPersistence
recordSetId
- 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)
SystemException
- if a system exception occurredpublic List<DDLRecord> findByRecordSetId(long recordSetId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByRecordSetId
in interface DDLRecordPersistence
recordSetId
- 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
)
SystemException
- if a system exception occurredpublic DDLRecord findByRecordSetId_First(long recordSetId, OrderByComparator orderByComparator) throws NoSuchRecordException, SystemException
findByRecordSetId_First
in interface DDLRecordPersistence
recordSetId
- 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
SystemException
- if a system exception occurredpublic DDLRecord fetchByRecordSetId_First(long recordSetId, OrderByComparator orderByComparator) throws SystemException
fetchByRecordSetId_First
in interface DDLRecordPersistence
recordSetId
- 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
SystemException
- if a system exception occurredpublic DDLRecord findByRecordSetId_Last(long recordSetId, OrderByComparator orderByComparator) throws NoSuchRecordException, SystemException
findByRecordSetId_Last
in interface DDLRecordPersistence
recordSetId
- 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
SystemException
- if a system exception occurredpublic DDLRecord fetchByRecordSetId_Last(long recordSetId, OrderByComparator orderByComparator) throws SystemException
fetchByRecordSetId_Last
in interface DDLRecordPersistence
recordSetId
- 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
SystemException
- if a system exception occurredpublic DDLRecord[] findByRecordSetId_PrevAndNext(long recordId, long recordSetId, OrderByComparator orderByComparator) throws NoSuchRecordException, SystemException
findByRecordSetId_PrevAndNext
in interface DDLRecordPersistence
recordId
- 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
SystemException
- if a system exception occurredprotected DDLRecord getByRecordSetId_PrevAndNext(Session session, DDLRecord ddlRecord, long recordSetId, OrderByComparator orderByComparator, boolean previous)
public List<DDLRecord> findByR_U(long recordSetId, long userId) throws SystemException
findByR_U
in interface DDLRecordPersistence
recordSetId
- the record set IDuserId
- the user ID
SystemException
- if a system exception occurredpublic List<DDLRecord> findByR_U(long recordSetId, long userId, int start, int end) throws SystemException
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.
findByR_U
in interface DDLRecordPersistence
recordSetId
- 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)
SystemException
- if a system exception occurredpublic List<DDLRecord> findByR_U(long recordSetId, long userId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findByR_U
in interface DDLRecordPersistence
recordSetId
- 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
)
SystemException
- if a system exception occurredpublic DDLRecord findByR_U_First(long recordSetId, long userId, OrderByComparator orderByComparator) throws NoSuchRecordException, SystemException
findByR_U_First
in interface DDLRecordPersistence
recordSetId
- 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
SystemException
- if a system exception occurredpublic DDLRecord fetchByR_U_First(long recordSetId, long userId, OrderByComparator orderByComparator) throws SystemException
fetchByR_U_First
in interface DDLRecordPersistence
recordSetId
- 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
SystemException
- if a system exception occurredpublic DDLRecord findByR_U_Last(long recordSetId, long userId, OrderByComparator orderByComparator) throws NoSuchRecordException, SystemException
findByR_U_Last
in interface DDLRecordPersistence
recordSetId
- 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
SystemException
- if a system exception occurredpublic DDLRecord fetchByR_U_Last(long recordSetId, long userId, OrderByComparator orderByComparator) throws SystemException
fetchByR_U_Last
in interface DDLRecordPersistence
recordSetId
- 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
SystemException
- if a system exception occurredpublic DDLRecord[] findByR_U_PrevAndNext(long recordId, long recordSetId, long userId, OrderByComparator orderByComparator) throws NoSuchRecordException, SystemException
findByR_U_PrevAndNext
in interface DDLRecordPersistence
recordId
- 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
SystemException
- if a system exception occurredprotected DDLRecord getByR_U_PrevAndNext(Session session, DDLRecord ddlRecord, long recordSetId, long userId, OrderByComparator orderByComparator, boolean previous)
public List<DDLRecord> findAll() throws SystemException
findAll
in interface DDLRecordPersistence
SystemException
- if a system exception occurredpublic List<DDLRecord> findAll(int start, int end) throws SystemException
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.
findAll
in interface DDLRecordPersistence
start
- the lower bound of the range of d d l recordsend
- the upper bound of the range of d d l records (not inclusive)
SystemException
- if a system exception occurredpublic List<DDLRecord> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
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.
findAll
in interface DDLRecordPersistence
start
- 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
)
SystemException
- if a system exception occurredpublic void removeByUuid(String uuid) throws SystemException
removeByUuid
in interface DDLRecordPersistence
uuid
- the uuid
SystemException
- if a system exception occurredpublic DDLRecord removeByUUID_G(String uuid, long groupId) throws NoSuchRecordException, SystemException
removeByUUID_G
in interface DDLRecordPersistence
uuid
- the uuidgroupId
- the group ID
SystemException
- if a system exception occurred
NoSuchRecordException
public void removeByRecordSetId(long recordSetId) throws SystemException
removeByRecordSetId
in interface DDLRecordPersistence
recordSetId
- the record set ID
SystemException
- if a system exception occurredpublic void removeByR_U(long recordSetId, long userId) throws SystemException
removeByR_U
in interface DDLRecordPersistence
recordSetId
- the record set IDuserId
- the user ID
SystemException
- if a system exception occurredpublic void removeAll() throws SystemException
removeAll
in interface DDLRecordPersistence
SystemException
- if a system exception occurredpublic int countByUuid(String uuid) throws SystemException
countByUuid
in interface DDLRecordPersistence
uuid
- the uuid
SystemException
- if a system exception occurredpublic int countByUUID_G(String uuid, long groupId) throws SystemException
countByUUID_G
in interface DDLRecordPersistence
uuid
- the uuidgroupId
- the group ID
SystemException
- if a system exception occurredpublic int countByRecordSetId(long recordSetId) throws SystemException
countByRecordSetId
in interface DDLRecordPersistence
recordSetId
- the record set ID
SystemException
- if a system exception occurredpublic int countByR_U(long recordSetId, long userId) throws SystemException
countByR_U
in interface DDLRecordPersistence
recordSetId
- the record set IDuserId
- the user ID
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface DDLRecordPersistence
SystemException
- if a system exception occurredpublic void afterPropertiesSet()
public void destroy()
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |