|
Liferay 6.2.0-ce-m4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DLSyncPersistence
The persistence interface for the d l sync service.
Caching information and settings can be found in portal.properties
DLSyncPersistenceImpl,
DLSyncUtil| Method Summary | |
|---|---|
void |
cacheResult(DLSync dlSync)
Caches the d l sync in the entity cache if it is enabled. |
void |
cacheResult(List<DLSync> dlSyncs)
Caches the d l syncs in the entity cache if it is enabled. |
int |
countAll()
Returns the number of d l syncs. |
int |
countByC_M_R(long companyId,
long modifiedDate,
long repositoryId)
Returns the number of d l syncs where companyId = ? and modifiedDate > ? and repositoryId = ?. |
int |
countByFileId(long fileId)
Returns the number of d l syncs where fileId = ?. |
DLSync |
create(long syncId)
Creates a new d l sync with the primary key. |
DLSync |
fetchByC_M_R_First(long companyId,
long modifiedDate,
long repositoryId,
OrderByComparator orderByComparator)
Returns the first d l sync in the ordered set where companyId = ? and modifiedDate > ? and repositoryId = ?. |
DLSync |
fetchByC_M_R_Last(long companyId,
long modifiedDate,
long repositoryId,
OrderByComparator orderByComparator)
Returns the last d l sync in the ordered set where companyId = ? and modifiedDate > ? and repositoryId = ?. |
DLSync |
fetchByFileId(long fileId)
Returns the d l sync where fileId = ? or returns null if it could not be found. |
DLSync |
fetchByFileId(long fileId,
boolean retrieveFromCache)
Returns the d l sync where fileId = ? or returns null if it could not be found, optionally using the finder cache. |
DLSync |
fetchByPrimaryKey(long syncId)
Returns the d l sync with the primary key or returns null if it could not be found. |
List<DLSync> |
findAll()
Returns all the d l syncs. |
List<DLSync> |
findAll(int start,
int end)
Returns a range of all the d l syncs. |
List<DLSync> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the d l syncs. |
DLSync |
findByC_M_R_First(long companyId,
long modifiedDate,
long repositoryId,
OrderByComparator orderByComparator)
Returns the first d l sync in the ordered set where companyId = ? and modifiedDate > ? and repositoryId = ?. |
DLSync |
findByC_M_R_Last(long companyId,
long modifiedDate,
long repositoryId,
OrderByComparator orderByComparator)
Returns the last d l sync in the ordered set where companyId = ? and modifiedDate > ? and repositoryId = ?. |
DLSync[] |
findByC_M_R_PrevAndNext(long syncId,
long companyId,
long modifiedDate,
long repositoryId,
OrderByComparator orderByComparator)
Returns the d l syncs before and after the current d l sync in the ordered set where companyId = ? and modifiedDate > ? and repositoryId = ?. |
List<DLSync> |
findByC_M_R(long companyId,
long modifiedDate,
long repositoryId)
Returns all the d l syncs where companyId = ? and modifiedDate > ? and repositoryId = ?. |
List<DLSync> |
findByC_M_R(long companyId,
long modifiedDate,
long repositoryId,
int start,
int end)
Returns a range of all the d l syncs where companyId = ? and modifiedDate > ? and repositoryId = ?. |
List<DLSync> |
findByC_M_R(long companyId,
long modifiedDate,
long repositoryId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the d l syncs where companyId = ? and modifiedDate > ? and repositoryId = ?. |
DLSync |
findByFileId(long fileId)
Returns the d l sync where fileId = ? or throws a NoSuchSyncException if it could not be found. |
DLSync |
findByPrimaryKey(long syncId)
Returns the d l sync with the primary key or throws a NoSuchSyncException if it could not be found. |
DLSync |
remove(long syncId)
Removes the d l sync with the primary key from the database. |
void |
removeAll()
Removes all the d l syncs from the database. |
void |
removeByC_M_R(long companyId,
long modifiedDate,
long repositoryId)
Removes all the d l syncs where companyId = ? and modifiedDate > ? and repositoryId = ? from the database. |
DLSync |
removeByFileId(long fileId)
Removes the d l sync where fileId = ? from the database. |
DLSync |
updateImpl(DLSync dlSync)
|
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update |
| Method Detail |
|---|
DLSync findByFileId(long fileId)
throws SystemException,
NoSuchSyncException
NoSuchSyncException if it could not be found.
fileId - the file ID
NoSuchSyncException - if a matching d l sync could not be found
SystemException - if a system exception occurred
DLSync fetchByFileId(long fileId)
throws SystemException
null if it could not be found. Uses the finder cache.
fileId - the file ID
null if a matching d l sync could not be found
SystemException - if a system exception occurred
DLSync fetchByFileId(long fileId,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
fileId - the file IDretrieveFromCache - whether to use the finder cache
null if a matching d l sync could not be found
SystemException - if a system exception occurred
DLSync removeByFileId(long fileId)
throws SystemException,
NoSuchSyncException
fileId - the file ID
SystemException - if a system exception occurred
NoSuchSyncException
int countByFileId(long fileId)
throws SystemException
fileId - the file ID
SystemException - if a system exception occurred
List<DLSync> findByC_M_R(long companyId,
long modifiedDate,
long repositoryId)
throws SystemException
companyId - the company IDmodifiedDate - the modified daterepositoryId - the repository ID
SystemException - if a system exception occurred
List<DLSync> findByC_M_R(long companyId,
long modifiedDate,
long repositoryId,
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. 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 DLSyncModelImpl. 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.
companyId - the company IDmodifiedDate - the modified daterepositoryId - the repository IDstart - the lower bound of the range of d l syncsend - the upper bound of the range of d l syncs (not inclusive)
SystemException - if a system exception occurred
List<DLSync> findByC_M_R(long companyId,
long modifiedDate,
long repositoryId,
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. 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 DLSyncModelImpl. 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.
companyId - the company IDmodifiedDate - the modified daterepositoryId - the repository IDstart - the lower bound of the range of d l syncsend - the upper bound of the range of d l syncs (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
DLSync findByC_M_R_First(long companyId,
long modifiedDate,
long repositoryId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchSyncException
companyId - the company IDmodifiedDate - the modified daterepositoryId - the repository IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchSyncException - if a matching d l sync could not be found
SystemException - if a system exception occurred
DLSync fetchByC_M_R_First(long companyId,
long modifiedDate,
long repositoryId,
OrderByComparator orderByComparator)
throws SystemException
companyId - the company IDmodifiedDate - the modified daterepositoryId - the repository IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching d l sync could not be found
SystemException - if a system exception occurred
DLSync findByC_M_R_Last(long companyId,
long modifiedDate,
long repositoryId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchSyncException
companyId - the company IDmodifiedDate - the modified daterepositoryId - the repository IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchSyncException - if a matching d l sync could not be found
SystemException - if a system exception occurred
DLSync fetchByC_M_R_Last(long companyId,
long modifiedDate,
long repositoryId,
OrderByComparator orderByComparator)
throws SystemException
companyId - the company IDmodifiedDate - the modified daterepositoryId - the repository IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching d l sync could not be found
SystemException - if a system exception occurred
DLSync[] findByC_M_R_PrevAndNext(long syncId,
long companyId,
long modifiedDate,
long repositoryId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchSyncException
syncId - the primary key of the current d l synccompanyId - the company IDmodifiedDate - the modified daterepositoryId - the repository IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchSyncException - if a d l sync with the primary key could not be found
SystemException - if a system exception occurred
void removeByC_M_R(long companyId,
long modifiedDate,
long repositoryId)
throws SystemException
companyId - the company IDmodifiedDate - the modified daterepositoryId - the repository ID
SystemException - if a system exception occurred
int countByC_M_R(long companyId,
long modifiedDate,
long repositoryId)
throws SystemException
companyId - the company IDmodifiedDate - the modified daterepositoryId - the repository ID
SystemException - if a system exception occurredvoid cacheResult(DLSync dlSync)
dlSync - the d l syncvoid cacheResult(List<DLSync> dlSyncs)
dlSyncs - the d l syncsDLSync create(long syncId)
syncId - the primary key for the new d l sync
DLSync remove(long syncId)
throws SystemException,
NoSuchSyncException
syncId - the primary key of the d l sync
NoSuchSyncException - if a d l sync with the primary key could not be found
SystemException - if a system exception occurred
DLSync updateImpl(DLSync dlSync)
throws SystemException
SystemException
DLSync findByPrimaryKey(long syncId)
throws SystemException,
NoSuchSyncException
NoSuchSyncException if it could not be found.
syncId - the primary key of the d l sync
NoSuchSyncException - if a d l sync with the primary key could not be found
SystemException - if a system exception occurred
DLSync fetchByPrimaryKey(long syncId)
throws SystemException
null if it could not be found.
syncId - the primary key of the d l sync
null if a d l sync with the primary key could not be found
SystemException - if a system exception occurred
List<DLSync> findAll()
throws SystemException
SystemException - if a system exception occurred
List<DLSync> 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. 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 DLSyncModelImpl. 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.
start - the lower bound of the range of d l syncsend - the upper bound of the range of d l syncs (not inclusive)
SystemException - if a system exception occurred
List<DLSync> 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. 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 DLSyncModelImpl. 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.
start - the lower bound of the range of d l syncsend - the upper bound of the range of d l syncs (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
void removeAll()
throws SystemException
SystemException - if a system exception occurred
int countAll()
throws SystemException
SystemException - if a system exception occurred
|
Liferay 6.2.0-ce-m4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||