Liferay 7.0-ce-b4

com.liferay.portlet.documentlibrary.service.persistence
Interface DLSyncEventPersistence

All Superinterfaces:
BasePersistence<DLSyncEvent>
All Known Implementing Classes:
DLSyncEventPersistenceImpl

@ProviderType
public interface DLSyncEventPersistence
extends BasePersistence<DLSyncEvent>

The persistence interface for the d l sync event service.

Caching information and settings can be found in portal.properties

See Also:
DLSyncEventPersistenceImpl, DLSyncEventUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
 void cacheResult(DLSyncEvent dlSyncEvent)
          Caches the d l sync event in the entity cache if it is enabled.
 void cacheResult(List<DLSyncEvent> dlSyncEvents)
          Caches the d l sync events in the entity cache if it is enabled.
 int countAll()
          Returns the number of d l sync events.
 int countByModifiedTime(long modifiedTime)
          Returns the number of d l sync events where modifiedTime > ?.
 int countByTypePK(long typePK)
          Returns the number of d l sync events where typePK = ?.
 DLSyncEvent create(long syncEventId)
          Creates a new d l sync event with the primary key.
 DLSyncEvent fetchByModifiedTime_First(long modifiedTime, OrderByComparator<DLSyncEvent> orderByComparator)
          Returns the first d l sync event in the ordered set where modifiedTime > ?.
 DLSyncEvent fetchByModifiedTime_Last(long modifiedTime, OrderByComparator<DLSyncEvent> orderByComparator)
          Returns the last d l sync event in the ordered set where modifiedTime > ?.
 DLSyncEvent fetchByPrimaryKey(long syncEventId)
          Returns the d l sync event with the primary key or returns null if it could not be found.
 Map<Serializable,DLSyncEvent> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
 DLSyncEvent fetchByTypePK(long typePK)
          Returns the d l sync event where typePK = ? or returns null if it could not be found.
 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.
 List<DLSyncEvent> findAll()
          Returns all the d l sync events.
 List<DLSyncEvent> findAll(int start, int end)
          Returns a range of all the d l sync events.
 List<DLSyncEvent> findAll(int start, int end, OrderByComparator<DLSyncEvent> orderByComparator)
          Returns an ordered range of all the d l sync events.
 List<DLSyncEvent> findAll(int start, int end, OrderByComparator<DLSyncEvent> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the d l sync events.
 DLSyncEvent findByModifiedTime_First(long modifiedTime, OrderByComparator<DLSyncEvent> orderByComparator)
          Returns the first d l sync event in the ordered set where modifiedTime > ?.
 DLSyncEvent findByModifiedTime_Last(long modifiedTime, OrderByComparator<DLSyncEvent> orderByComparator)
          Returns the last d l sync event in the ordered set where modifiedTime > ?.
 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 > ?.
 List<DLSyncEvent> findByModifiedTime(long modifiedTime)
          Returns all the d l sync events where modifiedTime > ?.
 List<DLSyncEvent> findByModifiedTime(long modifiedTime, int start, int end)
          Returns a range of all the d l sync events where modifiedTime > ?.
 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 > ?.
 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 > ?.
 DLSyncEvent findByPrimaryKey(long syncEventId)
          Returns the d l sync event with the primary key or throws a NoSuchSyncEventException if it could not be found.
 DLSyncEvent findByTypePK(long typePK)
          Returns the d l sync event where typePK = ? or throws a NoSuchSyncEventException if it could not be found.
 Set<String> getBadColumnNames()
           
 DLSyncEvent remove(long syncEventId)
          Removes the d l sync event with the primary key from the database.
 void removeAll()
          Removes all the d l sync events from the database.
 void removeByModifiedTime(long modifiedTime)
          Removes all the d l sync events where modifiedTime > ? from the database.
 DLSyncEvent removeByTypePK(long typePK)
          Removes the d l sync event where typePK = ? from the database.
 DLSyncEvent updateImpl(DLSyncEvent dlSyncEvent)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update
 

Method Detail

findByModifiedTime

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

Parameters:
modifiedTime - the modified time
Returns:
the matching d l sync events

findByModifiedTime

List<DLSyncEvent> findByModifiedTime(long modifiedTime,
                                     int start,
                                     int end)
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

findByModifiedTime

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 > ?.

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

findByModifiedTime

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 > ?.

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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching d l sync events

findByModifiedTime_First

DLSyncEvent findByModifiedTime_First(long modifiedTime,
                                     OrderByComparator<DLSyncEvent> orderByComparator)
                                     throws 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

fetchByModifiedTime_First

DLSyncEvent fetchByModifiedTime_First(long modifiedTime,
                                      OrderByComparator<DLSyncEvent> orderByComparator)
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

findByModifiedTime_Last

DLSyncEvent findByModifiedTime_Last(long modifiedTime,
                                    OrderByComparator<DLSyncEvent> orderByComparator)
                                    throws 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

fetchByModifiedTime_Last

DLSyncEvent fetchByModifiedTime_Last(long modifiedTime,
                                     OrderByComparator<DLSyncEvent> orderByComparator)
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

findByModifiedTime_PrevAndNext

DLSyncEvent[] findByModifiedTime_PrevAndNext(long syncEventId,
                                             long modifiedTime,
                                             OrderByComparator<DLSyncEvent> orderByComparator)
                                             throws 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

removeByModifiedTime

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

Parameters:
modifiedTime - the modified time

countByModifiedTime

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

Parameters:
modifiedTime - the modified time
Returns:
the number of matching d l sync events

findByTypePK

DLSyncEvent findByTypePK(long typePK)
                         throws 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

fetchByTypePK

DLSyncEvent fetchByTypePK(long typePK)
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

fetchByTypePK

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.

Parameters:
typePK - the type p k
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching d l sync event, or null if a matching d l sync event could not be found

removeByTypePK

DLSyncEvent removeByTypePK(long typePK)
                           throws 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:
NoSuchSyncEventException

countByTypePK

int countByTypePK(long typePK)
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

cacheResult

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

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

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

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

updateImpl

DLSyncEvent updateImpl(DLSyncEvent dlSyncEvent)

findByPrimaryKey

DLSyncEvent findByPrimaryKey(long syncEventId)
                             throws 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

fetchByPrimaryKey

DLSyncEvent fetchByPrimaryKey(long syncEventId)
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

fetchByPrimaryKeys

Map<Serializable,DLSyncEvent> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
Specified by:
fetchByPrimaryKeys in interface BasePersistence<DLSyncEvent>

findAll

List<DLSyncEvent> findAll()
Returns all the d l sync events.

Returns:
the d l sync events

findAll

List<DLSyncEvent> findAll(int start,
                          int end)
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

findAll

List<DLSyncEvent> findAll(int start,
                          int end,
                          OrderByComparator<DLSyncEvent> orderByComparator)
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

findAll

List<DLSyncEvent> findAll(int start,
                          int end,
                          OrderByComparator<DLSyncEvent> orderByComparator,
                          boolean retrieveFromCache)
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)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of d l sync events

removeAll

void removeAll()
Removes all the d l sync events from the database.


countAll

int countAll()
Returns the number of d l sync events.

Returns:
the number of d l sync events

getBadColumnNames

Set<String> getBadColumnNames()
Specified by:
getBadColumnNames in interface BasePersistence<DLSyncEvent>

Liferay 7.0-ce-b4