|
Liferay 6.2.0-ce-m4 | |||||||||
| 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<DLSync>
com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistenceImpl
public class DLSyncPersistenceImpl
The persistence implementation for the d l sync service.
Caching information and settings can be found in portal.properties
DLSyncPersistence,
DLSyncUtil| 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 | |
|---|---|
DLSyncPersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Initializes the d l sync persistence. |
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. |
protected void |
cacheUniqueFindersCache(DLSync dlSync)
|
void |
clearCache()
Clears the cache for all d l syncs. |
void |
clearCache(DLSync dlSync)
Clears the cache for the d l sync. |
void |
clearCache(List<DLSync> dlSyncs)
Clears the cache for a List instances of this model. |
protected void |
clearUniqueFindersCache(DLSync dlSync)
|
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. |
void |
destroy()
|
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. |
DLSync |
fetchByPrimaryKey(Serializable primaryKey)
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 |
findByPrimaryKey(Serializable primaryKey)
Returns the d l sync with the primary key or throws a NoSuchModelException if it could not be found. |
protected DLSync |
getByC_M_R_PrevAndNext(Session session,
DLSync dlSync,
long companyId,
long modifiedDate,
long repositoryId,
OrderByComparator orderByComparator,
boolean previous)
|
DLSync |
remove(long syncId)
Removes the d l sync with the primary key from the database. |
DLSync |
remove(Serializable primaryKey)
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. |
protected DLSync |
removeImpl(DLSync dlSync)
Removes the model instance from the database. |
protected DLSync |
toUnwrappedModel(DLSync dlSync)
|
DLSync |
updateImpl(DLSync dlSync)
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, flush, getCurrentSession, getDataSource, getDB, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, 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, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, 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_FETCH_BY_FILEID
public static final FinderPath FINDER_PATH_COUNT_BY_FILEID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_M_R
public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_C_M_R
| Constructor Detail |
|---|
public DLSyncPersistenceImpl()
| Method Detail |
|---|
public DLSync findByFileId(long fileId)
throws NoSuchSyncException,
SystemException
NoSuchSyncException if it could not be found.
findByFileId in interface DLSyncPersistencefileId - the file ID
NoSuchSyncException - if a matching d l sync could not be found
SystemException - if a system exception occurred
public DLSync fetchByFileId(long fileId)
throws SystemException
null if it could not be found. Uses the finder cache.
fetchByFileId in interface DLSyncPersistencefileId - the file ID
null if a matching d l sync could not be found
SystemException - if a system exception occurred
public DLSync fetchByFileId(long fileId,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
fetchByFileId in interface DLSyncPersistencefileId - 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
public DLSync removeByFileId(long fileId)
throws NoSuchSyncException,
SystemException
removeByFileId in interface DLSyncPersistencefileId - the file ID
SystemException - if a system exception occurred
NoSuchSyncException
public int countByFileId(long fileId)
throws SystemException
countByFileId in interface DLSyncPersistencefileId - the file ID
SystemException - if a system exception occurred
public List<DLSync> findByC_M_R(long companyId,
long modifiedDate,
long repositoryId)
throws SystemException
findByC_M_R in interface DLSyncPersistencecompanyId - the company IDmodifiedDate - the modified daterepositoryId - the repository ID
SystemException - if a system exception occurred
public 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.
findByC_M_R in interface DLSyncPersistencecompanyId - 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
public 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.
findByC_M_R in interface DLSyncPersistencecompanyId - 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
public DLSync findByC_M_R_First(long companyId,
long modifiedDate,
long repositoryId,
OrderByComparator orderByComparator)
throws NoSuchSyncException,
SystemException
findByC_M_R_First in interface DLSyncPersistencecompanyId - 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
public DLSync fetchByC_M_R_First(long companyId,
long modifiedDate,
long repositoryId,
OrderByComparator orderByComparator)
throws SystemException
fetchByC_M_R_First in interface DLSyncPersistencecompanyId - 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
public DLSync findByC_M_R_Last(long companyId,
long modifiedDate,
long repositoryId,
OrderByComparator orderByComparator)
throws NoSuchSyncException,
SystemException
findByC_M_R_Last in interface DLSyncPersistencecompanyId - 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
public DLSync fetchByC_M_R_Last(long companyId,
long modifiedDate,
long repositoryId,
OrderByComparator orderByComparator)
throws SystemException
fetchByC_M_R_Last in interface DLSyncPersistencecompanyId - 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
public DLSync[] findByC_M_R_PrevAndNext(long syncId,
long companyId,
long modifiedDate,
long repositoryId,
OrderByComparator orderByComparator)
throws NoSuchSyncException,
SystemException
findByC_M_R_PrevAndNext in interface DLSyncPersistencesyncId - 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
protected DLSync getByC_M_R_PrevAndNext(Session session,
DLSync dlSync,
long companyId,
long modifiedDate,
long repositoryId,
OrderByComparator orderByComparator,
boolean previous)
public void removeByC_M_R(long companyId,
long modifiedDate,
long repositoryId)
throws SystemException
removeByC_M_R in interface DLSyncPersistencecompanyId - the company IDmodifiedDate - the modified daterepositoryId - the repository ID
SystemException - if a system exception occurred
public int countByC_M_R(long companyId,
long modifiedDate,
long repositoryId)
throws SystemException
countByC_M_R in interface DLSyncPersistencecompanyId - the company IDmodifiedDate - the modified daterepositoryId - the repository ID
SystemException - if a system exception occurredpublic void cacheResult(DLSync dlSync)
cacheResult in interface DLSyncPersistencedlSync - the d l syncpublic void cacheResult(List<DLSync> dlSyncs)
cacheResult in interface DLSyncPersistencedlSyncs - the d l syncspublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<DLSync>clearCache in class BasePersistenceImpl<DLSync>public void clearCache(DLSync dlSync)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<DLSync>clearCache in class BasePersistenceImpl<DLSync>dlSync - the instance of this model to clear the cache forpublic void clearCache(List<DLSync> dlSyncs)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<DLSync>clearCache in class BasePersistenceImpl<DLSync>dlSyncs - the List instances of this model to clear the cache forprotected void cacheUniqueFindersCache(DLSync dlSync)
protected void clearUniqueFindersCache(DLSync dlSync)
public DLSync create(long syncId)
create in interface DLSyncPersistencesyncId - the primary key for the new d l sync
public DLSync remove(long syncId)
throws NoSuchSyncException,
SystemException
remove in interface DLSyncPersistencesyncId - 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
public DLSync remove(Serializable primaryKey)
throws NoSuchSyncException,
SystemException
remove in interface BasePersistence<DLSync>remove in class BasePersistenceImpl<DLSync>primaryKey - 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
protected DLSync removeImpl(DLSync dlSync)
throws SystemException
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<DLSync>dlSync - the model instance to remove
SystemException - if a system exception occurred
public DLSync updateImpl(DLSync dlSync)
throws SystemException
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface DLSyncPersistenceupdateImpl in class BasePersistenceImpl<DLSync>dlSync - the model instance to update
SystemException - if a system exception occurredprotected DLSync toUnwrappedModel(DLSync dlSync)
public DLSync findByPrimaryKey(Serializable primaryKey)
throws NoSuchSyncException,
SystemException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface BasePersistence<DLSync>findByPrimaryKey in class BasePersistenceImpl<DLSync>primaryKey - 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
public DLSync findByPrimaryKey(long syncId)
throws NoSuchSyncException,
SystemException
NoSuchSyncException if it could not be found.
findByPrimaryKey in interface DLSyncPersistencesyncId - 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
public DLSync fetchByPrimaryKey(Serializable primaryKey)
throws SystemException
null if it could not be found.
fetchByPrimaryKey in interface BasePersistence<DLSync>fetchByPrimaryKey in class BasePersistenceImpl<DLSync>primaryKey - 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
public DLSync fetchByPrimaryKey(long syncId)
throws SystemException
null if it could not be found.
fetchByPrimaryKey in interface DLSyncPersistencesyncId - 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
public List<DLSync> findAll()
throws SystemException
findAll in interface DLSyncPersistenceSystemException - if a system exception occurred
public 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.
findAll in interface DLSyncPersistencestart - 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
public 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.
findAll in interface DLSyncPersistencestart - 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
public void removeAll()
throws SystemException
removeAll in interface DLSyncPersistenceSystemException - if a system exception occurred
public int countAll()
throws SystemException
countAll in interface DLSyncPersistenceSystemException - if a system exception occurredpublic void afterPropertiesSet()
public void destroy()
|
Liferay 6.2.0-ce-m4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||