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 voidcacheResult(DLSyncEvent dlSyncEvent) static voidcacheResult(List<DLSyncEvent> dlSyncEvents) static voidstatic voidclearCache(DLSyncEvent dlSyncEvent) static intcountByGtModifiedTime(long modifiedTime) Returns the number of dl sync events where modifiedTime > ?.static intcountByTypePK(long typePK) Returns the number of dl sync events where typePK = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static DLSyncEventcreate(long syncEventId) Creates a new dl sync event with the primary key.static DLSyncEventfetchByGtModifiedTime_First(long modifiedTime, com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator) Returns the first dl sync event in the ordered set where modifiedTime > ?.static DLSyncEventfetchByPrimaryKey(long syncEventId) Returns the dl sync event with the primary key or returnsnullif it could not be found.static Map<Serializable, DLSyncEvent> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static DLSyncEventfetchByTypePK(long typePK) Returns the dl sync event where typePK = ? or returnsnullif it could not be found.static DLSyncEventfetchByTypePK(long typePK, boolean useFinderCache) Returns the dl sync event where typePK = ? or returnsnullif it could not be found, optionally using the finder cache.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 DLSyncEventfindByGtModifiedTime_First(long modifiedTime, com.liferay.portal.kernel.util.OrderByComparator<DLSyncEvent> orderByComparator) Returns the first dl sync event in the ordered set where modifiedTime > ?.static DLSyncEventfindByPrimaryKey(long syncEventId) Returns the dl sync event with the primary key or throws aNoSuchEventExceptionif it could not be found.static DLSyncEventfindByTypePK(long typePK) Returns the dl sync event where typePK = ? or throws aNoSuchEventExceptionif 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 DLSyncEventPersistencestatic DLSyncEventremove(long syncEventId) Removes the dl sync event with the primary key from the database.static voidremoveByGtModifiedTime(long modifiedTime) Removes all the dl sync events where modifiedTime > ? from the database.static DLSyncEventremoveByTypePK(long typePK) Removes the dl sync event where typePK = ? from the database.static voidsetPersistence(DLSyncEventPersistence persistence) static DLSyncEventupdate(DLSyncEvent dlSyncEvent) static DLSyncEventupdate(DLSyncEvent dlSyncEvent, com.liferay.portal.kernel.service.ServiceContext serviceContext) static DLSyncEventupdateImpl(DLSyncEvent dlSyncEvent)
-
Constructor Details
-
DLSyncEventUtil
public DLSyncEventUtil()
-
-
Method Details
-
cacheResult
- See Also:
-
cacheResult
- See Also:
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
public static List<DLSyncEvent> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<DLSyncEvent> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
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:
-
update
- See Also:
-
update
public static DLSyncEvent update(DLSyncEvent dlSyncEvent, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.document.library.sync.model.impl.DLSyncEventModelImpl.- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.document.library.sync.model.impl.DLSyncEventModelImpl.- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.document.library.sync.model.impl.DLSyncEventModelImpl.- 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
-
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
nullif a matching dl sync event could not be found
-
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 aNoSuchEventExceptionif it could not be found.- Parameters:
typePK- the type pk- Returns:
- the matching dl sync event
-
fetchByTypePK
Returns the dl sync event where typePK = ? or returnsnullif 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
nullif 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
-
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
-
updateImpl
-
findByPrimaryKey
Returns the dl sync event with the primary key or throws aNoSuchEventExceptionif it could not be found.- Parameters:
syncEventId- the primary key of the dl sync event- Returns:
- the dl sync event
-
fetchByPrimaryKey
Returns the dl sync event with the primary key or returnsnullif it could not be found.- Parameters:
syncEventId- the primary key of the dl sync event- Returns:
- the dl sync event, or
nullif a dl sync event with the primary key could not be found
-
fetchByTypePK
Returns the dl sync event where typePK = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
typePK- the type pk- Returns:
- the matching dl sync event, or
nullif a matching dl sync event could not be found
-
getPersistence
-
setPersistence
-