Liferay 6.2-ce-ga5

com.liferay.portlet.documentlibrary.service.persistence
Class DLSyncEventUtil

java.lang.Object
  extended by com.liferay.portlet.documentlibrary.service.persistence.DLSyncEventUtil

@ProviderType
public class DLSyncEventUtil
extends Object

The persistence utility for the d l sync event service. This utility wraps 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:
DLSyncEventPersistence, DLSyncEventPersistenceImpl

Constructor Summary
DLSyncEventUtil()
           
 
Method Summary
static void cacheResult(DLSyncEvent dlSyncEvent)
          Caches the d l sync event in the entity cache if it is enabled.
static void cacheResult(List<DLSyncEvent> dlSyncEvents)
          Caches the d l 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 d l sync events.
static int countByModifiedTime(long modifiedTime)
          Returns the number of d l sync events where modifiedTime > ?.
static int countByTypePK(long typePK)
          Returns the number of d l sync events where typePK = ?.
static long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static DLSyncEvent create(long syncEventId)
          Creates a new d l sync event with the primary key.
static DLSyncEvent fetchByModifiedTime_First(long modifiedTime, OrderByComparator orderByComparator)
          Returns the first d l sync event in the ordered set where modifiedTime > ?.
static DLSyncEvent fetchByModifiedTime_Last(long modifiedTime, OrderByComparator orderByComparator)
          Returns the last d l sync event in the ordered set where modifiedTime > ?.
static DLSyncEvent fetchByPrimaryKey(long syncEventId)
          Returns the d l sync event with the primary key or returns null if it could not be found.
static DLSyncEvent fetchByTypePK(long typePK)
          Returns the d l sync event where typePK = ? or returns null if it could not be found.
static 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.
static List<DLSyncEvent> findAll()
          Returns all the d l sync events.
static List<DLSyncEvent> findAll(int start, int end)
          Returns a range of all the d l sync events.
static List<DLSyncEvent> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d l sync events.
static DLSyncEvent findByModifiedTime_First(long modifiedTime, OrderByComparator orderByComparator)
          Returns the first d l sync event in the ordered set where modifiedTime > ?.
static DLSyncEvent findByModifiedTime_Last(long modifiedTime, OrderByComparator orderByComparator)
          Returns the last d l sync event in the ordered set where modifiedTime > ?.
static 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 > ?.
static List<DLSyncEvent> findByModifiedTime(long modifiedTime)
          Returns all the d l sync events where modifiedTime > ?.
static List<DLSyncEvent> findByModifiedTime(long modifiedTime, int start, int end)
          Returns a range of all the d l sync events where modifiedTime > ?.
static List<DLSyncEvent> findByModifiedTime(long modifiedTime, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d l sync events where modifiedTime > ?.
static DLSyncEvent findByPrimaryKey(long syncEventId)
          Returns the d l sync event with the primary key or throws a NoSuchSyncEventException if it could not be found.
static DLSyncEvent findByTypePK(long typePK)
          Returns the d l sync event where typePK = ? or throws a NoSuchSyncEventException if it could not be found.
static List<DLSyncEvent> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<DLSyncEvent> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<DLSyncEvent> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static DLSyncEventPersistence getPersistence()
           
static DLSyncEvent remove(long syncEventId)
          Removes the d l sync event with the primary key from the database.
static void removeAll()
          Removes all the d l sync events from the database.
static void removeByModifiedTime(long modifiedTime)
          Removes all the d l sync events where modifiedTime > ? from the database.
static DLSyncEvent removeByTypePK(long typePK)
          Removes the d l sync event where typePK = ? from the database.
 void setPersistence(DLSyncEventPersistence persistence)
          Deprecated. As of 6.2.0
static DLSyncEvent update(DLSyncEvent dlSyncEvent)
           
static DLSyncEvent update(DLSyncEvent dlSyncEvent, ServiceContext serviceContext)
           
static DLSyncEvent updateImpl(DLSyncEvent dlSyncEvent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLSyncEventUtil

public DLSyncEventUtil()
Method Detail

clearCache

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

clearCache

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

countWithDynamicQuery

public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
                                  throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<DLSyncEvent> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                              throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<DLSyncEvent> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                     int start,
                                                     int end)
                                              throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<DLSyncEvent> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                     int start,
                                                     int end,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

update

public static DLSyncEvent update(DLSyncEvent dlSyncEvent)
                          throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel)

update

public static DLSyncEvent update(DLSyncEvent dlSyncEvent,
                                 ServiceContext serviceContext)
                          throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)

findByModifiedTime

public static List<DLSyncEvent> findByModifiedTime(long modifiedTime)
                                            throws SystemException
Returns all the d l sync events where modifiedTime > ?.

Parameters:
modifiedTime - the modified time
Returns:
the matching d l sync events
Throws:
SystemException - if a system exception occurred

findByModifiedTime

public static List<DLSyncEvent> findByModifiedTime(long modifiedTime,
                                                   int start,
                                                   int end)
                                            throws SystemException
Returns a range of all the d l 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 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.

Parameters:
modifiedTime - the modified time
start - the lower bound of the range of d l sync events
end - the upper bound of the range of d l sync events (not inclusive)
Returns:
the range of matching d l sync events
Throws:
SystemException - if a system exception occurred

findByModifiedTime

public static List<DLSyncEvent> findByModifiedTime(long modifiedTime,
                                                   int start,
                                                   int end,
                                                   OrderByComparator orderByComparator)
                                            throws SystemException
Returns an ordered range of all the d l 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 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.

Parameters:
modifiedTime - the modified time
start - the lower bound of the range of d l sync events
end - the upper bound of the range of d l sync events (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d l sync events
Throws:
SystemException - if a system exception occurred

findByModifiedTime_First

public static DLSyncEvent findByModifiedTime_First(long modifiedTime,
                                                   OrderByComparator orderByComparator)
                                            throws SystemException,
                                                   NoSuchSyncEventException
Returns the first d l 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 d l sync event
Throws:
NoSuchSyncEventException - if a matching d l sync event could not be found
SystemException - if a system exception occurred

fetchByModifiedTime_First

public static DLSyncEvent fetchByModifiedTime_First(long modifiedTime,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException
Returns the first d l 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 d l sync event, or null if a matching d l sync event could not be found
Throws:
SystemException - if a system exception occurred

findByModifiedTime_Last

public static DLSyncEvent findByModifiedTime_Last(long modifiedTime,
                                                  OrderByComparator orderByComparator)
                                           throws SystemException,
                                                  NoSuchSyncEventException
Returns the last d l 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 last matching d l sync event
Throws:
NoSuchSyncEventException - if a matching d l sync event could not be found
SystemException - if a system exception occurred

fetchByModifiedTime_Last

public static DLSyncEvent fetchByModifiedTime_Last(long modifiedTime,
                                                   OrderByComparator orderByComparator)
                                            throws SystemException
Returns the last d l 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 last matching d l sync event, or null if a matching d l sync event could not be found
Throws:
SystemException - if a system exception occurred

findByModifiedTime_PrevAndNext

public static DLSyncEvent[] findByModifiedTime_PrevAndNext(long syncEventId,
                                                           long modifiedTime,
                                                           OrderByComparator orderByComparator)
                                                    throws SystemException,
                                                           NoSuchSyncEventException
Returns the d l sync events before and after the current d l sync event in the ordered set where modifiedTime > ?.

Parameters:
syncEventId - the primary key of the current d l sync event
modifiedTime - the modified time
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d l sync event
Throws:
NoSuchSyncEventException - if a d l sync event with the primary key could not be found
SystemException - if a system exception occurred

removeByModifiedTime

public static void removeByModifiedTime(long modifiedTime)
                                 throws SystemException
Removes all the d l sync events where modifiedTime > ? from the database.

Parameters:
modifiedTime - the modified time
Throws:
SystemException - if a system exception occurred

countByModifiedTime

public static int countByModifiedTime(long modifiedTime)
                               throws SystemException
Returns the number of d l sync events where modifiedTime > ?.

Parameters:
modifiedTime - the modified time
Returns:
the number of matching d l sync events
Throws:
SystemException - if a system exception occurred

findByTypePK

public static DLSyncEvent findByTypePK(long typePK)
                                throws SystemException,
                                       NoSuchSyncEventException
Returns the d l sync event where typePK = ? or throws a NoSuchSyncEventException if it could not be found.

Parameters:
typePK - the type p k
Returns:
the matching d l sync event
Throws:
NoSuchSyncEventException - if a matching d l sync event could not be found
SystemException - if a system exception occurred

fetchByTypePK

public static DLSyncEvent fetchByTypePK(long typePK)
                                 throws SystemException
Returns the d l sync event where typePK = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
typePK - the type p k
Returns:
the matching d l sync event, or null if a matching d l sync event could not be found
Throws:
SystemException - if a system exception occurred

fetchByTypePK

public static DLSyncEvent fetchByTypePK(long typePK,
                                        boolean retrieveFromCache)
                                 throws SystemException
Returns the d l sync event where typePK = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
typePK - the type p k
retrieveFromCache - whether to use the finder cache
Returns:
the matching d l sync event, or null if a matching d l sync event could not be found
Throws:
SystemException - if a system exception occurred

removeByTypePK

public static DLSyncEvent removeByTypePK(long typePK)
                                  throws SystemException,
                                         NoSuchSyncEventException
Removes the d l sync event where typePK = ? from the database.

Parameters:
typePK - the type p k
Returns:
the d l sync event that was removed
Throws:
SystemException - if a system exception occurred
NoSuchSyncEventException

countByTypePK

public static int countByTypePK(long typePK)
                         throws SystemException
Returns the number of d l sync events where typePK = ?.

Parameters:
typePK - the type p k
Returns:
the number of matching d l sync events
Throws:
SystemException - if a system exception occurred

cacheResult

public static void cacheResult(DLSyncEvent dlSyncEvent)
Caches the d l sync event in the entity cache if it is enabled.

Parameters:
dlSyncEvent - the d l sync event

cacheResult

public static void cacheResult(List<DLSyncEvent> dlSyncEvents)
Caches the d l sync events in the entity cache if it is enabled.

Parameters:
dlSyncEvents - the d l sync events

create

public static DLSyncEvent create(long syncEventId)
Creates a new d l sync event with the primary key. Does not add the d l sync event to the database.

Parameters:
syncEventId - the primary key for the new d l sync event
Returns:
the new d l sync event

remove

public static DLSyncEvent remove(long syncEventId)
                          throws SystemException,
                                 NoSuchSyncEventException
Removes the d l sync event with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
syncEventId - the primary key of the d l sync event
Returns:
the d l sync event that was removed
Throws:
NoSuchSyncEventException - if a d l sync event with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

public static DLSyncEvent updateImpl(DLSyncEvent dlSyncEvent)
                              throws SystemException
Throws:
SystemException

findByPrimaryKey

public static DLSyncEvent findByPrimaryKey(long syncEventId)
                                    throws SystemException,
                                           NoSuchSyncEventException
Returns the d l sync event with the primary key or throws a NoSuchSyncEventException if it could not be found.

Parameters:
syncEventId - the primary key of the d l sync event
Returns:
the d l sync event
Throws:
NoSuchSyncEventException - if a d l sync event with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public static DLSyncEvent fetchByPrimaryKey(long syncEventId)
                                     throws SystemException
Returns the d l sync event with the primary key or returns null if it could not be found.

Parameters:
syncEventId - the primary key of the d l sync event
Returns:
the d l sync event, or null if a d l sync event with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findAll

public static List<DLSyncEvent> findAll()
                                 throws SystemException
Returns all the d l sync events.

Returns:
the d l sync events
Throws:
SystemException - if a system exception occurred

findAll

public static List<DLSyncEvent> findAll(int start,
                                        int end)
                                 throws SystemException
Returns a range of all the d l sync events.

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.

Parameters:
start - the lower bound of the range of d l sync events
end - the upper bound of the range of d l sync events (not inclusive)
Returns:
the range of d l sync events
Throws:
SystemException - if a system exception occurred

findAll

public static List<DLSyncEvent> findAll(int start,
                                        int end,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Returns an ordered range of all the d l sync events.

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.

Parameters:
start - the lower bound of the range of d l sync events
end - the upper bound of the range of d l sync events (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of d l sync events
Throws:
SystemException - if a system exception occurred

removeAll

public static void removeAll()
                      throws SystemException
Removes all the d l sync events from the database.

Throws:
SystemException - if a system exception occurred

countAll

public static int countAll()
                    throws SystemException
Returns the number of d l sync events.

Returns:
the number of d l sync events
Throws:
SystemException - if a system exception occurred

getPersistence

public static DLSyncEventPersistence getPersistence()

setPersistence

public void setPersistence(DLSyncEventPersistence persistence)
Deprecated. As of 6.2.0


Liferay 6.2-ce-ga5