Liferay 7.0-ga1 portal-impl

com.liferay.portlet.documentlibrary.service.persistence.impl
Class DLSyncEventPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLSyncEvent>
      extended by com.liferay.portlet.documentlibrary.service.persistence.impl.DLSyncEventPersistenceImpl
All Implemented Interfaces:
com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence, com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.document.library.kernel.model.DLSyncEvent>

@ProviderType
public class DLSyncEventPersistenceImpl
extends com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLSyncEvent>
implements com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence

The persistence implementation for the d l sync event service.

Caching information and settings can be found in portal.properties

See Also:
DLSyncEventPersistence, DLSyncEventUtil
{$generated.description}

Field Summary
protected  com.liferay.portal.kernel.service.persistence.CompanyProvider companyProvider
           
protected  com.liferay.portal.kernel.dao.orm.EntityCache entityCache
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_TYPEPK
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_TYPEPK
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_MODIFIEDTIME
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_MODIFIEDTIME
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
protected  com.liferay.portal.kernel.dao.orm.FinderCache finderCache
           
 
Fields inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
DLSyncEventPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the d l sync event persistence.
 void cacheResult(com.liferay.document.library.kernel.model.DLSyncEvent dlSyncEvent)
          Caches the d l sync event in the entity cache if it is enabled.
 void cacheResult(List<com.liferay.document.library.kernel.model.DLSyncEvent> dlSyncEvents)
          Caches the d l sync events in the entity cache if it is enabled.
protected  void cacheUniqueFindersCache(DLSyncEventModelImpl dlSyncEventModelImpl, boolean isNew)
           
 void clearCache()
          Clears the cache for all d l sync events.
 void clearCache(com.liferay.document.library.kernel.model.DLSyncEvent dlSyncEvent)
          Clears the cache for the d l sync event.
 void clearCache(List<com.liferay.document.library.kernel.model.DLSyncEvent> dlSyncEvents)
           
protected  void clearUniqueFindersCache(DLSyncEventModelImpl dlSyncEventModelImpl)
           
 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 = ?.
 com.liferay.document.library.kernel.model.DLSyncEvent create(long syncEventId)
          Creates a new d l sync event with the primary key.
 void destroy()
           
 com.liferay.document.library.kernel.model.DLSyncEvent fetchByModifiedTime_First(long modifiedTime, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLSyncEvent> orderByComparator)
          Returns the first d l sync event in the ordered set where modifiedTime > ?.
 com.liferay.document.library.kernel.model.DLSyncEvent fetchByModifiedTime_Last(long modifiedTime, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLSyncEvent> orderByComparator)
          Returns the last d l sync event in the ordered set where modifiedTime > ?.
 com.liferay.document.library.kernel.model.DLSyncEvent fetchByPrimaryKey(long syncEventId)
          Returns the d l sync event with the primary key or returns null if it could not be found.
 com.liferay.document.library.kernel.model.DLSyncEvent fetchByPrimaryKey(Serializable primaryKey)
          Returns the d l sync event with the primary key or returns null if it could not be found.
 Map<Serializable,com.liferay.document.library.kernel.model.DLSyncEvent> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
 com.liferay.document.library.kernel.model.DLSyncEvent fetchByTypePK(long typePK)
          Returns the d l sync event where typePK = ? or returns null if it could not be found.
 com.liferay.document.library.kernel.model.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<com.liferay.document.library.kernel.model.DLSyncEvent> findAll()
          Returns all the d l sync events.
 List<com.liferay.document.library.kernel.model.DLSyncEvent> findAll(int start, int end)
          Returns a range of all the d l sync events.
 List<com.liferay.document.library.kernel.model.DLSyncEvent> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLSyncEvent> orderByComparator)
          Returns an ordered range of all the d l sync events.
 List<com.liferay.document.library.kernel.model.DLSyncEvent> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLSyncEvent> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the d l sync events.
 com.liferay.document.library.kernel.model.DLSyncEvent findByModifiedTime_First(long modifiedTime, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLSyncEvent> orderByComparator)
          Returns the first d l sync event in the ordered set where modifiedTime > ?.
 com.liferay.document.library.kernel.model.DLSyncEvent findByModifiedTime_Last(long modifiedTime, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLSyncEvent> orderByComparator)
          Returns the last d l sync event in the ordered set where modifiedTime > ?.
 com.liferay.document.library.kernel.model.DLSyncEvent[] findByModifiedTime_PrevAndNext(long syncEventId, long modifiedTime, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLSyncEvent> orderByComparator)
          Returns the d l sync events before and after the current d l sync event in the ordered set where modifiedTime > ?.
 List<com.liferay.document.library.kernel.model.DLSyncEvent> findByModifiedTime(long modifiedTime)
          Returns all the d l sync events where modifiedTime > ?.
 List<com.liferay.document.library.kernel.model.DLSyncEvent> findByModifiedTime(long modifiedTime, int start, int end)
          Returns a range of all the d l sync events where modifiedTime > ?.
 List<com.liferay.document.library.kernel.model.DLSyncEvent> findByModifiedTime(long modifiedTime, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLSyncEvent> orderByComparator)
          Returns an ordered range of all the d l sync events where modifiedTime > ?.
 List<com.liferay.document.library.kernel.model.DLSyncEvent> findByModifiedTime(long modifiedTime, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLSyncEvent> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the d l sync events where modifiedTime > ?.
 com.liferay.document.library.kernel.model.DLSyncEvent findByPrimaryKey(long syncEventId)
          Returns the d l sync event with the primary key or throws a NoSuchSyncEventException if it could not be found.
 com.liferay.document.library.kernel.model.DLSyncEvent findByPrimaryKey(Serializable primaryKey)
          Returns the d l sync event with the primary key or throws a NoSuchModelException if it could not be found.
 com.liferay.document.library.kernel.model.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()
           
protected  com.liferay.document.library.kernel.model.DLSyncEvent getByModifiedTime_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.document.library.kernel.model.DLSyncEvent dlSyncEvent, long modifiedTime, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLSyncEvent> orderByComparator, boolean previous)
           
protected  Map<String,Integer> getTableColumnsMap()
           
 com.liferay.document.library.kernel.model.DLSyncEvent remove(long syncEventId)
          Removes the d l sync event with the primary key from the database.
 com.liferay.document.library.kernel.model.DLSyncEvent remove(Serializable primaryKey)
          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.
 com.liferay.document.library.kernel.model.DLSyncEvent removeByTypePK(long typePK)
          Removes the d l sync event where typePK = ? from the database.
protected  com.liferay.document.library.kernel.model.DLSyncEvent removeImpl(com.liferay.document.library.kernel.model.DLSyncEvent dlSyncEvent)
           
protected  com.liferay.document.library.kernel.model.DLSyncEvent toUnwrappedModel(com.liferay.document.library.kernel.model.DLSyncEvent dlSyncEvent)
           
 com.liferay.document.library.kernel.model.DLSyncEvent updateImpl(com.liferay.document.library.kernel.model.DLSyncEvent dlSyncEvent)
           
 
Methods inherited from class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_WITH_PAGINATION_FIND_BY_MODIFIEDTIME

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_MODIFIEDTIME

FINDER_PATH_WITH_PAGINATION_COUNT_BY_MODIFIEDTIME

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_MODIFIEDTIME

FINDER_PATH_FETCH_BY_TYPEPK

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_TYPEPK

FINDER_PATH_COUNT_BY_TYPEPK

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_TYPEPK

companyProvider

@BeanReference(type=com.liferay.portal.kernel.service.persistence.CompanyProviderWrapper.class)
protected com.liferay.portal.kernel.service.persistence.CompanyProvider companyProvider

entityCache

protected com.liferay.portal.kernel.dao.orm.EntityCache entityCache

finderCache

protected com.liferay.portal.kernel.dao.orm.FinderCache finderCache
Constructor Detail

DLSyncEventPersistenceImpl

public DLSyncEventPersistenceImpl()
Method Detail

findByModifiedTime

public List<com.liferay.document.library.kernel.model.DLSyncEvent> findByModifiedTime(long modifiedTime)
Returns all the d l sync events where modifiedTime > ?.

Specified by:
findByModifiedTime in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
Parameters:
modifiedTime - the modified time
Returns:
the matching d l sync events

findByModifiedTime

public List<com.liferay.document.library.kernel.model.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.

Specified by:
findByModifiedTime in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
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

public List<com.liferay.document.library.kernel.model.DLSyncEvent> findByModifiedTime(long modifiedTime,
                                                                                      int start,
                                                                                      int end,
                                                                                      com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.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.

Specified by:
findByModifiedTime in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
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

public List<com.liferay.document.library.kernel.model.DLSyncEvent> findByModifiedTime(long modifiedTime,
                                                                                      int start,
                                                                                      int end,
                                                                                      com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.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.

Specified by:
findByModifiedTime in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
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

public com.liferay.document.library.kernel.model.DLSyncEvent findByModifiedTime_First(long modifiedTime,
                                                                                      com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLSyncEvent> orderByComparator)
                                                                               throws com.liferay.document.library.kernel.exception.NoSuchSyncEventException
Returns the first d l sync event in the ordered set where modifiedTime > ?.

Specified by:
findByModifiedTime_First in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
Parameters:
modifiedTime - the modified time
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d l sync event
Throws:
com.liferay.document.library.kernel.exception.NoSuchSyncEventException - if a matching d l sync event could not be found

fetchByModifiedTime_First

public com.liferay.document.library.kernel.model.DLSyncEvent fetchByModifiedTime_First(long modifiedTime,
                                                                                       com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLSyncEvent> orderByComparator)
Returns the first d l sync event in the ordered set where modifiedTime > ?.

Specified by:
fetchByModifiedTime_First in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
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

public com.liferay.document.library.kernel.model.DLSyncEvent findByModifiedTime_Last(long modifiedTime,
                                                                                     com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLSyncEvent> orderByComparator)
                                                                              throws com.liferay.document.library.kernel.exception.NoSuchSyncEventException
Returns the last d l sync event in the ordered set where modifiedTime > ?.

Specified by:
findByModifiedTime_Last in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
Parameters:
modifiedTime - the modified time
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d l sync event
Throws:
com.liferay.document.library.kernel.exception.NoSuchSyncEventException - if a matching d l sync event could not be found

fetchByModifiedTime_Last

public com.liferay.document.library.kernel.model.DLSyncEvent fetchByModifiedTime_Last(long modifiedTime,
                                                                                      com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLSyncEvent> orderByComparator)
Returns the last d l sync event in the ordered set where modifiedTime > ?.

Specified by:
fetchByModifiedTime_Last in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
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

public com.liferay.document.library.kernel.model.DLSyncEvent[] findByModifiedTime_PrevAndNext(long syncEventId,
                                                                                              long modifiedTime,
                                                                                              com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLSyncEvent> orderByComparator)
                                                                                       throws com.liferay.document.library.kernel.exception.NoSuchSyncEventException
Returns the d l sync events before and after the current d l sync event in the ordered set where modifiedTime > ?.

Specified by:
findByModifiedTime_PrevAndNext in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
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:
com.liferay.document.library.kernel.exception.NoSuchSyncEventException - if a d l sync event with the primary key could not be found

getByModifiedTime_PrevAndNext

protected com.liferay.document.library.kernel.model.DLSyncEvent getByModifiedTime_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                              com.liferay.document.library.kernel.model.DLSyncEvent dlSyncEvent,
                                                                                              long modifiedTime,
                                                                                              com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLSyncEvent> orderByComparator,
                                                                                              boolean previous)

removeByModifiedTime

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

Specified by:
removeByModifiedTime in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
Parameters:
modifiedTime - the modified time

countByModifiedTime

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

Specified by:
countByModifiedTime in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
Parameters:
modifiedTime - the modified time
Returns:
the number of matching d l sync events

findByTypePK

public com.liferay.document.library.kernel.model.DLSyncEvent findByTypePK(long typePK)
                                                                   throws com.liferay.document.library.kernel.exception.NoSuchSyncEventException
Returns the d l sync event where typePK = ? or throws a NoSuchSyncEventException if it could not be found.

Specified by:
findByTypePK in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
Parameters:
typePK - the type p k
Returns:
the matching d l sync event
Throws:
com.liferay.document.library.kernel.exception.NoSuchSyncEventException - if a matching d l sync event could not be found

fetchByTypePK

public com.liferay.document.library.kernel.model.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.

Specified by:
fetchByTypePK in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
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

public com.liferay.document.library.kernel.model.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.

Specified by:
fetchByTypePK in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
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

public com.liferay.document.library.kernel.model.DLSyncEvent removeByTypePK(long typePK)
                                                                     throws com.liferay.document.library.kernel.exception.NoSuchSyncEventException
Removes the d l sync event where typePK = ? from the database.

Specified by:
removeByTypePK in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
Parameters:
typePK - the type p k
Returns:
the d l sync event that was removed
Throws:
com.liferay.document.library.kernel.exception.NoSuchSyncEventException

countByTypePK

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

Specified by:
countByTypePK in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
Parameters:
typePK - the type p k
Returns:
the number of matching d l sync events

cacheResult

public void cacheResult(com.liferay.document.library.kernel.model.DLSyncEvent dlSyncEvent)
Caches the d l sync event in the entity cache if it is enabled.

Specified by:
cacheResult in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
Parameters:
dlSyncEvent - the d l sync event

cacheResult

public void cacheResult(List<com.liferay.document.library.kernel.model.DLSyncEvent> dlSyncEvents)
Caches the d l sync events in the entity cache if it is enabled.

Specified by:
cacheResult in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
Parameters:
dlSyncEvents - the d l sync events

clearCache

public void clearCache()
Clears the cache for all d l sync events.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.document.library.kernel.model.DLSyncEvent>
Overrides:
clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLSyncEvent>

clearCache

public void clearCache(com.liferay.document.library.kernel.model.DLSyncEvent dlSyncEvent)
Clears the cache for the d l sync event.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.document.library.kernel.model.DLSyncEvent>
Overrides:
clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLSyncEvent>

clearCache

public void clearCache(List<com.liferay.document.library.kernel.model.DLSyncEvent> dlSyncEvents)
Specified by:
clearCache in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.document.library.kernel.model.DLSyncEvent>
Overrides:
clearCache in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLSyncEvent>

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(DLSyncEventModelImpl dlSyncEventModelImpl,
                                       boolean isNew)

clearUniqueFindersCache

protected void clearUniqueFindersCache(DLSyncEventModelImpl dlSyncEventModelImpl)

create

public com.liferay.document.library.kernel.model.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.

Specified by:
create in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
Parameters:
syncEventId - the primary key for the new d l sync event
Returns:
the new d l sync event

remove

public com.liferay.document.library.kernel.model.DLSyncEvent remove(long syncEventId)
                                                             throws com.liferay.document.library.kernel.exception.NoSuchSyncEventException
Removes the d l sync event with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
Parameters:
syncEventId - the primary key of the d l sync event
Returns:
the d l sync event that was removed
Throws:
com.liferay.document.library.kernel.exception.NoSuchSyncEventException - if a d l sync event with the primary key could not be found

remove

public com.liferay.document.library.kernel.model.DLSyncEvent remove(Serializable primaryKey)
                                                             throws com.liferay.document.library.kernel.exception.NoSuchSyncEventException
Removes the d l sync event with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.document.library.kernel.model.DLSyncEvent>
Overrides:
remove in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLSyncEvent>
Parameters:
primaryKey - the primary key of the d l sync event
Returns:
the d l sync event that was removed
Throws:
com.liferay.document.library.kernel.exception.NoSuchSyncEventException - if a d l sync event with the primary key could not be found

removeImpl

protected com.liferay.document.library.kernel.model.DLSyncEvent removeImpl(com.liferay.document.library.kernel.model.DLSyncEvent dlSyncEvent)
Overrides:
removeImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLSyncEvent>

updateImpl

public com.liferay.document.library.kernel.model.DLSyncEvent updateImpl(com.liferay.document.library.kernel.model.DLSyncEvent dlSyncEvent)
Specified by:
updateImpl in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
Overrides:
updateImpl in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLSyncEvent>

toUnwrappedModel

protected com.liferay.document.library.kernel.model.DLSyncEvent toUnwrappedModel(com.liferay.document.library.kernel.model.DLSyncEvent dlSyncEvent)

findByPrimaryKey

public com.liferay.document.library.kernel.model.DLSyncEvent findByPrimaryKey(Serializable primaryKey)
                                                                       throws com.liferay.document.library.kernel.exception.NoSuchSyncEventException
Returns the d l sync event with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.document.library.kernel.model.DLSyncEvent>
Overrides:
findByPrimaryKey in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLSyncEvent>
Parameters:
primaryKey - the primary key of the d l sync event
Returns:
the d l sync event
Throws:
com.liferay.document.library.kernel.exception.NoSuchSyncEventException - if a d l sync event with the primary key could not be found

findByPrimaryKey

public com.liferay.document.library.kernel.model.DLSyncEvent findByPrimaryKey(long syncEventId)
                                                                       throws com.liferay.document.library.kernel.exception.NoSuchSyncEventException
Returns the d l sync event with the primary key or throws a NoSuchSyncEventException if it could not be found.

Specified by:
findByPrimaryKey in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
Parameters:
syncEventId - the primary key of the d l sync event
Returns:
the d l sync event
Throws:
com.liferay.document.library.kernel.exception.NoSuchSyncEventException - if a d l sync event with the primary key could not be found

fetchByPrimaryKey

public com.liferay.document.library.kernel.model.DLSyncEvent fetchByPrimaryKey(Serializable primaryKey)
Returns the d l sync event with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.document.library.kernel.model.DLSyncEvent>
Overrides:
fetchByPrimaryKey in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLSyncEvent>
Parameters:
primaryKey - 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

fetchByPrimaryKey

public com.liferay.document.library.kernel.model.DLSyncEvent fetchByPrimaryKey(long syncEventId)
Returns the d l sync event with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
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

public Map<Serializable,com.liferay.document.library.kernel.model.DLSyncEvent> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
Specified by:
fetchByPrimaryKeys in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
Specified by:
fetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.document.library.kernel.model.DLSyncEvent>
Overrides:
fetchByPrimaryKeys in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLSyncEvent>

findAll

public List<com.liferay.document.library.kernel.model.DLSyncEvent> findAll()
Returns all the d l sync events.

Specified by:
findAll in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
Returns:
the d l sync events

findAll

public List<com.liferay.document.library.kernel.model.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.

Specified by:
findAll in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
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

public List<com.liferay.document.library.kernel.model.DLSyncEvent> findAll(int start,
                                                                           int end,
                                                                           com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.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.

Specified by:
findAll in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
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

public List<com.liferay.document.library.kernel.model.DLSyncEvent> findAll(int start,
                                                                           int end,
                                                                           com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.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.

Specified by:
findAll in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
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

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

Specified by:
removeAll in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence

countAll

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

Specified by:
countAll in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
Returns:
the number of d l sync events

getBadColumnNames

public Set<String> getBadColumnNames()
Specified by:
getBadColumnNames in interface com.liferay.document.library.kernel.service.persistence.DLSyncEventPersistence
Specified by:
getBadColumnNames in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.document.library.kernel.model.DLSyncEvent>
Overrides:
getBadColumnNames in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLSyncEvent>

getTableColumnsMap

protected Map<String,Integer> getTableColumnsMap()
Overrides:
getTableColumnsMap in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLSyncEvent>

afterPropertiesSet

public void afterPropertiesSet()
Initializes the d l sync event persistence.


destroy

public void destroy()

Liferay 7.0-ga1 portal-impl