|
Liferay 6.2.0-ce-rc3 | |||||||||
| 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<DLSyncEvent>
com.liferay.portlet.documentlibrary.service.persistence.DLSyncEventPersistenceImpl
public class DLSyncEventPersistenceImpl
The persistence implementation for the d l sync event service.
Caching information and settings can be found in portal.properties
DLSyncEventPersistence,
DLSyncEventUtil| 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 | |
|---|---|
DLSyncEventPersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Initializes the d l sync event persistence. |
void |
cacheResult(DLSyncEvent dlSyncEvent)
Caches the d l sync event in the entity cache if it is enabled. |
void |
cacheResult(List<DLSyncEvent> dlSyncEvents)
Caches the d l sync events in the entity cache if it is enabled. |
protected void |
cacheUniqueFindersCache(DLSyncEvent dlSyncEvent)
|
void |
clearCache()
Clears the cache for all d l sync events. |
void |
clearCache(DLSyncEvent dlSyncEvent)
Clears the cache for the d l sync event. |
void |
clearCache(List<DLSyncEvent> dlSyncEvents)
Clears the cache for a List instances of this model. |
protected void |
clearUniqueFindersCache(DLSyncEvent dlSyncEvent)
|
int |
countAll()
Returns the number of d l sync events. |
int |
countByModifiedTime(long modifiedTime)
Returns the number of d l sync events where modifiedTime > ?. |
int |
countByTypePK(long typePK)
Returns the number of d l sync events where typePK = ?. |
DLSyncEvent |
create(long syncEventId)
Creates a new d l sync event with the primary key. |
void |
destroy()
|
DLSyncEvent |
fetchByModifiedTime_First(long modifiedTime,
OrderByComparator orderByComparator)
Returns the first d l sync event in the ordered set where modifiedTime > ?. |
DLSyncEvent |
fetchByModifiedTime_Last(long modifiedTime,
OrderByComparator orderByComparator)
Returns the last d l sync event in the ordered set where modifiedTime > ?. |
DLSyncEvent |
fetchByPrimaryKey(long syncEventId)
Returns the d l sync event with the primary key or returns null if it could not be found. |
DLSyncEvent |
fetchByPrimaryKey(Serializable primaryKey)
Returns the d l sync event with the primary key or returns null if it could not be found. |
DLSyncEvent |
fetchByTypePK(long typePK)
Returns the d l sync event where typePK = ? or returns null if it could not be found. |
DLSyncEvent |
fetchByTypePK(long typePK,
boolean retrieveFromCache)
Returns the d l sync event where typePK = ? or returns null if it could not be found, optionally using the finder cache. |
List<DLSyncEvent> |
findAll()
Returns all the d l sync events. |
List<DLSyncEvent> |
findAll(int start,
int end)
Returns a range of all the d l sync events. |
List<DLSyncEvent> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the d l sync events. |
DLSyncEvent |
findByModifiedTime_First(long modifiedTime,
OrderByComparator orderByComparator)
Returns the first d l sync event in the ordered set where modifiedTime > ?. |
DLSyncEvent |
findByModifiedTime_Last(long modifiedTime,
OrderByComparator orderByComparator)
Returns the last d l sync event in the ordered set where modifiedTime > ?. |
DLSyncEvent[] |
findByModifiedTime_PrevAndNext(long syncEventId,
long modifiedTime,
OrderByComparator orderByComparator)
Returns the d l sync events before and after the current d l sync event in the ordered set where modifiedTime > ?. |
List<DLSyncEvent> |
findByModifiedTime(long modifiedTime)
Returns all the d l sync events where modifiedTime > ?. |
List<DLSyncEvent> |
findByModifiedTime(long modifiedTime,
int start,
int end)
Returns a range of all the d l sync events where modifiedTime > ?. |
List<DLSyncEvent> |
findByModifiedTime(long modifiedTime,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the d l sync events where modifiedTime > ?. |
DLSyncEvent |
findByPrimaryKey(long syncEventId)
Returns the d l sync event with the primary key or throws a NoSuchSyncEventException if it could not be found. |
DLSyncEvent |
findByPrimaryKey(Serializable primaryKey)
Returns the d l sync event with the primary key or throws a NoSuchModelException if it could not be found. |
DLSyncEvent |
findByTypePK(long typePK)
Returns the d l sync event where typePK = ? or throws a NoSuchSyncEventException if it could not be found. |
protected Set<String> |
getBadColumnNames()
|
protected DLSyncEvent |
getByModifiedTime_PrevAndNext(Session session,
DLSyncEvent dlSyncEvent,
long modifiedTime,
OrderByComparator orderByComparator,
boolean previous)
|
DLSyncEvent |
remove(long syncEventId)
Removes the d l sync event with the primary key from the database. |
DLSyncEvent |
remove(Serializable primaryKey)
Removes the d l sync event with the primary key from the database. |
void |
removeAll()
Removes all the d l sync events from the database. |
void |
removeByModifiedTime(long modifiedTime)
Removes all the d l sync events where modifiedTime > ? from the database. |
DLSyncEvent |
removeByTypePK(long typePK)
Removes the d l sync event where typePK = ? from the database. |
protected DLSyncEvent |
removeImpl(DLSyncEvent dlSyncEvent)
Removes the model instance from the database. |
protected DLSyncEvent |
toUnwrappedModel(DLSyncEvent dlSyncEvent)
|
DLSyncEvent |
updateImpl(DLSyncEvent dlSyncEvent)
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_MODIFIEDTIME
public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_MODIFIEDTIME
public static final FinderPath FINDER_PATH_FETCH_BY_TYPEPK
public static final FinderPath FINDER_PATH_COUNT_BY_TYPEPK
| Constructor Detail |
|---|
public DLSyncEventPersistenceImpl()
| Method Detail |
|---|
public List<DLSyncEvent> findByModifiedTime(long modifiedTime)
throws SystemException
findByModifiedTime in interface DLSyncEventPersistencemodifiedTime - the modified time
SystemException - if a system exception occurred
public List<DLSyncEvent> findByModifiedTime(long modifiedTime,
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 DLSyncEventModelImpl. 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.
findByModifiedTime in interface DLSyncEventPersistencemodifiedTime - the modified timestart - the lower bound of the range of d l sync eventsend - the upper bound of the range of d l sync events (not inclusive)
SystemException - if a system exception occurred
public List<DLSyncEvent> findByModifiedTime(long modifiedTime,
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 DLSyncEventModelImpl. 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.
findByModifiedTime in interface DLSyncEventPersistencemodifiedTime - the modified timestart - the lower bound of the range of d l sync eventsend - the upper bound of the range of d l sync events (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
SystemException - if a system exception occurred
public DLSyncEvent findByModifiedTime_First(long modifiedTime,
OrderByComparator orderByComparator)
throws NoSuchSyncEventException,
SystemException
findByModifiedTime_First in interface DLSyncEventPersistencemodifiedTime - the modified timeorderByComparator - the comparator to order the set by (optionally null)
NoSuchSyncEventException - if a matching d l sync event could not be found
SystemException - if a system exception occurred
public DLSyncEvent fetchByModifiedTime_First(long modifiedTime,
OrderByComparator orderByComparator)
throws SystemException
fetchByModifiedTime_First in interface DLSyncEventPersistencemodifiedTime - the modified timeorderByComparator - the comparator to order the set by (optionally null)
null if a matching d l sync event could not be found
SystemException - if a system exception occurred
public DLSyncEvent findByModifiedTime_Last(long modifiedTime,
OrderByComparator orderByComparator)
throws NoSuchSyncEventException,
SystemException
findByModifiedTime_Last in interface DLSyncEventPersistencemodifiedTime - the modified timeorderByComparator - the comparator to order the set by (optionally null)
NoSuchSyncEventException - if a matching d l sync event could not be found
SystemException - if a system exception occurred
public DLSyncEvent fetchByModifiedTime_Last(long modifiedTime,
OrderByComparator orderByComparator)
throws SystemException
fetchByModifiedTime_Last in interface DLSyncEventPersistencemodifiedTime - the modified timeorderByComparator - the comparator to order the set by (optionally null)
null if a matching d l sync event could not be found
SystemException - if a system exception occurred
public DLSyncEvent[] findByModifiedTime_PrevAndNext(long syncEventId,
long modifiedTime,
OrderByComparator orderByComparator)
throws NoSuchSyncEventException,
SystemException
findByModifiedTime_PrevAndNext in interface DLSyncEventPersistencesyncEventId - the primary key of the current d l sync eventmodifiedTime - the modified timeorderByComparator - the comparator to order the set by (optionally null)
NoSuchSyncEventException - if a d l sync event with the primary key could not be found
SystemException - if a system exception occurred
protected DLSyncEvent getByModifiedTime_PrevAndNext(Session session,
DLSyncEvent dlSyncEvent,
long modifiedTime,
OrderByComparator orderByComparator,
boolean previous)
public void removeByModifiedTime(long modifiedTime)
throws SystemException
removeByModifiedTime in interface DLSyncEventPersistencemodifiedTime - the modified time
SystemException - if a system exception occurred
public int countByModifiedTime(long modifiedTime)
throws SystemException
countByModifiedTime in interface DLSyncEventPersistencemodifiedTime - the modified time
SystemException - if a system exception occurred
public DLSyncEvent findByTypePK(long typePK)
throws NoSuchSyncEventException,
SystemException
NoSuchSyncEventException if it could not be found.
findByTypePK in interface DLSyncEventPersistencetypePK - the type p k
NoSuchSyncEventException - if a matching d l sync event could not be found
SystemException - if a system exception occurred
public DLSyncEvent fetchByTypePK(long typePK)
throws SystemException
null if it could not be found. Uses the finder cache.
fetchByTypePK in interface DLSyncEventPersistencetypePK - the type p k
null if a matching d l sync event could not be found
SystemException - if a system exception occurred
public DLSyncEvent fetchByTypePK(long typePK,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
fetchByTypePK in interface DLSyncEventPersistencetypePK - the type p kretrieveFromCache - whether to use the finder cache
null if a matching d l sync event could not be found
SystemException - if a system exception occurred
public DLSyncEvent removeByTypePK(long typePK)
throws NoSuchSyncEventException,
SystemException
removeByTypePK in interface DLSyncEventPersistencetypePK - the type p k
SystemException - if a system exception occurred
NoSuchSyncEventException
public int countByTypePK(long typePK)
throws SystemException
countByTypePK in interface DLSyncEventPersistencetypePK - the type p k
SystemException - if a system exception occurredpublic void cacheResult(DLSyncEvent dlSyncEvent)
cacheResult in interface DLSyncEventPersistencedlSyncEvent - the d l sync eventpublic void cacheResult(List<DLSyncEvent> dlSyncEvents)
cacheResult in interface DLSyncEventPersistencedlSyncEvents - the d l sync eventspublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<DLSyncEvent>clearCache in class BasePersistenceImpl<DLSyncEvent>public void clearCache(DLSyncEvent dlSyncEvent)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<DLSyncEvent>clearCache in class BasePersistenceImpl<DLSyncEvent>dlSyncEvent - the instance of this model to clear the cache forpublic void clearCache(List<DLSyncEvent> dlSyncEvents)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<DLSyncEvent>clearCache in class BasePersistenceImpl<DLSyncEvent>dlSyncEvents - the List instances of this model to clear the cache forprotected void cacheUniqueFindersCache(DLSyncEvent dlSyncEvent)
protected void clearUniqueFindersCache(DLSyncEvent dlSyncEvent)
public DLSyncEvent create(long syncEventId)
create in interface DLSyncEventPersistencesyncEventId - the primary key for the new d l sync event
public DLSyncEvent remove(long syncEventId)
throws NoSuchSyncEventException,
SystemException
remove in interface DLSyncEventPersistencesyncEventId - the primary key of the d l sync event
NoSuchSyncEventException - if a d l sync event with the primary key could not be found
SystemException - if a system exception occurred
public DLSyncEvent remove(Serializable primaryKey)
throws NoSuchSyncEventException,
SystemException
remove in interface BasePersistence<DLSyncEvent>remove in class BasePersistenceImpl<DLSyncEvent>primaryKey - the primary key of the d l sync event
NoSuchSyncEventException - if a d l sync event with the primary key could not be found
SystemException - if a system exception occurred
protected DLSyncEvent removeImpl(DLSyncEvent dlSyncEvent)
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<DLSyncEvent>dlSyncEvent - the model instance to remove
SystemException - if a system exception occurred
public DLSyncEvent updateImpl(DLSyncEvent dlSyncEvent)
throws SystemException
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface DLSyncEventPersistenceupdateImpl in class BasePersistenceImpl<DLSyncEvent>dlSyncEvent - the model instance to update
SystemException - if a system exception occurredprotected DLSyncEvent toUnwrappedModel(DLSyncEvent dlSyncEvent)
public DLSyncEvent findByPrimaryKey(Serializable primaryKey)
throws NoSuchSyncEventException,
SystemException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface BasePersistence<DLSyncEvent>findByPrimaryKey in class BasePersistenceImpl<DLSyncEvent>primaryKey - the primary key of the d l sync event
NoSuchSyncEventException - if a d l sync event with the primary key could not be found
SystemException - if a system exception occurred
public DLSyncEvent findByPrimaryKey(long syncEventId)
throws NoSuchSyncEventException,
SystemException
NoSuchSyncEventException if it could not be found.
findByPrimaryKey in interface DLSyncEventPersistencesyncEventId - the primary key of the d l sync event
NoSuchSyncEventException - if a d l sync event with the primary key could not be found
SystemException - if a system exception occurred
public DLSyncEvent fetchByPrimaryKey(Serializable primaryKey)
throws SystemException
null if it could not be found.
fetchByPrimaryKey in interface BasePersistence<DLSyncEvent>fetchByPrimaryKey in class BasePersistenceImpl<DLSyncEvent>primaryKey - the primary key of the d l sync event
null if a d l sync event with the primary key could not be found
SystemException - if a system exception occurred
public DLSyncEvent fetchByPrimaryKey(long syncEventId)
throws SystemException
null if it could not be found.
fetchByPrimaryKey in interface DLSyncEventPersistencesyncEventId - the primary key of the d l sync event
null if a d l sync event with the primary key could not be found
SystemException - if a system exception occurred
public List<DLSyncEvent> findAll()
throws SystemException
findAll in interface DLSyncEventPersistenceSystemException - if a system exception occurred
public List<DLSyncEvent> 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 DLSyncEventModelImpl. 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 DLSyncEventPersistencestart - the lower bound of the range of d l sync eventsend - the upper bound of the range of d l sync events (not inclusive)
SystemException - if a system exception occurred
public List<DLSyncEvent> 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 DLSyncEventModelImpl. 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 DLSyncEventPersistencestart - the lower bound of the range of d l sync eventsend - the upper bound of the range of d l sync events (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 DLSyncEventPersistenceSystemException - if a system exception occurred
public int countAll()
throws SystemException
countAll in interface DLSyncEventPersistenceSystemException - if a system exception occurredprotected Set<String> getBadColumnNames()
getBadColumnNames in class BasePersistenceImpl<DLSyncEvent>public void afterPropertiesSet()
public void destroy()
|
Liferay 6.2.0-ce-rc3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||