public class DLSyncEventUtil
extends java.lang.Object
com.liferay.document.library.sync.service.persistence.impl.DLSyncEventPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
DLSyncEventPersistence
Constructor and Description |
---|
DLSyncEventUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(DLSyncEvent dlSyncEvent)
Caches the dl sync event in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<DLSyncEvent> dlSyncEvents)
Caches the dl sync events in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(DLSyncEvent dlSyncEvent) |
static int |
countAll()
Returns the number of dl sync events.
|
static int |
countByModifiedTime(long modifiedTime)
Returns the number of dl sync events where modifiedTime > ?.
|
static int |
countByTypePK(long typePK)
Returns the number of dl sync events where typePK = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static DLSyncEvent |
create(long syncEventId)
Creates a new dl sync event with the primary key.
|
static DLSyncEvent |
fetchByModifiedTime_First(long modifiedTime,
com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator)
Returns the first dl sync event in the ordered set where modifiedTime > ?.
|
static DLSyncEvent |
fetchByModifiedTime_Last(long modifiedTime,
com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator)
Returns the last dl sync event in the ordered set where modifiedTime > ?.
|
static DLSyncEvent |
fetchByPrimaryKey(long syncEventId)
Returns the dl sync event with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,DLSyncEvent> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static DLSyncEvent |
fetchByTypePK(long typePK)
Returns the dl sync event where typePK = ? or returns
null if it could not be found. |
static DLSyncEvent |
fetchByTypePK(long typePK,
boolean useFinderCache)
Returns the dl sync event where typePK = ? or returns
null if it could not be found, optionally using the finder cache. |
static java.util.List<DLSyncEvent> |
findAll()
Returns all the dl sync events.
|
static java.util.List<DLSyncEvent> |
findAll(int start,
int end)
Returns a range of all the dl sync events.
|
static java.util.List<DLSyncEvent> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator)
Returns an ordered range of all the dl sync events.
|
static java.util.List<DLSyncEvent> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the dl sync events.
|
static DLSyncEvent |
findByModifiedTime_First(long modifiedTime,
com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator)
Returns the first dl sync event in the ordered set where modifiedTime > ?.
|
static DLSyncEvent |
findByModifiedTime_Last(long modifiedTime,
com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator)
Returns the last dl sync event in the ordered set where modifiedTime > ?.
|
static DLSyncEvent[] |
findByModifiedTime_PrevAndNext(long syncEventId,
long modifiedTime,
com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator)
Returns the dl sync events before and after the current dl sync event in the ordered set where modifiedTime > ?.
|
static java.util.List<DLSyncEvent> |
findByModifiedTime(long modifiedTime)
Returns all the dl sync events where modifiedTime > ?.
|
static java.util.List<DLSyncEvent> |
findByModifiedTime(long modifiedTime,
int start,
int end)
Returns a range of all the dl sync events where modifiedTime > ?.
|
static java.util.List<DLSyncEvent> |
findByModifiedTime(long modifiedTime,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator)
Returns an ordered range of all the dl sync events where modifiedTime > ?.
|
static java.util.List<DLSyncEvent> |
findByModifiedTime(long modifiedTime,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the dl sync events where modifiedTime > ?.
|
static DLSyncEvent |
findByPrimaryKey(long syncEventId)
Returns the dl sync event with the primary key or throws a
NoSuchEventException if it could not be found. |
static DLSyncEvent |
findByTypePK(long typePK)
Returns the dl sync event where typePK = ? or throws a
NoSuchEventException if it could not be found. |
static java.util.List<DLSyncEvent> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<DLSyncEvent> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<DLSyncEvent> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator) |
static DLSyncEventPersistence |
getPersistence() |
static DLSyncEvent |
remove(long syncEventId)
Removes the dl sync event with the primary key from the database.
|
static void |
removeAll()
Removes all the dl sync events from the database.
|
static void |
removeByModifiedTime(long modifiedTime)
Removes all the dl sync events where modifiedTime > ? from the database.
|
static DLSyncEvent |
removeByTypePK(long typePK)
Removes the dl sync event where typePK = ? from the database.
|
static DLSyncEvent |
update(DLSyncEvent dlSyncEvent) |
static DLSyncEvent |
update(DLSyncEvent dlSyncEvent,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static DLSyncEvent |
updateImpl(DLSyncEvent dlSyncEvent) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(DLSyncEvent dlSyncEvent)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,DLSyncEvent> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<DLSyncEvent> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<DLSyncEvent> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<DLSyncEvent> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static DLSyncEvent update(DLSyncEvent dlSyncEvent)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static DLSyncEvent update(DLSyncEvent dlSyncEvent, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<DLSyncEvent> findByModifiedTime(long modifiedTime)
modifiedTime
- the modified timepublic static java.util.List<DLSyncEvent> findByModifiedTime(long modifiedTime, 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, then the query will include the default ORDER BY logic from DLSyncEventModelImpl
.
modifiedTime
- the modified timestart
- the lower bound of the range of dl sync eventsend
- the upper bound of the range of dl sync events (not inclusive)public static java.util.List<DLSyncEvent> findByModifiedTime(long modifiedTime, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> 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, then the query will include the default ORDER BY logic from DLSyncEventModelImpl
.
modifiedTime
- the modified timestart
- the lower bound of the range of dl sync eventsend
- the upper bound of the range of dl sync events (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<DLSyncEvent> findByModifiedTime(long modifiedTime, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from DLSyncEventModelImpl
.
modifiedTime
- the modified timestart
- the lower bound of the range of dl sync eventsend
- the upper bound of the range of dl sync events (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static DLSyncEvent findByModifiedTime_First(long modifiedTime, com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator) throws NoSuchEventException
modifiedTime
- the modified timeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEventException
- if a matching dl sync event could not be foundpublic static DLSyncEvent fetchByModifiedTime_First(long modifiedTime, com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator)
modifiedTime
- the modified timeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching dl sync event could not be foundpublic static DLSyncEvent findByModifiedTime_Last(long modifiedTime, com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator) throws NoSuchEventException
modifiedTime
- the modified timeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEventException
- if a matching dl sync event could not be foundpublic static DLSyncEvent fetchByModifiedTime_Last(long modifiedTime, com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator)
modifiedTime
- the modified timeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching dl sync event could not be foundpublic static DLSyncEvent[] findByModifiedTime_PrevAndNext(long syncEventId, long modifiedTime, com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator) throws NoSuchEventException
syncEventId
- the primary key of the current dl sync eventmodifiedTime
- the modified timeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEventException
- if a dl sync event with the primary key could not be foundpublic static void removeByModifiedTime(long modifiedTime)
modifiedTime
- the modified timepublic static int countByModifiedTime(long modifiedTime)
modifiedTime
- the modified timepublic static DLSyncEvent findByTypePK(long typePK) throws NoSuchEventException
NoSuchEventException
if it could not be found.typePK
- the type pkNoSuchEventException
- if a matching dl sync event could not be foundpublic static DLSyncEvent fetchByTypePK(long typePK)
null
if it could not be found. Uses the finder cache.typePK
- the type pknull
if a matching dl sync event could not be foundpublic static DLSyncEvent fetchByTypePK(long typePK, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.typePK
- the type pkuseFinderCache
- whether to use the finder cachenull
if a matching dl sync event could not be foundpublic static DLSyncEvent removeByTypePK(long typePK) throws NoSuchEventException
typePK
- the type pkNoSuchEventException
public static int countByTypePK(long typePK)
typePK
- the type pkpublic static void cacheResult(DLSyncEvent dlSyncEvent)
dlSyncEvent
- the dl sync eventpublic static void cacheResult(java.util.List<DLSyncEvent> dlSyncEvents)
dlSyncEvents
- the dl sync eventspublic static DLSyncEvent create(long syncEventId)
syncEventId
- the primary key for the new dl sync eventpublic static DLSyncEvent remove(long syncEventId) throws NoSuchEventException
syncEventId
- the primary key of the dl sync eventNoSuchEventException
- if a dl sync event with the primary key could not be foundpublic static DLSyncEvent updateImpl(DLSyncEvent dlSyncEvent)
public static DLSyncEvent findByPrimaryKey(long syncEventId) throws NoSuchEventException
NoSuchEventException
if it could not be found.syncEventId
- the primary key of the dl sync eventNoSuchEventException
- if a dl sync event with the primary key could not be foundpublic static DLSyncEvent fetchByPrimaryKey(long syncEventId)
null
if it could not be found.syncEventId
- the primary key of the dl sync eventnull
if a dl sync event with the primary key could not be foundpublic static java.util.List<DLSyncEvent> findAll()
public static java.util.List<DLSyncEvent> 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, then the query will include the default ORDER BY logic from DLSyncEventModelImpl
.
start
- the lower bound of the range of dl sync eventsend
- the upper bound of the range of dl sync events (not inclusive)public static java.util.List<DLSyncEvent> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> 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, then the query will include the default ORDER BY logic from DLSyncEventModelImpl
.
start
- the lower bound of the range of dl sync eventsend
- the upper bound of the range of dl sync events (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<DLSyncEvent> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from DLSyncEventModelImpl
.
start
- the lower bound of the range of dl sync eventsend
- the upper bound of the range of dl sync events (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static DLSyncEventPersistence getPersistence()