java.lang.Object
com.liferay.document.library.sync.service.persistence.DLSyncEventUtil

public class DLSyncEventUtil extends Object
The persistence utility for the dl sync event service. This utility wraps 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 Details

    • DLSyncEventUtil

      public DLSyncEventUtil()
  • Method Details

    • cacheResult

      public static void cacheResult(List<DLSyncEvent> dlSyncEvents)
      See Also:
      • BasePersistence.cacheResult(List)
    • cacheResult

      public static void cacheResult(DLSyncEvent dlSyncEvent)
      See Also:
      • BasePersistence.cacheResult(com.liferay.portal.kernel.model.BaseModel)
    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(DLSyncEvent dlSyncEvent)
      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

      public static Map<Serializable,DLSyncEvent> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      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

      public static DLSyncEvent update(DLSyncEvent dlSyncEvent)
      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

      public static List<DLSyncEvent> findByGtModifiedTime(long modifiedTime)
      Returns all the dl sync events where modifiedTime > ?.
      Parameters:
      modifiedTime - the modified time
      Returns:
      the matching dl sync events
    • findByGtModifiedTime

      public static List<DLSyncEvent> findByGtModifiedTime(long modifiedTime, int start, int end)
      Returns a range of all the dl sync events where modifiedTime > ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.document.library.sync.model.impl.DLSyncEventModelImpl.

      Parameters:
      modifiedTime - the modified time
      start - the lower bound of the range of dl sync events
      end - 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 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.document.library.sync.model.impl.DLSyncEventModelImpl.

      Parameters:
      modifiedTime - the modified time
      start - the lower bound of the range of dl sync events
      end - the upper bound of the range of dl sync events (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.document.library.sync.model.impl.DLSyncEventModelImpl.

      Parameters:
      modifiedTime - the modified time
      start - the lower bound of the range of dl sync events
      end - 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 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 time
      orderByComparator - the comparator to order the set by (optionally null)
      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 time
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching dl sync event, or null if 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

      public static DLSyncEvent findByTypePK(long typePK) throws NoSuchEventException
      Returns the dl sync event where typePK = ? or throws a NoSuchEventException if it could not be found.
      Parameters:
      typePK - the type pk
      Returns:
      the matching dl sync event
    • fetchByTypePK

      public 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.
      Parameters:
      typePK - the type pk
      useFinderCache - 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

      public static DLSyncEvent removeByTypePK(long typePK) throws NoSuchEventException
      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

      public static DLSyncEvent create(long syncEventId)
      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

      public static DLSyncEvent remove(long syncEventId) throws NoSuchEventException
      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

      public static DLSyncEvent updateImpl(DLSyncEvent dlSyncEvent)
    • findByPrimaryKey

      public static DLSyncEvent findByPrimaryKey(long syncEventId) throws NoSuchEventException
      Returns the dl sync event with the primary key or throws a NoSuchEventException if it could not be found.
      Parameters:
      syncEventId - the primary key of the dl sync event
      Returns:
      the dl sync event
    • fetchByPrimaryKey

      public static DLSyncEvent fetchByPrimaryKey(long syncEventId)
      Returns the dl sync event with the primary key or returns null 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
    • fetchByTypePK

      public static DLSyncEvent fetchByTypePK(long typePK)
      Returns the dl sync event where typePK = ? or returns null 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
    • getPersistence

      public static DLSyncEventPersistence getPersistence()
    • setPersistence

      public static void setPersistence(DLSyncEventPersistence persistence)