Class DLSyncEventUtil
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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(DLSyncEvent dlSyncEvent) Caches the dl sync event in the entity cache if it is enabled.static void
cacheResult
(List<DLSyncEvent> dlSyncEvents) Caches the dl sync events in the entity cache if it is enabled.static void
static void
clearCache
(DLSyncEvent dlSyncEvent) static int
countAll()
Returns the number of dl sync events.static int
countByGtModifiedTime
(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
fetchByGtModifiedTime_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
fetchByGtModifiedTime_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 returnsnull
if it could not be found.static Map<Serializable,
DLSyncEvent> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static DLSyncEvent
fetchByTypePK
(long typePK) Returns the dl sync event where typePK = ? or returnsnull
if it could not be found.static DLSyncEvent
fetchByTypePK
(long typePK, boolean useFinderCache) Returns the dl sync event where typePK = ? or returnsnull
if it could not be found, optionally using the finder cache.static List<DLSyncEvent>
findAll()
Returns all the dl sync events.static List<DLSyncEvent>
findAll
(int start, int end) Returns a range of all the dl sync events.static 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 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 List<DLSyncEvent>
findByGtModifiedTime
(long modifiedTime) Returns all the dl sync events where modifiedTime > ?.static List<DLSyncEvent>
findByGtModifiedTime
(long modifiedTime, int start, int end) Returns a range of all the dl sync events where modifiedTime > ?.static List<DLSyncEvent>
findByGtModifiedTime
(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 List<DLSyncEvent>
findByGtModifiedTime
(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
findByGtModifiedTime_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
findByGtModifiedTime_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[]
findByGtModifiedTime_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 DLSyncEvent
findByPrimaryKey
(long syncEventId) Returns the dl sync event with the primary key or throws aNoSuchEventException
if it could not be found.static DLSyncEvent
findByTypePK
(long typePK) Returns the dl sync event where typePK = ? or throws aNoSuchEventException
if it could not be found.static List<DLSyncEvent>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<DLSyncEvent>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static 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
static DLSyncEvent
remove
(long syncEventId) Removes the dl sync event with the primary key from the database.static void
Removes all the dl sync events from the database.static void
removeByGtModifiedTime
(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 void
setPersistence
(DLSyncEventPersistence persistence) static DLSyncEvent
update
(DLSyncEvent dlSyncEvent) static DLSyncEvent
update
(DLSyncEvent dlSyncEvent, com.liferay.portal.kernel.service.ServiceContext serviceContext) static DLSyncEvent
updateImpl
(DLSyncEvent dlSyncEvent)
-
Constructor Details
-
DLSyncEventUtil
public DLSyncEventUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
- See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<DLSyncEvent> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<DLSyncEvent> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<DLSyncEvent> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static DLSyncEvent update(DLSyncEvent dlSyncEvent, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByGtModifiedTime
Returns all the dl sync events where modifiedTime > ?.- Parameters:
modifiedTime
- the modified time- Returns:
- the matching dl sync events
-
findByGtModifiedTime
Returns a range of all the dl sync events where modifiedTime > ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDLSyncEventModelImpl
.- Parameters:
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)- Returns:
- the range of matching dl sync events
-
findByGtModifiedTime
public static List<DLSyncEvent> findByGtModifiedTime(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 > ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDLSyncEventModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching dl sync events
-
findByGtModifiedTime
public static List<DLSyncEvent> findByGtModifiedTime(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 > ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDLSyncEventModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching dl sync events
-
findByGtModifiedTime_First
public static DLSyncEvent findByGtModifiedTime_First(long modifiedTime, com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator) throws NoSuchEventException Returns the first dl sync event in the ordered set where modifiedTime > ?.- Parameters:
modifiedTime
- the modified timeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching dl sync event
- Throws:
NoSuchEventException
- if a matching dl sync event could not be foundNoSuchEventException
-
fetchByGtModifiedTime_First
public static DLSyncEvent fetchByGtModifiedTime_First(long modifiedTime, com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator) Returns the first dl sync event in the ordered set where modifiedTime > ?.- Parameters:
modifiedTime
- the modified timeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching dl sync event, or
null
if a matching dl sync event could not be found
-
findByGtModifiedTime_Last
public static DLSyncEvent findByGtModifiedTime_Last(long modifiedTime, com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator) throws NoSuchEventException Returns the last dl sync event in the ordered set where modifiedTime > ?.- Parameters:
modifiedTime
- the modified timeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching dl sync event
- Throws:
NoSuchEventException
- if a matching dl sync event could not be foundNoSuchEventException
-
fetchByGtModifiedTime_Last
public static DLSyncEvent fetchByGtModifiedTime_Last(long modifiedTime, com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator) Returns the last dl sync event in the ordered set where modifiedTime > ?.- Parameters:
modifiedTime
- the modified timeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching dl sync event, or
null
if a matching dl sync event could not be found
-
findByGtModifiedTime_PrevAndNext
public static DLSyncEvent[] findByGtModifiedTime_PrevAndNext(long syncEventId, long modifiedTime, com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator) throws NoSuchEventException Returns the dl sync events before and after the current dl sync event in the ordered set where modifiedTime > ?.- Parameters:
syncEventId
- the primary key of the current dl sync eventmodifiedTime
- the modified timeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next dl sync event
- Throws:
NoSuchEventException
- if a dl sync event with the primary key could not be foundNoSuchEventException
-
removeByGtModifiedTime
public static void removeByGtModifiedTime(long modifiedTime) Removes all the dl sync events where modifiedTime > ? from the database.- Parameters:
modifiedTime
- the modified time
-
countByGtModifiedTime
public static int countByGtModifiedTime(long modifiedTime) Returns the number of dl sync events where modifiedTime > ?.- Parameters:
modifiedTime
- the modified time- Returns:
- the number of matching dl sync events
-
findByTypePK
Returns the dl sync event where typePK = ? or throws aNoSuchEventException
if it could not be found.- Parameters:
typePK
- the type pk- Returns:
- the matching dl sync event
- Throws:
NoSuchEventException
- if a matching dl sync event could not be foundNoSuchEventException
-
fetchByTypePK
Returns the dl sync event where typePK = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
typePK
- the type pk- Returns:
- the matching dl sync event, or
null
if a matching dl sync event could not be found
-
fetchByTypePK
Returns the dl sync event where typePK = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
typePK
- the type pkuseFinderCache
- whether to use the finder cache- Returns:
- the matching dl sync event, or
null
if a matching dl sync event could not be found
-
removeByTypePK
Removes the dl sync event where typePK = ? from the database.- Parameters:
typePK
- the type pk- Returns:
- the dl sync event that was removed
- Throws:
NoSuchEventException
-
countByTypePK
public static int countByTypePK(long typePK) Returns the number of dl sync events where typePK = ?.- Parameters:
typePK
- the type pk- Returns:
- the number of matching dl sync events
-
cacheResult
Caches the dl sync event in the entity cache if it is enabled.- Parameters:
dlSyncEvent
- the dl sync event
-
cacheResult
Caches the dl sync events in the entity cache if it is enabled.- Parameters:
dlSyncEvents
- the dl sync events
-
create
Creates a new dl sync event with the primary key. Does not add the dl sync event to the database.- Parameters:
syncEventId
- the primary key for the new dl sync event- Returns:
- the new dl sync event
-
remove
Removes the dl sync event with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
syncEventId
- the primary key of the dl sync event- Returns:
- the dl sync event that was removed
- Throws:
NoSuchEventException
- if a dl sync event with the primary key could not be foundNoSuchEventException
-
updateImpl
-
findByPrimaryKey
Returns the dl sync event with the primary key or throws aNoSuchEventException
if it could not be found.- Parameters:
syncEventId
- the primary key of the dl sync event- Returns:
- the dl sync event
- Throws:
NoSuchEventException
- if a dl sync event with the primary key could not be foundNoSuchEventException
-
fetchByPrimaryKey
Returns the dl sync event with the primary key or returnsnull
if it could not be found.- Parameters:
syncEventId
- the primary key of the dl sync event- Returns:
- the dl sync event, or
null
if a dl sync event with the primary key could not be found
-
findAll
Returns all the dl sync events.- Returns:
- the dl sync events
-
findAll
Returns a range of all the dl sync events.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDLSyncEventModelImpl
.- Parameters:
start
- the lower bound of the range of dl sync eventsend
- the upper bound of the range of dl sync events (not inclusive)- Returns:
- the range of dl sync events
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDLSyncEventModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of dl sync events
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDLSyncEventModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of dl sync events
-
removeAll
public static void removeAll()Removes all the dl sync events from the database. -
countAll
public static int countAll()Returns the number of dl sync events.- Returns:
- the number of dl sync events
-
getPersistence
-
setPersistence
-