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

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLSync>
      extended by com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistenceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.documentlibrary.model.DLSync>, com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence

public class DLSyncPersistenceImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLSync>
implements com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence

The persistence implementation for the d l sync service.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
See Also:
DLSyncPersistence, DLSyncUtil
Generated:

Field Summary
protected  com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence dlContentPersistence
           
protected  com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence
           
protected  com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence dlFileEntryPersistence
           
protected  com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypePersistence dlFileEntryTypePersistence
           
protected  com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence dlFileRankPersistence
           
protected  com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence dlFileShortcutPersistence
           
protected  com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence dlFileVersionPersistence
           
protected  com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence dlFolderPersistence
           
protected  com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence dlSyncPersistence
           
static java.lang.String FINDER_CLASS_NAME_ENTITY
           
static java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static java.lang.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_C_M_R
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_FILEID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_FILEID
           
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_C_M_R
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_M_R
           
protected  com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence
           
protected  com.liferay.portal.service.persistence.UserPersistence userPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, 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
DLSyncPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the d l sync persistence.
 void cacheResult(com.liferay.portlet.documentlibrary.model.DLSync dlSync)
          Caches the d l sync in the entity cache if it is enabled.
 void cacheResult(java.util.List<com.liferay.portlet.documentlibrary.model.DLSync> dlSyncs)
          Caches the d l syncs in the entity cache if it is enabled.
 void clearCache()
          Clears the cache for all d l syncs.
 void clearCache(com.liferay.portlet.documentlibrary.model.DLSync dlSync)
          Clears the cache for the d l sync.
 void clearCache(java.util.List<com.liferay.portlet.documentlibrary.model.DLSync> dlSyncs)
           
protected  void clearUniqueFindersCache(com.liferay.portlet.documentlibrary.model.DLSync dlSync)
           
 int countAll()
          Returns the number of d l syncs.
 int countByC_M_R(long companyId, java.util.Date modifiedDate, long repositoryId)
          Returns the number of d l syncs where companyId = ? and modifiedDate ≥ ? and repositoryId = ?.
 int countByFileId(long fileId)
          Returns the number of d l syncs where fileId = ?.
 com.liferay.portlet.documentlibrary.model.DLSync create(long syncId)
          Creates a new d l sync with the primary key.
 void destroy()
           
 com.liferay.portlet.documentlibrary.model.DLSync fetchByFileId(long fileId)
          Returns the d l sync where fileId = ? or returns null if it could not be found.
 com.liferay.portlet.documentlibrary.model.DLSync fetchByFileId(long fileId, boolean retrieveFromCache)
          Returns the d l sync where fileId = ? or returns null if it could not be found, optionally using the finder cache.
 com.liferay.portlet.documentlibrary.model.DLSync fetchByPrimaryKey(long syncId)
          Returns the d l sync with the primary key or returns null if it could not be found.
 com.liferay.portlet.documentlibrary.model.DLSync fetchByPrimaryKey(java.io.Serializable primaryKey)
          Returns the d l sync with the primary key or returns null if it could not be found.
 java.util.List<com.liferay.portlet.documentlibrary.model.DLSync> findAll()
          Returns all the d l syncs.
 java.util.List<com.liferay.portlet.documentlibrary.model.DLSync> findAll(int start, int end)
          Returns a range of all the d l syncs.
 java.util.List<com.liferay.portlet.documentlibrary.model.DLSync> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the d l syncs.
 com.liferay.portlet.documentlibrary.model.DLSync findByC_M_R_First(long companyId, java.util.Date modifiedDate, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first d l sync in the ordered set where companyId = ? and modifiedDate ≥ ? and repositoryId = ?.
 com.liferay.portlet.documentlibrary.model.DLSync findByC_M_R_Last(long companyId, java.util.Date modifiedDate, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last d l sync in the ordered set where companyId = ? and modifiedDate ≥ ? and repositoryId = ?.
 com.liferay.portlet.documentlibrary.model.DLSync[] findByC_M_R_PrevAndNext(long syncId, long companyId, java.util.Date modifiedDate, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the d l syncs before and after the current d l sync in the ordered set where companyId = ? and modifiedDate ≥ ? and repositoryId = ?.
 java.util.List<com.liferay.portlet.documentlibrary.model.DLSync> findByC_M_R(long companyId, java.util.Date modifiedDate, long repositoryId)
          Returns all the d l syncs where companyId = ? and modifiedDate ≥ ? and repositoryId = ?.
 java.util.List<com.liferay.portlet.documentlibrary.model.DLSync> findByC_M_R(long companyId, java.util.Date modifiedDate, long repositoryId, int start, int end)
          Returns a range of all the d l syncs where companyId = ? and modifiedDate ≥ ? and repositoryId = ?.
 java.util.List<com.liferay.portlet.documentlibrary.model.DLSync> findByC_M_R(long companyId, java.util.Date modifiedDate, long repositoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the d l syncs where companyId = ? and modifiedDate ≥ ? and repositoryId = ?.
 com.liferay.portlet.documentlibrary.model.DLSync findByFileId(long fileId)
          Returns the d l sync where fileId = ? or throws a NoSuchSyncException if it could not be found.
 com.liferay.portlet.documentlibrary.model.DLSync findByPrimaryKey(long syncId)
          Returns the d l sync with the primary key or throws a NoSuchSyncException if it could not be found.
 com.liferay.portlet.documentlibrary.model.DLSync findByPrimaryKey(java.io.Serializable primaryKey)
          Returns the d l sync with the primary key or throws a NoSuchModelException if it could not be found.
protected  com.liferay.portlet.documentlibrary.model.DLSync getByC_M_R_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.documentlibrary.model.DLSync dlSync, long companyId, java.util.Date modifiedDate, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
 com.liferay.portlet.documentlibrary.model.DLSync remove(long syncId)
          Removes the d l sync with the primary key from the database.
 com.liferay.portlet.documentlibrary.model.DLSync remove(java.io.Serializable primaryKey)
          Removes the d l sync with the primary key from the database.
 void removeAll()
          Removes all the d l syncs from the database.
 void removeByC_M_R(long companyId, java.util.Date modifiedDate, long repositoryId)
          Removes all the d l syncs where companyId = ? and modifiedDate ≥ ? and repositoryId = ? from the database.
 void removeByFileId(long fileId)
          Removes the d l sync where fileId = ? from the database.
protected  com.liferay.portlet.documentlibrary.model.DLSync removeImpl(com.liferay.portlet.documentlibrary.model.DLSync dlSync)
           
protected  com.liferay.portlet.documentlibrary.model.DLSync toUnwrappedModel(com.liferay.portlet.documentlibrary.model.DLSync dlSync)
           
 com.liferay.portlet.documentlibrary.model.DLSync updateImpl(com.liferay.portlet.documentlibrary.model.DLSync dlSync, boolean merge)
           
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDB, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, 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.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final java.lang.String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_FETCH_BY_FILEID

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

FINDER_PATH_COUNT_BY_FILEID

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

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_M_R

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

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_M_R

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

FINDER_PATH_COUNT_BY_C_M_R

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

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

dlContentPersistence

@BeanReference(type=com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence.class)
protected com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence dlContentPersistence

dlFileEntryPersistence

@BeanReference(type=com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence.class)
protected com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence dlFileEntryPersistence

dlFileEntryMetadataPersistence

@BeanReference(type=com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryMetadataPersistence.class)
protected com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence

dlFileEntryTypePersistence

@BeanReference(type=com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypePersistence.class)
protected com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypePersistence dlFileEntryTypePersistence

dlFileRankPersistence

@BeanReference(type=com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence.class)
protected com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence dlFileRankPersistence

dlFileShortcutPersistence

@BeanReference(type=com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence.class)
protected com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence dlFileShortcutPersistence

dlFileVersionPersistence

@BeanReference(type=com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence.class)
protected com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence dlFileVersionPersistence

dlFolderPersistence

@BeanReference(type=com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence.class)
protected com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence dlFolderPersistence

dlSyncPersistence

@BeanReference(type=com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence.class)
protected com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence dlSyncPersistence

resourcePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourcePersistence.class)
protected com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserPersistence.class)
protected com.liferay.portal.service.persistence.UserPersistence userPersistence
Constructor Detail

DLSyncPersistenceImpl

public DLSyncPersistenceImpl()
Method Detail

cacheResult

public void cacheResult(com.liferay.portlet.documentlibrary.model.DLSync dlSync)
Caches the d l sync in the entity cache if it is enabled.

Specified by:
cacheResult in interface com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence
Parameters:
dlSync - the d l sync

cacheResult

public void cacheResult(java.util.List<com.liferay.portlet.documentlibrary.model.DLSync> dlSyncs)
Caches the d l syncs in the entity cache if it is enabled.

Specified by:
cacheResult in interface com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence
Parameters:
dlSyncs - the d l syncs

clearCache

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

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.documentlibrary.model.DLSync>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLSync>

clearCache

public void clearCache(com.liferay.portlet.documentlibrary.model.DLSync dlSync)
Clears the cache for the d l sync.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.documentlibrary.model.DLSync>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLSync>

clearCache

public void clearCache(java.util.List<com.liferay.portlet.documentlibrary.model.DLSync> dlSyncs)
Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.documentlibrary.model.DLSync>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLSync>

clearUniqueFindersCache

protected void clearUniqueFindersCache(com.liferay.portlet.documentlibrary.model.DLSync dlSync)

create

public com.liferay.portlet.documentlibrary.model.DLSync create(long syncId)
Creates a new d l sync with the primary key. Does not add the d l sync to the database.

Specified by:
create in interface com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence
Parameters:
syncId - the primary key for the new d l sync
Returns:
the new d l sync

remove

public com.liferay.portlet.documentlibrary.model.DLSync remove(long syncId)
                                                        throws com.liferay.portlet.documentlibrary.NoSuchSyncException,
                                                               com.liferay.portal.kernel.exception.SystemException
Removes the d l sync with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence
Parameters:
syncId - the primary key of the d l sync
Returns:
the d l sync that was removed
Throws:
com.liferay.portlet.documentlibrary.NoSuchSyncException - if a d l sync with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

remove

public com.liferay.portlet.documentlibrary.model.DLSync remove(java.io.Serializable primaryKey)
                                                        throws com.liferay.portlet.documentlibrary.NoSuchSyncException,
                                                               com.liferay.portal.kernel.exception.SystemException
Removes the d l sync with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.documentlibrary.model.DLSync>
Overrides:
remove in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLSync>
Parameters:
primaryKey - the primary key of the d l sync
Returns:
the d l sync that was removed
Throws:
com.liferay.portlet.documentlibrary.NoSuchSyncException - if a d l sync with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeImpl

protected com.liferay.portlet.documentlibrary.model.DLSync removeImpl(com.liferay.portlet.documentlibrary.model.DLSync dlSync)
                                                               throws com.liferay.portal.kernel.exception.SystemException
Overrides:
removeImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLSync>
Throws:
com.liferay.portal.kernel.exception.SystemException

updateImpl

public com.liferay.portlet.documentlibrary.model.DLSync updateImpl(com.liferay.portlet.documentlibrary.model.DLSync dlSync,
                                                                   boolean merge)
                                                            throws com.liferay.portal.kernel.exception.SystemException
Specified by:
updateImpl in interface com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence
Overrides:
updateImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLSync>
Throws:
com.liferay.portal.kernel.exception.SystemException

toUnwrappedModel

protected com.liferay.portlet.documentlibrary.model.DLSync toUnwrappedModel(com.liferay.portlet.documentlibrary.model.DLSync dlSync)

findByPrimaryKey

public com.liferay.portlet.documentlibrary.model.DLSync findByPrimaryKey(java.io.Serializable primaryKey)
                                                                  throws com.liferay.portal.NoSuchModelException,
                                                                         com.liferay.portal.kernel.exception.SystemException
Returns the d l sync with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.documentlibrary.model.DLSync>
Overrides:
findByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLSync>
Parameters:
primaryKey - the primary key of the d l sync
Returns:
the d l sync
Throws:
com.liferay.portal.NoSuchModelException - if a d l sync with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByPrimaryKey

public com.liferay.portlet.documentlibrary.model.DLSync findByPrimaryKey(long syncId)
                                                                  throws com.liferay.portlet.documentlibrary.NoSuchSyncException,
                                                                         com.liferay.portal.kernel.exception.SystemException
Returns the d l sync with the primary key or throws a NoSuchSyncException if it could not be found.

Specified by:
findByPrimaryKey in interface com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence
Parameters:
syncId - the primary key of the d l sync
Returns:
the d l sync
Throws:
com.liferay.portlet.documentlibrary.NoSuchSyncException - if a d l sync with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByPrimaryKey

public com.liferay.portlet.documentlibrary.model.DLSync fetchByPrimaryKey(java.io.Serializable primaryKey)
                                                                   throws com.liferay.portal.kernel.exception.SystemException
Returns the d l sync with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.documentlibrary.model.DLSync>
Overrides:
fetchByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLSync>
Parameters:
primaryKey - the primary key of the d l sync
Returns:
the d l sync, or null if a d l sync with the primary key could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByPrimaryKey

public com.liferay.portlet.documentlibrary.model.DLSync fetchByPrimaryKey(long syncId)
                                                                   throws com.liferay.portal.kernel.exception.SystemException
Returns the d l sync with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence
Parameters:
syncId - the primary key of the d l sync
Returns:
the d l sync, or null if a d l sync with the primary key could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByFileId

public com.liferay.portlet.documentlibrary.model.DLSync findByFileId(long fileId)
                                                              throws com.liferay.portlet.documentlibrary.NoSuchSyncException,
                                                                     com.liferay.portal.kernel.exception.SystemException
Returns the d l sync where fileId = ? or throws a NoSuchSyncException if it could not be found.

Specified by:
findByFileId in interface com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence
Parameters:
fileId - the file ID
Returns:
the matching d l sync
Throws:
com.liferay.portlet.documentlibrary.NoSuchSyncException - if a matching d l sync could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByFileId

public com.liferay.portlet.documentlibrary.model.DLSync fetchByFileId(long fileId)
                                                               throws com.liferay.portal.kernel.exception.SystemException
Returns the d l sync where fileId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByFileId in interface com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence
Parameters:
fileId - the file ID
Returns:
the matching d l sync, or null if a matching d l sync could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByFileId

public com.liferay.portlet.documentlibrary.model.DLSync fetchByFileId(long fileId,
                                                                      boolean retrieveFromCache)
                                                               throws com.liferay.portal.kernel.exception.SystemException
Returns the d l sync where fileId = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByFileId in interface com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence
Parameters:
fileId - the file ID
retrieveFromCache - whether to use the finder cache
Returns:
the matching d l sync, or null if a matching d l sync could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_M_R

public java.util.List<com.liferay.portlet.documentlibrary.model.DLSync> findByC_M_R(long companyId,
                                                                                    java.util.Date modifiedDate,
                                                                                    long repositoryId)
                                                                             throws com.liferay.portal.kernel.exception.SystemException
Returns all the d l syncs where companyId = ? and modifiedDate ≥ ? and repositoryId = ?.

Specified by:
findByC_M_R in interface com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence
Parameters:
companyId - the company ID
modifiedDate - the modified date
repositoryId - the repository ID
Returns:
the matching d l syncs
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_M_R

public java.util.List<com.liferay.portlet.documentlibrary.model.DLSync> findByC_M_R(long companyId,
                                                                                    java.util.Date modifiedDate,
                                                                                    long repositoryId,
                                                                                    int start,
                                                                                    int end)
                                                                             throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the d l syncs where companyId = ? and modifiedDate ≥ ? and repositoryId = ?.

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.

Specified by:
findByC_M_R in interface com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence
Parameters:
companyId - the company ID
modifiedDate - the modified date
repositoryId - the repository ID
start - the lower bound of the range of d l syncs
end - the upper bound of the range of d l syncs (not inclusive)
Returns:
the range of matching d l syncs
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_M_R

public java.util.List<com.liferay.portlet.documentlibrary.model.DLSync> findByC_M_R(long companyId,
                                                                                    java.util.Date modifiedDate,
                                                                                    long repositoryId,
                                                                                    int start,
                                                                                    int end,
                                                                                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                             throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the d l syncs where companyId = ? and modifiedDate ≥ ? and repositoryId = ?.

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.

Specified by:
findByC_M_R in interface com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence
Parameters:
companyId - the company ID
modifiedDate - the modified date
repositoryId - the repository ID
start - the lower bound of the range of d l syncs
end - the upper bound of the range of d l syncs (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d l syncs
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_M_R_First

public com.liferay.portlet.documentlibrary.model.DLSync findByC_M_R_First(long companyId,
                                                                          java.util.Date modifiedDate,
                                                                          long repositoryId,
                                                                          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                   throws com.liferay.portlet.documentlibrary.NoSuchSyncException,
                                                                          com.liferay.portal.kernel.exception.SystemException
Returns the first d l sync in the ordered set where companyId = ? and modifiedDate ≥ ? and repositoryId = ?.

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.

Specified by:
findByC_M_R_First in interface com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence
Parameters:
companyId - the company ID
modifiedDate - the modified date
repositoryId - the repository ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d l sync
Throws:
com.liferay.portlet.documentlibrary.NoSuchSyncException - if a matching d l sync could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_M_R_Last

public com.liferay.portlet.documentlibrary.model.DLSync findByC_M_R_Last(long companyId,
                                                                         java.util.Date modifiedDate,
                                                                         long repositoryId,
                                                                         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                  throws com.liferay.portlet.documentlibrary.NoSuchSyncException,
                                                                         com.liferay.portal.kernel.exception.SystemException
Returns the last d l sync in the ordered set where companyId = ? and modifiedDate ≥ ? and repositoryId = ?.

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.

Specified by:
findByC_M_R_Last in interface com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence
Parameters:
companyId - the company ID
modifiedDate - the modified date
repositoryId - the repository ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d l sync
Throws:
com.liferay.portlet.documentlibrary.NoSuchSyncException - if a matching d l sync could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_M_R_PrevAndNext

public com.liferay.portlet.documentlibrary.model.DLSync[] findByC_M_R_PrevAndNext(long syncId,
                                                                                  long companyId,
                                                                                  java.util.Date modifiedDate,
                                                                                  long repositoryId,
                                                                                  com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                           throws com.liferay.portlet.documentlibrary.NoSuchSyncException,
                                                                                  com.liferay.portal.kernel.exception.SystemException
Returns the d l syncs before and after the current d l sync in the ordered set where companyId = ? and modifiedDate ≥ ? and repositoryId = ?.

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.

Specified by:
findByC_M_R_PrevAndNext in interface com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence
Parameters:
syncId - the primary key of the current d l sync
companyId - the company ID
modifiedDate - the modified date
repositoryId - the repository ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d l sync
Throws:
com.liferay.portlet.documentlibrary.NoSuchSyncException - if a d l sync with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByC_M_R_PrevAndNext

protected com.liferay.portlet.documentlibrary.model.DLSync getByC_M_R_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                  com.liferay.portlet.documentlibrary.model.DLSync dlSync,
                                                                                  long companyId,
                                                                                  java.util.Date modifiedDate,
                                                                                  long repositoryId,
                                                                                  com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                  boolean previous)

findAll

public java.util.List<com.liferay.portlet.documentlibrary.model.DLSync> findAll()
                                                                         throws com.liferay.portal.kernel.exception.SystemException
Returns all the d l syncs.

Specified by:
findAll in interface com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence
Returns:
the d l syncs
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portlet.documentlibrary.model.DLSync> findAll(int start,
                                                                                int end)
                                                                         throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the d l syncs.

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.

Specified by:
findAll in interface com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence
Parameters:
start - the lower bound of the range of d l syncs
end - the upper bound of the range of d l syncs (not inclusive)
Returns:
the range of d l syncs
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portlet.documentlibrary.model.DLSync> findAll(int start,
                                                                                int end,
                                                                                com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                         throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the d l syncs.

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.

Specified by:
findAll in interface com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence
Parameters:
start - the lower bound of the range of d l syncs
end - the upper bound of the range of d l syncs (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of d l syncs
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByFileId

public void removeByFileId(long fileId)
                    throws com.liferay.portlet.documentlibrary.NoSuchSyncException,
                           com.liferay.portal.kernel.exception.SystemException
Removes the d l sync where fileId = ? from the database.

Specified by:
removeByFileId in interface com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence
Parameters:
fileId - the file ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portlet.documentlibrary.NoSuchSyncException

removeByC_M_R

public void removeByC_M_R(long companyId,
                          java.util.Date modifiedDate,
                          long repositoryId)
                   throws com.liferay.portal.kernel.exception.SystemException
Removes all the d l syncs where companyId = ? and modifiedDate ≥ ? and repositoryId = ? from the database.

Specified by:
removeByC_M_R in interface com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence
Parameters:
companyId - the company ID
modifiedDate - the modified date
repositoryId - the repository ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeAll

public void removeAll()
               throws com.liferay.portal.kernel.exception.SystemException
Removes all the d l syncs from the database.

Specified by:
removeAll in interface com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByFileId

public int countByFileId(long fileId)
                  throws com.liferay.portal.kernel.exception.SystemException
Returns the number of d l syncs where fileId = ?.

Specified by:
countByFileId in interface com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence
Parameters:
fileId - the file ID
Returns:
the number of matching d l syncs
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByC_M_R

public int countByC_M_R(long companyId,
                        java.util.Date modifiedDate,
                        long repositoryId)
                 throws com.liferay.portal.kernel.exception.SystemException
Returns the number of d l syncs where companyId = ? and modifiedDate ≥ ? and repositoryId = ?.

Specified by:
countByC_M_R in interface com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence
Parameters:
companyId - the company ID
modifiedDate - the modified date
repositoryId - the repository ID
Returns:
the number of matching d l syncs
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countAll

public int countAll()
             throws com.liferay.portal.kernel.exception.SystemException
Returns the number of d l syncs.

Specified by:
countAll in interface com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence
Returns:
the number of d l syncs
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

afterPropertiesSet

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


destroy

public void destroy()