@ProviderType public class DLSyncEventUtil extends Object
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
,
DLSyncEventPersistenceImpl
Constructor and Description |
---|
DLSyncEventUtil() |
Modifier and Type | Method and Description |
---|---|
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<DLSyncEvent> orderByComparator)
Returns the first d l sync event in the ordered set where modifiedTime > ?.
|
static DLSyncEvent |
fetchByModifiedTime_Last(long modifiedTime,
OrderByComparator<DLSyncEvent> 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 Map<Serializable,DLSyncEvent> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys) |
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<DLSyncEvent> orderByComparator)
Returns an ordered range of all the d l sync events.
|
static List<DLSyncEvent> |
findAll(int start,
int end,
OrderByComparator<DLSyncEvent> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the d l sync events.
|
static DLSyncEvent |
findByModifiedTime_First(long modifiedTime,
OrderByComparator<DLSyncEvent> orderByComparator)
Returns the first d l sync event in the ordered set where modifiedTime > ?.
|
static DLSyncEvent |
findByModifiedTime_Last(long modifiedTime,
OrderByComparator<DLSyncEvent> orderByComparator)
Returns the last d l sync event in the ordered set where modifiedTime > ?.
|
static DLSyncEvent[] |
findByModifiedTime_PrevAndNext(long syncEventId,
long modifiedTime,
OrderByComparator<DLSyncEvent> 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<DLSyncEvent> orderByComparator)
Returns an ordered range of all the d l sync events where modifiedTime > ?.
|
static List<DLSyncEvent> |
findByModifiedTime(long modifiedTime,
int start,
int end,
OrderByComparator<DLSyncEvent> orderByComparator,
boolean retrieveFromCache)
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<DLSyncEvent> orderByComparator) |
static Set<String> |
getBadColumnNames() |
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.
|
static DLSyncEvent |
update(DLSyncEvent dlSyncEvent) |
static DLSyncEvent |
update(DLSyncEvent dlSyncEvent,
ServiceContext serviceContext) |
static DLSyncEvent |
updateImpl(DLSyncEvent dlSyncEvent) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(DLSyncEvent dlSyncEvent)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
public static List<DLSyncEvent> findWithDynamicQuery(DynamicQuery dynamicQuery)
public static List<DLSyncEvent> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
public static List<DLSyncEvent> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<DLSyncEvent> orderByComparator)
public static DLSyncEvent update(DLSyncEvent dlSyncEvent)
public static DLSyncEvent update(DLSyncEvent dlSyncEvent, ServiceContext serviceContext)
public static List<DLSyncEvent> findByModifiedTime(long modifiedTime)
modifiedTime
- the modified timepublic static 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 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.
modifiedTime
- the modified timestart
- the lower bound of the range of d l sync eventsend
- the upper bound of the range of d l sync events (not inclusive)public static List<DLSyncEvent> findByModifiedTime(long modifiedTime, int start, int end, 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 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.
modifiedTime
- the modified timestart
- the lower bound of the range of d l sync eventsend
- the upper bound of the range of d l sync events (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<DLSyncEvent> findByModifiedTime(long modifiedTime, int start, int end, OrderByComparator<DLSyncEvent> orderByComparator, boolean retrieveFromCache)
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.
modifiedTime
- the modified timestart
- the lower bound of the range of d l sync eventsend
- the upper bound of the range of d l sync events (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static DLSyncEvent findByModifiedTime_First(long modifiedTime, OrderByComparator<DLSyncEvent> orderByComparator) throws NoSuchSyncEventException
modifiedTime
- the modified timeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSyncEventException
- if a matching d l sync event could not be foundpublic static DLSyncEvent fetchByModifiedTime_First(long modifiedTime, OrderByComparator<DLSyncEvent> orderByComparator)
modifiedTime
- the modified timeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching d l sync event could not be foundpublic static DLSyncEvent findByModifiedTime_Last(long modifiedTime, OrderByComparator<DLSyncEvent> orderByComparator) throws NoSuchSyncEventException
modifiedTime
- the modified timeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSyncEventException
- if a matching d l sync event could not be foundpublic static DLSyncEvent fetchByModifiedTime_Last(long modifiedTime, OrderByComparator<DLSyncEvent> orderByComparator)
modifiedTime
- the modified timeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching d l sync event could not be foundpublic static DLSyncEvent[] findByModifiedTime_PrevAndNext(long syncEventId, long modifiedTime, OrderByComparator<DLSyncEvent> orderByComparator) throws NoSuchSyncEventException
syncEventId
- the primary key of the current d l sync eventmodifiedTime
- the modified timeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSyncEventException
- if a d l 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 NoSuchSyncEventException
NoSuchSyncEventException
if it could not be found.typePK
- the type p kNoSuchSyncEventException
- if a matching d l 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 p knull
if a matching d l sync event could not be foundpublic static DLSyncEvent fetchByTypePK(long typePK, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.typePK
- the type p kretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching d l sync event could not be foundpublic static DLSyncEvent removeByTypePK(long typePK) throws NoSuchSyncEventException
typePK
- the type p kNoSuchSyncEventException
public static int countByTypePK(long typePK)
typePK
- the type p kpublic static void cacheResult(DLSyncEvent dlSyncEvent)
dlSyncEvent
- the d l sync eventpublic static void cacheResult(List<DLSyncEvent> dlSyncEvents)
dlSyncEvents
- the d l sync eventspublic static DLSyncEvent create(long syncEventId)
syncEventId
- the primary key for the new d l sync eventpublic static DLSyncEvent remove(long syncEventId) throws NoSuchSyncEventException
syncEventId
- the primary key of the d l sync eventNoSuchSyncEventException
- if a d l sync event with the primary key could not be foundpublic static DLSyncEvent updateImpl(DLSyncEvent dlSyncEvent)
public static DLSyncEvent findByPrimaryKey(long syncEventId) throws NoSuchSyncEventException
NoSuchSyncEventException
if it could not be found.syncEventId
- the primary key of the d l sync eventNoSuchSyncEventException
- if a d l 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 d l sync eventnull
if a d l sync event with the primary key could not be foundpublic static Map<Serializable,DLSyncEvent> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
public static List<DLSyncEvent> findAll()
public static 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 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.
start
- the lower bound of the range of d l sync eventsend
- the upper bound of the range of d l sync events (not inclusive)public static List<DLSyncEvent> findAll(int start, int end, 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 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.
start
- the lower bound of the range of d l sync eventsend
- the upper bound of the range of d l sync events (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<DLSyncEvent> findAll(int start, int end, OrderByComparator<DLSyncEvent> orderByComparator, boolean retrieveFromCache)
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.
start
- the lower bound of the range of d l sync eventsend
- the upper bound of the range of d l sync events (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static DLSyncEventPersistence getPersistence()