Liferay 6.1.2-ce-ga3

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

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

public class DLSyncPersistenceImpl
extends BasePersistenceImpl<DLSync>
implements DLSyncPersistence

The persistence implementation for the d l sync service.

Caching information and settings can be found in portal.properties

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

Field Summary
protected  DLContentPersistence dlContentPersistence
           
protected  DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence
           
protected  DLFileEntryPersistence dlFileEntryPersistence
           
protected  DLFileEntryTypePersistence dlFileEntryTypePersistence
           
protected  DLFileRankPersistence dlFileRankPersistence
           
protected  DLFileShortcutPersistence dlFileShortcutPersistence
           
protected  DLFileVersionPersistence dlFileVersionPersistence
           
protected  DLFolderPersistence dlFolderPersistence
           
protected  DLSyncPersistence dlSyncPersistence
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_FILEID
           
static FinderPath FINDER_PATH_FETCH_BY_FILEID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_C_M_R
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_M_R
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
protected  RepositoryPersistence repositoryPersistence
           
protected  ResourcePersistence resourcePersistence
           
protected  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(DLSync dlSync)
          Caches the d l sync in the entity cache if it is enabled.
 void cacheResult(List<DLSync> dlSyncs)
          Caches the d l syncs in the entity cache if it is enabled.
protected  void cacheUniqueFindersCache(DLSync dlSync)
           
 void clearCache()
          Clears the cache for all d l syncs.
 void clearCache(DLSync dlSync)
          Clears the cache for the d l sync.
 void clearCache(List<DLSync> dlSyncs)
          Clears the cache for a List instances of this model.
protected  void clearUniqueFindersCache(DLSync dlSync)
           
 int countAll()
          Returns the number of d l syncs.
 int countByC_M_R(long companyId, 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 = ?.
 DLSync create(long syncId)
          Creates a new d l sync with the primary key.
 void destroy()
           
 DLSync fetchByC_M_R_First(long companyId, Date modifiedDate, long repositoryId, OrderByComparator orderByComparator)
          Returns the first d l sync in the ordered set where companyId = ? and modifiedDate ≥ ? and repositoryId = ?.
 DLSync fetchByC_M_R_Last(long companyId, Date modifiedDate, long repositoryId, OrderByComparator orderByComparator)
          Returns the last d l sync in the ordered set where companyId = ? and modifiedDate ≥ ? and repositoryId = ?.
 DLSync fetchByFileId(long fileId)
          Returns the d l sync where fileId = ? or returns null if it could not be found.
 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.
 DLSync fetchByPrimaryKey(long syncId)
          Returns the d l sync with the primary key or returns null if it could not be found.
 DLSync fetchByPrimaryKey(Serializable primaryKey)
          Returns the d l sync with the primary key or returns null if it could not be found.
 List<DLSync> findAll()
          Returns all the d l syncs.
 List<DLSync> findAll(int start, int end)
          Returns a range of all the d l syncs.
 List<DLSync> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d l syncs.
 DLSync findByC_M_R_First(long companyId, Date modifiedDate, long repositoryId, OrderByComparator orderByComparator)
          Returns the first d l sync in the ordered set where companyId = ? and modifiedDate ≥ ? and repositoryId = ?.
 DLSync findByC_M_R_Last(long companyId, Date modifiedDate, long repositoryId, OrderByComparator orderByComparator)
          Returns the last d l sync in the ordered set where companyId = ? and modifiedDate ≥ ? and repositoryId = ?.
 DLSync[] findByC_M_R_PrevAndNext(long syncId, long companyId, Date modifiedDate, long repositoryId, 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 = ?.
 List<DLSync> findByC_M_R(long companyId, Date modifiedDate, long repositoryId)
          Returns all the d l syncs where companyId = ? and modifiedDate ≥ ? and repositoryId = ?.
 List<DLSync> findByC_M_R(long companyId, Date modifiedDate, long repositoryId, int start, int end)
          Returns a range of all the d l syncs where companyId = ? and modifiedDate ≥ ? and repositoryId = ?.
 List<DLSync> findByC_M_R(long companyId, Date modifiedDate, long repositoryId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d l syncs where companyId = ? and modifiedDate ≥ ? and repositoryId = ?.
 DLSync findByFileId(long fileId)
          Returns the d l sync where fileId = ? or throws a NoSuchSyncException if it could not be found.
 DLSync findByPrimaryKey(long syncId)
          Returns the d l sync with the primary key or throws a NoSuchSyncException if it could not be found.
 DLSync findByPrimaryKey(Serializable primaryKey)
          Returns the d l sync with the primary key or throws a NoSuchModelException if it could not be found.
protected  DLSync getByC_M_R_PrevAndNext(Session session, DLSync dlSync, long companyId, Date modifiedDate, long repositoryId, OrderByComparator orderByComparator, boolean previous)
           
 DLSync remove(long syncId)
          Removes the d l sync with the primary key from the database.
 DLSync remove(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, Date modifiedDate, long repositoryId)
          Removes all the d l syncs where companyId = ? and modifiedDate ≥ ? and repositoryId = ? from the database.
 DLSync removeByFileId(long fileId)
          Removes the d l sync where fileId = ? from the database.
protected  DLSync removeImpl(DLSync dlSync)
          Removes the model instance from the database.
protected  DLSync toUnwrappedModel(DLSync dlSync)
           
 DLSync updateImpl(DLSync dlSync, boolean merge)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getClassLoader, 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 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_FETCH_BY_FILEID

public static final FinderPath FINDER_PATH_FETCH_BY_FILEID

FINDER_PATH_COUNT_BY_FILEID

public static final FinderPath FINDER_PATH_COUNT_BY_FILEID

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_M_R

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_M_R

FINDER_PATH_WITH_PAGINATION_COUNT_BY_C_M_R

public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_C_M_R

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

dlContentPersistence

@BeanReference(type=DLContentPersistence.class)
protected DLContentPersistence dlContentPersistence

dlFileEntryPersistence

@BeanReference(type=DLFileEntryPersistence.class)
protected DLFileEntryPersistence dlFileEntryPersistence

dlFileEntryMetadataPersistence

@BeanReference(type=DLFileEntryMetadataPersistence.class)
protected DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence

dlFileEntryTypePersistence

@BeanReference(type=DLFileEntryTypePersistence.class)
protected DLFileEntryTypePersistence dlFileEntryTypePersistence

dlFileRankPersistence

@BeanReference(type=DLFileRankPersistence.class)
protected DLFileRankPersistence dlFileRankPersistence

dlFileShortcutPersistence

@BeanReference(type=DLFileShortcutPersistence.class)
protected DLFileShortcutPersistence dlFileShortcutPersistence

dlFileVersionPersistence

@BeanReference(type=DLFileVersionPersistence.class)
protected DLFileVersionPersistence dlFileVersionPersistence

dlFolderPersistence

@BeanReference(type=DLFolderPersistence.class)
protected DLFolderPersistence dlFolderPersistence

dlSyncPersistence

@BeanReference(type=DLSyncPersistence.class)
protected DLSyncPersistence dlSyncPersistence

repositoryPersistence

@BeanReference(type=RepositoryPersistence.class)
protected RepositoryPersistence repositoryPersistence

resourcePersistence

@BeanReference(type=ResourcePersistence.class)
protected ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence
Constructor Detail

DLSyncPersistenceImpl

public DLSyncPersistenceImpl()
Method Detail

cacheResult

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

Specified by:
cacheResult in interface DLSyncPersistence
Parameters:
dlSync - the d l sync

cacheResult

public void cacheResult(List<DLSync> dlSyncs)
Caches the d l syncs in the entity cache if it is enabled.

Specified by:
cacheResult in interface 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 BasePersistence<DLSync>
Overrides:
clearCache in class BasePersistenceImpl<DLSync>

clearCache

public void clearCache(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 BasePersistence<DLSync>
Overrides:
clearCache in class BasePersistenceImpl<DLSync>
Parameters:
dlSync - the instance of this model to clear the cache for

clearCache

public void clearCache(List<DLSync> dlSyncs)
Description copied from interface: BasePersistence
Clears the cache for a List instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<DLSync>
Overrides:
clearCache in class BasePersistenceImpl<DLSync>
Parameters:
dlSyncs - the List instances of this model to clear the cache for

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(DLSync dlSync)

clearUniqueFindersCache

protected void clearUniqueFindersCache(DLSync dlSync)

create

public 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 DLSyncPersistence
Parameters:
syncId - the primary key for the new d l sync
Returns:
the new d l sync

remove

public DLSync remove(long syncId)
              throws NoSuchSyncException,
                     SystemException
Removes the d l sync with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface DLSyncPersistence
Parameters:
syncId - the primary key of the d l sync
Returns:
the d l sync that was removed
Throws:
NoSuchSyncException - if a d l sync with the primary key could not be found
SystemException - if a system exception occurred

remove

public DLSync remove(Serializable primaryKey)
              throws NoSuchSyncException,
                     SystemException
Removes the d l sync with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<DLSync>
Overrides:
remove in class BasePersistenceImpl<DLSync>
Parameters:
primaryKey - the primary key of the d l sync
Returns:
the d l sync that was removed
Throws:
NoSuchSyncException - if a d l sync with the primary key could not be found
SystemException - if a system exception occurred

removeImpl

protected DLSync removeImpl(DLSync dlSync)
                     throws SystemException
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<DLSync>
Parameters:
dlSync - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public DLSync updateImpl(DLSync dlSync,
                         boolean merge)
                  throws SystemException
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface DLSyncPersistence
Overrides:
updateImpl in class BasePersistenceImpl<DLSync>
Parameters:
dlSync - the model instance to update
merge - whether to merge the model instance with the current session. See BatchSession.update( com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean) for an explanation.
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected DLSync toUnwrappedModel(DLSync dlSync)

findByPrimaryKey

public DLSync findByPrimaryKey(Serializable primaryKey)
                        throws NoSuchModelException,
                               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 BasePersistence<DLSync>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<DLSync>
Parameters:
primaryKey - the primary key of the d l sync
Returns:
the d l sync
Throws:
NoSuchModelException - if a d l sync with the primary key could not be found
SystemException - if a system exception occurred

findByPrimaryKey

public DLSync findByPrimaryKey(long syncId)
                        throws NoSuchSyncException,
                               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 DLSyncPersistence
Parameters:
syncId - the primary key of the d l sync
Returns:
the d l sync
Throws:
NoSuchSyncException - if a d l sync with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public DLSync fetchByPrimaryKey(Serializable primaryKey)
                         throws SystemException
Returns the d l sync with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<DLSync>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<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:
SystemException - if a system exception occurred

fetchByPrimaryKey

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

Specified by:
fetchByPrimaryKey in interface 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:
SystemException - if a system exception occurred

findByFileId

public DLSync findByFileId(long fileId)
                    throws NoSuchSyncException,
                           SystemException
Returns the d l sync where fileId = ? or throws a NoSuchSyncException if it could not be found.

Specified by:
findByFileId in interface DLSyncPersistence
Parameters:
fileId - the file ID
Returns:
the matching d l sync
Throws:
NoSuchSyncException - if a matching d l sync could not be found
SystemException - if a system exception occurred

fetchByFileId

public DLSync fetchByFileId(long fileId)
                     throws 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 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:
SystemException - if a system exception occurred

fetchByFileId

public DLSync fetchByFileId(long fileId,
                            boolean retrieveFromCache)
                     throws 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 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:
SystemException - if a system exception occurred

findByC_M_R

public List<DLSync> findByC_M_R(long companyId,
                                Date modifiedDate,
                                long repositoryId)
                         throws SystemException
Returns all the d l syncs where companyId = ? and modifiedDate ≥ ? and repositoryId = ?.

Specified by:
findByC_M_R in interface DLSyncPersistence
Parameters:
companyId - the company ID
modifiedDate - the modified date
repositoryId - the repository ID
Returns:
the matching d l syncs
Throws:
SystemException - if a system exception occurred

findByC_M_R

public List<DLSync> findByC_M_R(long companyId,
                                Date modifiedDate,
                                long repositoryId,
                                int start,
                                int end)
                         throws 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 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:
SystemException - if a system exception occurred

findByC_M_R

public List<DLSync> findByC_M_R(long companyId,
                                Date modifiedDate,
                                long repositoryId,
                                int start,
                                int end,
                                OrderByComparator orderByComparator)
                         throws 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 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:
SystemException - if a system exception occurred

findByC_M_R_First

public DLSync findByC_M_R_First(long companyId,
                                Date modifiedDate,
                                long repositoryId,
                                OrderByComparator orderByComparator)
                         throws NoSuchSyncException,
                                SystemException
Returns the first d l sync in the ordered set where companyId = ? and modifiedDate ≥ ? and repositoryId = ?.

Specified by:
findByC_M_R_First in interface 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:
NoSuchSyncException - if a matching d l sync could not be found
SystemException - if a system exception occurred

fetchByC_M_R_First

public DLSync fetchByC_M_R_First(long companyId,
                                 Date modifiedDate,
                                 long repositoryId,
                                 OrderByComparator orderByComparator)
                          throws SystemException
Returns the first d l sync in the ordered set where companyId = ? and modifiedDate ≥ ? and repositoryId = ?.

Specified by:
fetchByC_M_R_First in interface 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, or null if a matching d l sync could not be found
Throws:
SystemException - if a system exception occurred

findByC_M_R_Last

public DLSync findByC_M_R_Last(long companyId,
                               Date modifiedDate,
                               long repositoryId,
                               OrderByComparator orderByComparator)
                        throws NoSuchSyncException,
                               SystemException
Returns the last d l sync in the ordered set where companyId = ? and modifiedDate ≥ ? and repositoryId = ?.

Specified by:
findByC_M_R_Last in interface 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:
NoSuchSyncException - if a matching d l sync could not be found
SystemException - if a system exception occurred

fetchByC_M_R_Last

public DLSync fetchByC_M_R_Last(long companyId,
                                Date modifiedDate,
                                long repositoryId,
                                OrderByComparator orderByComparator)
                         throws SystemException
Returns the last d l sync in the ordered set where companyId = ? and modifiedDate ≥ ? and repositoryId = ?.

Specified by:
fetchByC_M_R_Last in interface 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, or null if a matching d l sync could not be found
Throws:
SystemException - if a system exception occurred

findByC_M_R_PrevAndNext

public DLSync[] findByC_M_R_PrevAndNext(long syncId,
                                        long companyId,
                                        Date modifiedDate,
                                        long repositoryId,
                                        OrderByComparator orderByComparator)
                                 throws NoSuchSyncException,
                                        SystemException
Returns the d l syncs before and after the current d l sync in the ordered set where companyId = ? and modifiedDate ≥ ? and repositoryId = ?.

Specified by:
findByC_M_R_PrevAndNext in interface 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:
NoSuchSyncException - if a d l sync with the primary key could not be found
SystemException - if a system exception occurred

getByC_M_R_PrevAndNext

protected DLSync getByC_M_R_PrevAndNext(Session session,
                                        DLSync dlSync,
                                        long companyId,
                                        Date modifiedDate,
                                        long repositoryId,
                                        OrderByComparator orderByComparator,
                                        boolean previous)

findAll

public List<DLSync> findAll()
                     throws SystemException
Returns all the d l syncs.

Specified by:
findAll in interface DLSyncPersistence
Returns:
the d l syncs
Throws:
SystemException - if a system exception occurred

findAll

public List<DLSync> findAll(int start,
                            int end)
                     throws 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 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:
SystemException - if a system exception occurred

findAll

public List<DLSync> findAll(int start,
                            int end,
                            OrderByComparator orderByComparator)
                     throws 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 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:
SystemException - if a system exception occurred

removeByFileId

public DLSync removeByFileId(long fileId)
                      throws NoSuchSyncException,
                             SystemException
Removes the d l sync where fileId = ? from the database.

Specified by:
removeByFileId in interface DLSyncPersistence
Parameters:
fileId - the file ID
Returns:
the d l sync that was removed
Throws:
SystemException - if a system exception occurred
NoSuchSyncException

removeByC_M_R

public void removeByC_M_R(long companyId,
                          Date modifiedDate,
                          long repositoryId)
                   throws SystemException
Removes all the d l syncs where companyId = ? and modifiedDate ≥ ? and repositoryId = ? from the database.

Specified by:
removeByC_M_R in interface DLSyncPersistence
Parameters:
companyId - the company ID
modifiedDate - the modified date
repositoryId - the repository ID
Throws:
SystemException - if a system exception occurred

removeAll

public void removeAll()
               throws SystemException
Removes all the d l syncs from the database.

Specified by:
removeAll in interface DLSyncPersistence
Throws:
SystemException - if a system exception occurred

countByFileId

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

Specified by:
countByFileId in interface DLSyncPersistence
Parameters:
fileId - the file ID
Returns:
the number of matching d l syncs
Throws:
SystemException - if a system exception occurred

countByC_M_R

public int countByC_M_R(long companyId,
                        Date modifiedDate,
                        long repositoryId)
                 throws SystemException
Returns the number of d l syncs where companyId = ? and modifiedDate ≥ ? and repositoryId = ?.

Specified by:
countByC_M_R in interface DLSyncPersistence
Parameters:
companyId - the company ID
modifiedDate - the modified date
repositoryId - the repository ID
Returns:
the number of matching d l syncs
Throws:
SystemException - if a system exception occurred

countAll

public int countAll()
             throws SystemException
Returns the number of d l syncs.

Specified by:
countAll in interface DLSyncPersistence
Returns:
the number of d l syncs
Throws:
SystemException - if a system exception occurred

afterPropertiesSet

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


destroy

public void destroy()

Liferay 6.1.2-ce-ga3