Liferay 6.2-ce-ga5

com.liferay.portlet.journal.service.persistence
Class JournalFolderPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<JournalFolder>
      extended by com.liferay.portlet.journal.service.persistence.JournalFolderPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<JournalFolder>, JournalFolderPersistence

public class JournalFolderPersistenceImpl
extends BasePersistenceImpl<JournalFolder>
implements JournalFolderPersistence

The persistence implementation for the journal folder service.

Caching information and settings can be found in portal.properties

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

Field Summary
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_COMPANYID
           
static FinderPath FINDER_PATH_COUNT_BY_G_N
           
static FinderPath FINDER_PATH_COUNT_BY_G_P
           
static FinderPath FINDER_PATH_COUNT_BY_G_P_N
           
static FinderPath FINDER_PATH_COUNT_BY_G_P_S
           
static FinderPath FINDER_PATH_COUNT_BY_GROUPID
           
static FinderPath FINDER_PATH_COUNT_BY_UUID
           
static FinderPath FINDER_PATH_COUNT_BY_UUID_C
           
static FinderPath FINDER_PATH_COUNT_BY_UUID_G
           
static FinderPath FINDER_PATH_FETCH_BY_G_N
           
static FinderPath FINDER_PATH_FETCH_BY_G_P_N
           
static FinderPath FINDER_PATH_FETCH_BY_UUID_G
           
static FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_C_NOTS
           
static FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_F_C_P_NOTS
           
static FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_P_NOTS
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_NOTS
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_F_C_P_NOTS
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_P
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_P_NOTS
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_P_S
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_P
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_P_S
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C
           
 
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
JournalFolderPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the journal folder persistence.
 void cacheResult(JournalFolder journalFolder)
          Caches the journal folder in the entity cache if it is enabled.
 void cacheResult(List<JournalFolder> journalFolders)
          Caches the journal folders in the entity cache if it is enabled.
protected  void cacheUniqueFindersCache(JournalFolder journalFolder)
           
 void clearCache()
          Clears the cache for all journal folders.
 void clearCache(JournalFolder journalFolder)
          Clears the cache for the journal folder.
 void clearCache(List<JournalFolder> journalFolders)
          Clears the cache for a List instances of this model.
protected  void clearUniqueFindersCache(JournalFolder journalFolder)
           
 int countAll()
          Returns the number of journal folders.
 int countByC_NotS(long companyId, int status)
          Returns the number of journal folders where companyId = ? and status ≠ ?.
 int countByCompanyId(long companyId)
          Returns the number of journal folders where companyId = ?.
 int countByF_C_P_NotS(long folderId, long companyId, long parentFolderId, int status)
          Returns the number of journal folders where folderId > ? and companyId = ? and parentFolderId = ? and status ≠ ?.
 int countByG_N(long groupId, String name)
          Returns the number of journal folders where groupId = ? and name = ?.
 int countByG_P_N(long groupId, long parentFolderId, String name)
          Returns the number of journal folders where groupId = ? and parentFolderId = ? and name = ?.
 int countByG_P_NotS(long groupId, long parentFolderId, int status)
          Returns the number of journal folders where groupId = ? and parentFolderId = ? and status ≠ ?.
 int countByG_P_S(long groupId, long parentFolderId, int status)
          Returns the number of journal folders where groupId = ? and parentFolderId = ? and status = ?.
 int countByG_P(long groupId, long parentFolderId)
          Returns the number of journal folders where groupId = ? and parentFolderId = ?.
 int countByGroupId(long groupId)
          Returns the number of journal folders where groupId = ?.
 int countByUuid_C(String uuid, long companyId)
          Returns the number of journal folders where uuid = ? and companyId = ?.
 int countByUUID_G(String uuid, long groupId)
          Returns the number of journal folders where uuid = ? and groupId = ?.
 int countByUuid(String uuid)
          Returns the number of journal folders where uuid = ?.
 JournalFolder create(long folderId)
          Creates a new journal folder with the primary key.
 void destroy()
           
 JournalFolder fetchByC_NotS_First(long companyId, int status, OrderByComparator orderByComparator)
          Returns the first journal folder in the ordered set where companyId = ? and status ≠ ?.
 JournalFolder fetchByC_NotS_Last(long companyId, int status, OrderByComparator orderByComparator)
          Returns the last journal folder in the ordered set where companyId = ? and status ≠ ?.
 JournalFolder fetchByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first journal folder in the ordered set where companyId = ?.
 JournalFolder fetchByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last journal folder in the ordered set where companyId = ?.
 JournalFolder fetchByF_C_P_NotS_First(long folderId, long companyId, long parentFolderId, int status, OrderByComparator orderByComparator)
          Returns the first journal folder in the ordered set where folderId > ? and companyId = ? and parentFolderId = ? and status ≠ ?.
 JournalFolder fetchByF_C_P_NotS_Last(long folderId, long companyId, long parentFolderId, int status, OrderByComparator orderByComparator)
          Returns the last journal folder in the ordered set where folderId > ? and companyId = ? and parentFolderId = ? and status ≠ ?.
 JournalFolder fetchByG_N(long groupId, String name)
          Returns the journal folder where groupId = ? and name = ? or returns null if it could not be found.
 JournalFolder fetchByG_N(long groupId, String name, boolean retrieveFromCache)
          Returns the journal folder where groupId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.
 JournalFolder fetchByG_P_First(long groupId, long parentFolderId, OrderByComparator orderByComparator)
          Returns the first journal folder in the ordered set where groupId = ? and parentFolderId = ?.
 JournalFolder fetchByG_P_Last(long groupId, long parentFolderId, OrderByComparator orderByComparator)
          Returns the last journal folder in the ordered set where groupId = ? and parentFolderId = ?.
 JournalFolder fetchByG_P_N(long groupId, long parentFolderId, String name)
          Returns the journal folder where groupId = ? and parentFolderId = ? and name = ? or returns null if it could not be found.
 JournalFolder fetchByG_P_N(long groupId, long parentFolderId, String name, boolean retrieveFromCache)
          Returns the journal folder where groupId = ? and parentFolderId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.
 JournalFolder fetchByG_P_NotS_First(long groupId, long parentFolderId, int status, OrderByComparator orderByComparator)
          Returns the first journal folder in the ordered set where groupId = ? and parentFolderId = ? and status ≠ ?.
 JournalFolder fetchByG_P_NotS_Last(long groupId, long parentFolderId, int status, OrderByComparator orderByComparator)
          Returns the last journal folder in the ordered set where groupId = ? and parentFolderId = ? and status ≠ ?.
 JournalFolder fetchByG_P_S_First(long groupId, long parentFolderId, int status, OrderByComparator orderByComparator)
          Returns the first journal folder in the ordered set where groupId = ? and parentFolderId = ? and status = ?.
 JournalFolder fetchByG_P_S_Last(long groupId, long parentFolderId, int status, OrderByComparator orderByComparator)
          Returns the last journal folder in the ordered set where groupId = ? and parentFolderId = ? and status = ?.
 JournalFolder fetchByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first journal folder in the ordered set where groupId = ?.
 JournalFolder fetchByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last journal folder in the ordered set where groupId = ?.
 JournalFolder fetchByPrimaryKey(long folderId)
          Returns the journal folder with the primary key or returns null if it could not be found.
 JournalFolder fetchByPrimaryKey(Serializable primaryKey)
          Returns the journal folder with the primary key or returns null if it could not be found.
 JournalFolder fetchByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the first journal folder in the ordered set where uuid = ? and companyId = ?.
 JournalFolder fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the last journal folder in the ordered set where uuid = ? and companyId = ?.
 JournalFolder fetchByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first journal folder in the ordered set where uuid = ?.
 JournalFolder fetchByUUID_G(String uuid, long groupId)
          Returns the journal folder where uuid = ? and groupId = ? or returns null if it could not be found.
 JournalFolder fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache)
          Returns the journal folder where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
 JournalFolder fetchByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last journal folder in the ordered set where uuid = ?.
 int filterCountByG_P_NotS(long groupId, long parentFolderId, int status)
          Returns the number of journal folders that the user has permission to view where groupId = ? and parentFolderId = ? and status ≠ ?.
 int filterCountByG_P_S(long groupId, long parentFolderId, int status)
          Returns the number of journal folders that the user has permission to view where groupId = ? and parentFolderId = ? and status = ?.
 int filterCountByG_P(long groupId, long parentFolderId)
          Returns the number of journal folders that the user has permission to view where groupId = ? and parentFolderId = ?.
 int filterCountByGroupId(long groupId)
          Returns the number of journal folders that the user has permission to view where groupId = ?.
 JournalFolder[] filterFindByG_P_NotS_PrevAndNext(long folderId, long groupId, long parentFolderId, int status, OrderByComparator orderByComparator)
          Returns the journal folders before and after the current journal folder in the ordered set of journal folders that the user has permission to view where groupId = ? and parentFolderId = ? and status ≠ ?.
 List<JournalFolder> filterFindByG_P_NotS(long groupId, long parentFolderId, int status)
          Returns all the journal folders that the user has permission to view where groupId = ? and parentFolderId = ? and status ≠ ?.
 List<JournalFolder> filterFindByG_P_NotS(long groupId, long parentFolderId, int status, int start, int end)
          Returns a range of all the journal folders that the user has permission to view where groupId = ? and parentFolderId = ? and status ≠ ?.
 List<JournalFolder> filterFindByG_P_NotS(long groupId, long parentFolderId, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the journal folders that the user has permissions to view where groupId = ? and parentFolderId = ? and status ≠ ?.
 JournalFolder[] filterFindByG_P_PrevAndNext(long folderId, long groupId, long parentFolderId, OrderByComparator orderByComparator)
          Returns the journal folders before and after the current journal folder in the ordered set of journal folders that the user has permission to view where groupId = ? and parentFolderId = ?.
 JournalFolder[] filterFindByG_P_S_PrevAndNext(long folderId, long groupId, long parentFolderId, int status, OrderByComparator orderByComparator)
          Returns the journal folders before and after the current journal folder in the ordered set of journal folders that the user has permission to view where groupId = ? and parentFolderId = ? and status = ?.
 List<JournalFolder> filterFindByG_P_S(long groupId, long parentFolderId, int status)
          Returns all the journal folders that the user has permission to view where groupId = ? and parentFolderId = ? and status = ?.
 List<JournalFolder> filterFindByG_P_S(long groupId, long parentFolderId, int status, int start, int end)
          Returns a range of all the journal folders that the user has permission to view where groupId = ? and parentFolderId = ? and status = ?.
 List<JournalFolder> filterFindByG_P_S(long groupId, long parentFolderId, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the journal folders that the user has permissions to view where groupId = ? and parentFolderId = ? and status = ?.
 List<JournalFolder> filterFindByG_P(long groupId, long parentFolderId)
          Returns all the journal folders that the user has permission to view where groupId = ? and parentFolderId = ?.
 List<JournalFolder> filterFindByG_P(long groupId, long parentFolderId, int start, int end)
          Returns a range of all the journal folders that the user has permission to view where groupId = ? and parentFolderId = ?.
 List<JournalFolder> filterFindByG_P(long groupId, long parentFolderId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the journal folders that the user has permissions to view where groupId = ? and parentFolderId = ?.
 JournalFolder[] filterFindByGroupId_PrevAndNext(long folderId, long groupId, OrderByComparator orderByComparator)
          Returns the journal folders before and after the current journal folder in the ordered set of journal folders that the user has permission to view where groupId = ?.
 List<JournalFolder> filterFindByGroupId(long groupId)
          Returns all the journal folders that the user has permission to view where groupId = ?.
 List<JournalFolder> filterFindByGroupId(long groupId, int start, int end)
          Returns a range of all the journal folders that the user has permission to view where groupId = ?.
 List<JournalFolder> filterFindByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the journal folders that the user has permissions to view where groupId = ?.
protected  JournalFolder filterGetByG_P_NotS_PrevAndNext(Session session, JournalFolder journalFolder, long groupId, long parentFolderId, int status, OrderByComparator orderByComparator, boolean previous)
           
protected  JournalFolder filterGetByG_P_PrevAndNext(Session session, JournalFolder journalFolder, long groupId, long parentFolderId, OrderByComparator orderByComparator, boolean previous)
           
protected  JournalFolder filterGetByG_P_S_PrevAndNext(Session session, JournalFolder journalFolder, long groupId, long parentFolderId, int status, OrderByComparator orderByComparator, boolean previous)
           
protected  JournalFolder filterGetByGroupId_PrevAndNext(Session session, JournalFolder journalFolder, long groupId, OrderByComparator orderByComparator, boolean previous)
           
 List<JournalFolder> findAll()
          Returns all the journal folders.
 List<JournalFolder> findAll(int start, int end)
          Returns a range of all the journal folders.
 List<JournalFolder> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the journal folders.
 JournalFolder findByC_NotS_First(long companyId, int status, OrderByComparator orderByComparator)
          Returns the first journal folder in the ordered set where companyId = ? and status ≠ ?.
 JournalFolder findByC_NotS_Last(long companyId, int status, OrderByComparator orderByComparator)
          Returns the last journal folder in the ordered set where companyId = ? and status ≠ ?.
 JournalFolder[] findByC_NotS_PrevAndNext(long folderId, long companyId, int status, OrderByComparator orderByComparator)
          Returns the journal folders before and after the current journal folder in the ordered set where companyId = ? and status ≠ ?.
 List<JournalFolder> findByC_NotS(long companyId, int status)
          Returns all the journal folders where companyId = ? and status ≠ ?.
 List<JournalFolder> findByC_NotS(long companyId, int status, int start, int end)
          Returns a range of all the journal folders where companyId = ? and status ≠ ?.
 List<JournalFolder> findByC_NotS(long companyId, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the journal folders where companyId = ? and status ≠ ?.
 JournalFolder findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first journal folder in the ordered set where companyId = ?.
 JournalFolder findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last journal folder in the ordered set where companyId = ?.
 JournalFolder[] findByCompanyId_PrevAndNext(long folderId, long companyId, OrderByComparator orderByComparator)
          Returns the journal folders before and after the current journal folder in the ordered set where companyId = ?.
 List<JournalFolder> findByCompanyId(long companyId)
          Returns all the journal folders where companyId = ?.
 List<JournalFolder> findByCompanyId(long companyId, int start, int end)
          Returns a range of all the journal folders where companyId = ?.
 List<JournalFolder> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the journal folders where companyId = ?.
 JournalFolder findByF_C_P_NotS_First(long folderId, long companyId, long parentFolderId, int status, OrderByComparator orderByComparator)
          Returns the first journal folder in the ordered set where folderId > ? and companyId = ? and parentFolderId = ? and status ≠ ?.
 JournalFolder findByF_C_P_NotS_Last(long folderId, long companyId, long parentFolderId, int status, OrderByComparator orderByComparator)
          Returns the last journal folder in the ordered set where folderId > ? and companyId = ? and parentFolderId = ? and status ≠ ?.
 List<JournalFolder> findByF_C_P_NotS(long folderId, long companyId, long parentFolderId, int status)
          Returns all the journal folders where folderId > ? and companyId = ? and parentFolderId = ? and status ≠ ?.
 List<JournalFolder> findByF_C_P_NotS(long folderId, long companyId, long parentFolderId, int status, int start, int end)
          Returns a range of all the journal folders where folderId > ? and companyId = ? and parentFolderId = ? and status ≠ ?.
 List<JournalFolder> findByF_C_P_NotS(long folderId, long companyId, long parentFolderId, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the journal folders where folderId > ? and companyId = ? and parentFolderId = ? and status ≠ ?.
 JournalFolder findByG_N(long groupId, String name)
          Returns the journal folder where groupId = ? and name = ? or throws a NoSuchFolderException if it could not be found.
 JournalFolder findByG_P_First(long groupId, long parentFolderId, OrderByComparator orderByComparator)
          Returns the first journal folder in the ordered set where groupId = ? and parentFolderId = ?.
 JournalFolder findByG_P_Last(long groupId, long parentFolderId, OrderByComparator orderByComparator)
          Returns the last journal folder in the ordered set where groupId = ? and parentFolderId = ?.
 JournalFolder findByG_P_N(long groupId, long parentFolderId, String name)
          Returns the journal folder where groupId = ? and parentFolderId = ? and name = ? or throws a NoSuchFolderException if it could not be found.
 JournalFolder findByG_P_NotS_First(long groupId, long parentFolderId, int status, OrderByComparator orderByComparator)
          Returns the first journal folder in the ordered set where groupId = ? and parentFolderId = ? and status ≠ ?.
 JournalFolder findByG_P_NotS_Last(long groupId, long parentFolderId, int status, OrderByComparator orderByComparator)
          Returns the last journal folder in the ordered set where groupId = ? and parentFolderId = ? and status ≠ ?.
 JournalFolder[] findByG_P_NotS_PrevAndNext(long folderId, long groupId, long parentFolderId, int status, OrderByComparator orderByComparator)
          Returns the journal folders before and after the current journal folder in the ordered set where groupId = ? and parentFolderId = ? and status ≠ ?.
 List<JournalFolder> findByG_P_NotS(long groupId, long parentFolderId, int status)
          Returns all the journal folders where groupId = ? and parentFolderId = ? and status ≠ ?.
 List<JournalFolder> findByG_P_NotS(long groupId, long parentFolderId, int status, int start, int end)
          Returns a range of all the journal folders where groupId = ? and parentFolderId = ? and status ≠ ?.
 List<JournalFolder> findByG_P_NotS(long groupId, long parentFolderId, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the journal folders where groupId = ? and parentFolderId = ? and status ≠ ?.
 JournalFolder[] findByG_P_PrevAndNext(long folderId, long groupId, long parentFolderId, OrderByComparator orderByComparator)
          Returns the journal folders before and after the current journal folder in the ordered set where groupId = ? and parentFolderId = ?.
 JournalFolder findByG_P_S_First(long groupId, long parentFolderId, int status, OrderByComparator orderByComparator)
          Returns the first journal folder in the ordered set where groupId = ? and parentFolderId = ? and status = ?.
 JournalFolder findByG_P_S_Last(long groupId, long parentFolderId, int status, OrderByComparator orderByComparator)
          Returns the last journal folder in the ordered set where groupId = ? and parentFolderId = ? and status = ?.
 JournalFolder[] findByG_P_S_PrevAndNext(long folderId, long groupId, long parentFolderId, int status, OrderByComparator orderByComparator)
          Returns the journal folders before and after the current journal folder in the ordered set where groupId = ? and parentFolderId = ? and status = ?.
 List<JournalFolder> findByG_P_S(long groupId, long parentFolderId, int status)
          Returns all the journal folders where groupId = ? and parentFolderId = ? and status = ?.
 List<JournalFolder> findByG_P_S(long groupId, long parentFolderId, int status, int start, int end)
          Returns a range of all the journal folders where groupId = ? and parentFolderId = ? and status = ?.
 List<JournalFolder> findByG_P_S(long groupId, long parentFolderId, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the journal folders where groupId = ? and parentFolderId = ? and status = ?.
 List<JournalFolder> findByG_P(long groupId, long parentFolderId)
          Returns all the journal folders where groupId = ? and parentFolderId = ?.
 List<JournalFolder> findByG_P(long groupId, long parentFolderId, int start, int end)
          Returns a range of all the journal folders where groupId = ? and parentFolderId = ?.
 List<JournalFolder> findByG_P(long groupId, long parentFolderId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the journal folders where groupId = ? and parentFolderId = ?.
 JournalFolder findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Returns the first journal folder in the ordered set where groupId = ?.
 JournalFolder findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Returns the last journal folder in the ordered set where groupId = ?.
 JournalFolder[] findByGroupId_PrevAndNext(long folderId, long groupId, OrderByComparator orderByComparator)
          Returns the journal folders before and after the current journal folder in the ordered set where groupId = ?.
 List<JournalFolder> findByGroupId(long groupId)
          Returns all the journal folders where groupId = ?.
 List<JournalFolder> findByGroupId(long groupId, int start, int end)
          Returns a range of all the journal folders where groupId = ?.
 List<JournalFolder> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the journal folders where groupId = ?.
 JournalFolder findByPrimaryKey(long folderId)
          Returns the journal folder with the primary key or throws a NoSuchFolderException if it could not be found.
 JournalFolder findByPrimaryKey(Serializable primaryKey)
          Returns the journal folder with the primary key or throws a NoSuchModelException if it could not be found.
 JournalFolder findByUuid_C_First(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the first journal folder in the ordered set where uuid = ? and companyId = ?.
 JournalFolder findByUuid_C_Last(String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the last journal folder in the ordered set where uuid = ? and companyId = ?.
 JournalFolder[] findByUuid_C_PrevAndNext(long folderId, String uuid, long companyId, OrderByComparator orderByComparator)
          Returns the journal folders before and after the current journal folder in the ordered set where uuid = ? and companyId = ?.
 List<JournalFolder> findByUuid_C(String uuid, long companyId)
          Returns all the journal folders where uuid = ? and companyId = ?.
 List<JournalFolder> findByUuid_C(String uuid, long companyId, int start, int end)
          Returns a range of all the journal folders where uuid = ? and companyId = ?.
 List<JournalFolder> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the journal folders where uuid = ? and companyId = ?.
 JournalFolder findByUuid_First(String uuid, OrderByComparator orderByComparator)
          Returns the first journal folder in the ordered set where uuid = ?.
 JournalFolder findByUUID_G(String uuid, long groupId)
          Returns the journal folder where uuid = ? and groupId = ? or throws a NoSuchFolderException if it could not be found.
 JournalFolder findByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Returns the last journal folder in the ordered set where uuid = ?.
 JournalFolder[] findByUuid_PrevAndNext(long folderId, String uuid, OrderByComparator orderByComparator)
          Returns the journal folders before and after the current journal folder in the ordered set where uuid = ?.
 List<JournalFolder> findByUuid(String uuid)
          Returns all the journal folders where uuid = ?.
 List<JournalFolder> findByUuid(String uuid, int start, int end)
          Returns a range of all the journal folders where uuid = ?.
 List<JournalFolder> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the journal folders where uuid = ?.
protected  Set<String> getBadColumnNames()
           
protected  JournalFolder getByC_NotS_PrevAndNext(Session session, JournalFolder journalFolder, long companyId, int status, OrderByComparator orderByComparator, boolean previous)
           
protected  JournalFolder getByCompanyId_PrevAndNext(Session session, JournalFolder journalFolder, long companyId, OrderByComparator orderByComparator, boolean previous)
           
protected  JournalFolder getByG_P_NotS_PrevAndNext(Session session, JournalFolder journalFolder, long groupId, long parentFolderId, int status, OrderByComparator orderByComparator, boolean previous)
           
protected  JournalFolder getByG_P_PrevAndNext(Session session, JournalFolder journalFolder, long groupId, long parentFolderId, OrderByComparator orderByComparator, boolean previous)
           
protected  JournalFolder getByG_P_S_PrevAndNext(Session session, JournalFolder journalFolder, long groupId, long parentFolderId, int status, OrderByComparator orderByComparator, boolean previous)
           
protected  JournalFolder getByGroupId_PrevAndNext(Session session, JournalFolder journalFolder, long groupId, OrderByComparator orderByComparator, boolean previous)
           
protected  JournalFolder getByUuid_C_PrevAndNext(Session session, JournalFolder journalFolder, String uuid, long companyId, OrderByComparator orderByComparator, boolean previous)
           
protected  JournalFolder getByUuid_PrevAndNext(Session session, JournalFolder journalFolder, String uuid, OrderByComparator orderByComparator, boolean previous)
           
 JournalFolder remove(long folderId)
          Removes the journal folder with the primary key from the database.
 JournalFolder remove(Serializable primaryKey)
          Removes the journal folder with the primary key from the database.
 void removeAll()
          Removes all the journal folders from the database.
 void removeByC_NotS(long companyId, int status)
          Removes all the journal folders where companyId = ? and status ≠ ? from the database.
 void removeByCompanyId(long companyId)
          Removes all the journal folders where companyId = ? from the database.
 void removeByF_C_P_NotS(long folderId, long companyId, long parentFolderId, int status)
          Removes all the journal folders where folderId > ? and companyId = ? and parentFolderId = ? and status ≠ ? from the database.
 JournalFolder removeByG_N(long groupId, String name)
          Removes the journal folder where groupId = ? and name = ? from the database.
 JournalFolder removeByG_P_N(long groupId, long parentFolderId, String name)
          Removes the journal folder where groupId = ? and parentFolderId = ? and name = ? from the database.
 void removeByG_P_NotS(long groupId, long parentFolderId, int status)
          Removes all the journal folders where groupId = ? and parentFolderId = ? and status ≠ ? from the database.
 void removeByG_P_S(long groupId, long parentFolderId, int status)
          Removes all the journal folders where groupId = ? and parentFolderId = ? and status = ? from the database.
 void removeByG_P(long groupId, long parentFolderId)
          Removes all the journal folders where groupId = ? and parentFolderId = ? from the database.
 void removeByGroupId(long groupId)
          Removes all the journal folders where groupId = ? from the database.
 void removeByUuid_C(String uuid, long companyId)
          Removes all the journal folders where uuid = ? and companyId = ? from the database.
 JournalFolder removeByUUID_G(String uuid, long groupId)
          Removes the journal folder where uuid = ? and groupId = ? from the database.
 void removeByUuid(String uuid)
          Removes all the journal folders where uuid = ? from the database.
protected  JournalFolder removeImpl(JournalFolder journalFolder)
          Removes the model instance from the database.
protected  JournalFolder toUnwrappedModel(JournalFolder journalFolder)
           
 JournalFolder updateImpl(JournalFolder journalFolder)
          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, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl
 
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, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, 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 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

FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID

FINDER_PATH_COUNT_BY_UUID

public static final FinderPath FINDER_PATH_COUNT_BY_UUID

FINDER_PATH_FETCH_BY_UUID_G

public static final FinderPath FINDER_PATH_FETCH_BY_UUID_G

FINDER_PATH_COUNT_BY_UUID_G

public static final FinderPath FINDER_PATH_COUNT_BY_UUID_G

FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C

FINDER_PATH_COUNT_BY_UUID_C

public static final FinderPath FINDER_PATH_COUNT_BY_UUID_C

FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_COUNT_BY_COMPANYID

public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_P

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_P

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_P

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_P

FINDER_PATH_COUNT_BY_G_P

public static final FinderPath FINDER_PATH_COUNT_BY_G_P

FINDER_PATH_FETCH_BY_G_N

public static final FinderPath FINDER_PATH_FETCH_BY_G_N

FINDER_PATH_COUNT_BY_G_N

public static final FinderPath FINDER_PATH_COUNT_BY_G_N

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_NOTS

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_NOTS

FINDER_PATH_WITH_PAGINATION_COUNT_BY_C_NOTS

public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_C_NOTS

FINDER_PATH_WITH_PAGINATION_FIND_BY_F_C_P_NOTS

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_F_C_P_NOTS

FINDER_PATH_WITH_PAGINATION_COUNT_BY_F_C_P_NOTS

public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_F_C_P_NOTS

FINDER_PATH_FETCH_BY_G_P_N

public static final FinderPath FINDER_PATH_FETCH_BY_G_P_N

FINDER_PATH_COUNT_BY_G_P_N

public static final FinderPath FINDER_PATH_COUNT_BY_G_P_N

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_P_S

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_P_S

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_P_S

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_P_S

FINDER_PATH_COUNT_BY_G_P_S

public static final FinderPath FINDER_PATH_COUNT_BY_G_P_S

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_P_NOTS

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_P_NOTS

FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_P_NOTS

public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_G_P_NOTS
Constructor Detail

JournalFolderPersistenceImpl

public JournalFolderPersistenceImpl()
Method Detail

findByUuid

public List<JournalFolder> findByUuid(String uuid)
                               throws SystemException
Returns all the journal folders where uuid = ?.

Specified by:
findByUuid in interface JournalFolderPersistence
Parameters:
uuid - the uuid
Returns:
the matching journal folders
Throws:
SystemException - if a system exception occurred

findByUuid

public List<JournalFolder> findByUuid(String uuid,
                                      int start,
                                      int end)
                               throws SystemException
Returns a range of all the journal folders where uuid = ?.

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 JournalFolderModelImpl. 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:
findByUuid in interface JournalFolderPersistence
Parameters:
uuid - the uuid
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
Returns:
the range of matching journal folders
Throws:
SystemException - if a system exception occurred

findByUuid

public List<JournalFolder> findByUuid(String uuid,
                                      int start,
                                      int end,
                                      OrderByComparator orderByComparator)
                               throws SystemException
Returns an ordered range of all the journal folders where uuid = ?.

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 JournalFolderModelImpl. 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:
findByUuid in interface JournalFolderPersistence
Parameters:
uuid - the uuid
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching journal folders
Throws:
SystemException - if a system exception occurred

findByUuid_First

public JournalFolder findByUuid_First(String uuid,
                                      OrderByComparator orderByComparator)
                               throws NoSuchFolderException,
                                      SystemException
Returns the first journal folder in the ordered set where uuid = ?.

Specified by:
findByUuid_First in interface JournalFolderPersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching journal folder
Throws:
NoSuchFolderException - if a matching journal folder could not be found
SystemException - if a system exception occurred

fetchByUuid_First

public JournalFolder fetchByUuid_First(String uuid,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns the first journal folder in the ordered set where uuid = ?.

Specified by:
fetchByUuid_First in interface JournalFolderPersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching journal folder, or null if a matching journal folder could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_Last

public JournalFolder findByUuid_Last(String uuid,
                                     OrderByComparator orderByComparator)
                              throws NoSuchFolderException,
                                     SystemException
Returns the last journal folder in the ordered set where uuid = ?.

Specified by:
findByUuid_Last in interface JournalFolderPersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching journal folder
Throws:
NoSuchFolderException - if a matching journal folder could not be found
SystemException - if a system exception occurred

fetchByUuid_Last

public JournalFolder fetchByUuid_Last(String uuid,
                                      OrderByComparator orderByComparator)
                               throws SystemException
Returns the last journal folder in the ordered set where uuid = ?.

Specified by:
fetchByUuid_Last in interface JournalFolderPersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching journal folder, or null if a matching journal folder could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_PrevAndNext

public JournalFolder[] findByUuid_PrevAndNext(long folderId,
                                              String uuid,
                                              OrderByComparator orderByComparator)
                                       throws NoSuchFolderException,
                                              SystemException
Returns the journal folders before and after the current journal folder in the ordered set where uuid = ?.

Specified by:
findByUuid_PrevAndNext in interface JournalFolderPersistence
Parameters:
folderId - the primary key of the current journal folder
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next journal folder
Throws:
NoSuchFolderException - if a journal folder with the primary key could not be found
SystemException - if a system exception occurred

getByUuid_PrevAndNext

protected JournalFolder getByUuid_PrevAndNext(Session session,
                                              JournalFolder journalFolder,
                                              String uuid,
                                              OrderByComparator orderByComparator,
                                              boolean previous)

removeByUuid

public void removeByUuid(String uuid)
                  throws SystemException
Removes all the journal folders where uuid = ? from the database.

Specified by:
removeByUuid in interface JournalFolderPersistence
Parameters:
uuid - the uuid
Throws:
SystemException - if a system exception occurred

countByUuid

public int countByUuid(String uuid)
                throws SystemException
Returns the number of journal folders where uuid = ?.

Specified by:
countByUuid in interface JournalFolderPersistence
Parameters:
uuid - the uuid
Returns:
the number of matching journal folders
Throws:
SystemException - if a system exception occurred

findByUUID_G

public JournalFolder findByUUID_G(String uuid,
                                  long groupId)
                           throws NoSuchFolderException,
                                  SystemException
Returns the journal folder where uuid = ? and groupId = ? or throws a NoSuchFolderException if it could not be found.

Specified by:
findByUUID_G in interface JournalFolderPersistence
Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the matching journal folder
Throws:
NoSuchFolderException - if a matching journal folder could not be found
SystemException - if a system exception occurred

fetchByUUID_G

public JournalFolder fetchByUUID_G(String uuid,
                                   long groupId)
                            throws SystemException
Returns the journal folder where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByUUID_G in interface JournalFolderPersistence
Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the matching journal folder, or null if a matching journal folder could not be found
Throws:
SystemException - if a system exception occurred

fetchByUUID_G

public JournalFolder fetchByUUID_G(String uuid,
                                   long groupId,
                                   boolean retrieveFromCache)
                            throws SystemException
Returns the journal folder where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByUUID_G in interface JournalFolderPersistence
Parameters:
uuid - the uuid
groupId - the group ID
retrieveFromCache - whether to use the finder cache
Returns:
the matching journal folder, or null if a matching journal folder could not be found
Throws:
SystemException - if a system exception occurred

removeByUUID_G

public JournalFolder removeByUUID_G(String uuid,
                                    long groupId)
                             throws NoSuchFolderException,
                                    SystemException
Removes the journal folder where uuid = ? and groupId = ? from the database.

Specified by:
removeByUUID_G in interface JournalFolderPersistence
Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the journal folder that was removed
Throws:
SystemException - if a system exception occurred
NoSuchFolderException

countByUUID_G

public int countByUUID_G(String uuid,
                         long groupId)
                  throws SystemException
Returns the number of journal folders where uuid = ? and groupId = ?.

Specified by:
countByUUID_G in interface JournalFolderPersistence
Parameters:
uuid - the uuid
groupId - the group ID
Returns:
the number of matching journal folders
Throws:
SystemException - if a system exception occurred

findByUuid_C

public List<JournalFolder> findByUuid_C(String uuid,
                                        long companyId)
                                 throws SystemException
Returns all the journal folders where uuid = ? and companyId = ?.

Specified by:
findByUuid_C in interface JournalFolderPersistence
Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the matching journal folders
Throws:
SystemException - if a system exception occurred

findByUuid_C

public List<JournalFolder> findByUuid_C(String uuid,
                                        long companyId,
                                        int start,
                                        int end)
                                 throws SystemException
Returns a range of all the journal folders where uuid = ? and companyId = ?.

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 JournalFolderModelImpl. 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:
findByUuid_C in interface JournalFolderPersistence
Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
Returns:
the range of matching journal folders
Throws:
SystemException - if a system exception occurred

findByUuid_C

public List<JournalFolder> findByUuid_C(String uuid,
                                        long companyId,
                                        int start,
                                        int end,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Returns an ordered range of all the journal folders where uuid = ? and companyId = ?.

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 JournalFolderModelImpl. 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:
findByUuid_C in interface JournalFolderPersistence
Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching journal folders
Throws:
SystemException - if a system exception occurred

findByUuid_C_First

public JournalFolder findByUuid_C_First(String uuid,
                                        long companyId,
                                        OrderByComparator orderByComparator)
                                 throws NoSuchFolderException,
                                        SystemException
Returns the first journal folder in the ordered set where uuid = ? and companyId = ?.

Specified by:
findByUuid_C_First in interface JournalFolderPersistence
Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching journal folder
Throws:
NoSuchFolderException - if a matching journal folder could not be found
SystemException - if a system exception occurred

fetchByUuid_C_First

public JournalFolder fetchByUuid_C_First(String uuid,
                                         long companyId,
                                         OrderByComparator orderByComparator)
                                  throws SystemException
Returns the first journal folder in the ordered set where uuid = ? and companyId = ?.

Specified by:
fetchByUuid_C_First in interface JournalFolderPersistence
Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching journal folder, or null if a matching journal folder could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_C_Last

public JournalFolder findByUuid_C_Last(String uuid,
                                       long companyId,
                                       OrderByComparator orderByComparator)
                                throws NoSuchFolderException,
                                       SystemException
Returns the last journal folder in the ordered set where uuid = ? and companyId = ?.

Specified by:
findByUuid_C_Last in interface JournalFolderPersistence
Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching journal folder
Throws:
NoSuchFolderException - if a matching journal folder could not be found
SystemException - if a system exception occurred

fetchByUuid_C_Last

public JournalFolder fetchByUuid_C_Last(String uuid,
                                        long companyId,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Returns the last journal folder in the ordered set where uuid = ? and companyId = ?.

Specified by:
fetchByUuid_C_Last in interface JournalFolderPersistence
Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching journal folder, or null if a matching journal folder could not be found
Throws:
SystemException - if a system exception occurred

findByUuid_C_PrevAndNext

public JournalFolder[] findByUuid_C_PrevAndNext(long folderId,
                                                String uuid,
                                                long companyId,
                                                OrderByComparator orderByComparator)
                                         throws NoSuchFolderException,
                                                SystemException
Returns the journal folders before and after the current journal folder in the ordered set where uuid = ? and companyId = ?.

Specified by:
findByUuid_C_PrevAndNext in interface JournalFolderPersistence
Parameters:
folderId - the primary key of the current journal folder
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next journal folder
Throws:
NoSuchFolderException - if a journal folder with the primary key could not be found
SystemException - if a system exception occurred

getByUuid_C_PrevAndNext

protected JournalFolder getByUuid_C_PrevAndNext(Session session,
                                                JournalFolder journalFolder,
                                                String uuid,
                                                long companyId,
                                                OrderByComparator orderByComparator,
                                                boolean previous)

removeByUuid_C

public void removeByUuid_C(String uuid,
                           long companyId)
                    throws SystemException
Removes all the journal folders where uuid = ? and companyId = ? from the database.

Specified by:
removeByUuid_C in interface JournalFolderPersistence
Parameters:
uuid - the uuid
companyId - the company ID
Throws:
SystemException - if a system exception occurred

countByUuid_C

public int countByUuid_C(String uuid,
                         long companyId)
                  throws SystemException
Returns the number of journal folders where uuid = ? and companyId = ?.

Specified by:
countByUuid_C in interface JournalFolderPersistence
Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the number of matching journal folders
Throws:
SystemException - if a system exception occurred

findByGroupId

public List<JournalFolder> findByGroupId(long groupId)
                                  throws SystemException
Returns all the journal folders where groupId = ?.

Specified by:
findByGroupId in interface JournalFolderPersistence
Parameters:
groupId - the group ID
Returns:
the matching journal folders
Throws:
SystemException - if a system exception occurred

findByGroupId

public List<JournalFolder> findByGroupId(long groupId,
                                         int start,
                                         int end)
                                  throws SystemException
Returns a range of all the journal folders where groupId = ?.

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 JournalFolderModelImpl. 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:
findByGroupId in interface JournalFolderPersistence
Parameters:
groupId - the group ID
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
Returns:
the range of matching journal folders
Throws:
SystemException - if a system exception occurred

findByGroupId

public List<JournalFolder> findByGroupId(long groupId,
                                         int start,
                                         int end,
                                         OrderByComparator orderByComparator)
                                  throws SystemException
Returns an ordered range of all the journal folders where groupId = ?.

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 JournalFolderModelImpl. 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:
findByGroupId in interface JournalFolderPersistence
Parameters:
groupId - the group ID
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching journal folders
Throws:
SystemException - if a system exception occurred

findByGroupId_First

public JournalFolder findByGroupId_First(long groupId,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchFolderException,
                                         SystemException
Returns the first journal folder in the ordered set where groupId = ?.

Specified by:
findByGroupId_First in interface JournalFolderPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching journal folder
Throws:
NoSuchFolderException - if a matching journal folder could not be found
SystemException - if a system exception occurred

fetchByGroupId_First

public JournalFolder fetchByGroupId_First(long groupId,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Returns the first journal folder in the ordered set where groupId = ?.

Specified by:
fetchByGroupId_First in interface JournalFolderPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching journal folder, or null if a matching journal folder could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId_Last

public JournalFolder findByGroupId_Last(long groupId,
                                        OrderByComparator orderByComparator)
                                 throws NoSuchFolderException,
                                        SystemException
Returns the last journal folder in the ordered set where groupId = ?.

Specified by:
findByGroupId_Last in interface JournalFolderPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching journal folder
Throws:
NoSuchFolderException - if a matching journal folder could not be found
SystemException - if a system exception occurred

fetchByGroupId_Last

public JournalFolder fetchByGroupId_Last(long groupId,
                                         OrderByComparator orderByComparator)
                                  throws SystemException
Returns the last journal folder in the ordered set where groupId = ?.

Specified by:
fetchByGroupId_Last in interface JournalFolderPersistence
Parameters:
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching journal folder, or null if a matching journal folder could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

public JournalFolder[] findByGroupId_PrevAndNext(long folderId,
                                                 long groupId,
                                                 OrderByComparator orderByComparator)
                                          throws NoSuchFolderException,
                                                 SystemException
Returns the journal folders before and after the current journal folder in the ordered set where groupId = ?.

Specified by:
findByGroupId_PrevAndNext in interface JournalFolderPersistence
Parameters:
folderId - the primary key of the current journal folder
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next journal folder
Throws:
NoSuchFolderException - if a journal folder with the primary key could not be found
SystemException - if a system exception occurred

getByGroupId_PrevAndNext

protected JournalFolder getByGroupId_PrevAndNext(Session session,
                                                 JournalFolder journalFolder,
                                                 long groupId,
                                                 OrderByComparator orderByComparator,
                                                 boolean previous)

filterFindByGroupId

public List<JournalFolder> filterFindByGroupId(long groupId)
                                        throws SystemException
Returns all the journal folders that the user has permission to view where groupId = ?.

Specified by:
filterFindByGroupId in interface JournalFolderPersistence
Parameters:
groupId - the group ID
Returns:
the matching journal folders that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

public List<JournalFolder> filterFindByGroupId(long groupId,
                                               int start,
                                               int end)
                                        throws SystemException
Returns a range of all the journal folders that the user has permission to view where groupId = ?.

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 JournalFolderModelImpl. 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:
filterFindByGroupId in interface JournalFolderPersistence
Parameters:
groupId - the group ID
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
Returns:
the range of matching journal folders that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

public List<JournalFolder> filterFindByGroupId(long groupId,
                                               int start,
                                               int end,
                                               OrderByComparator orderByComparator)
                                        throws SystemException
Returns an ordered range of all the journal folders that the user has permissions to view where groupId = ?.

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 JournalFolderModelImpl. 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:
filterFindByGroupId in interface JournalFolderPersistence
Parameters:
groupId - the group ID
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching journal folders that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId_PrevAndNext

public JournalFolder[] filterFindByGroupId_PrevAndNext(long folderId,
                                                       long groupId,
                                                       OrderByComparator orderByComparator)
                                                throws NoSuchFolderException,
                                                       SystemException
Returns the journal folders before and after the current journal folder in the ordered set of journal folders that the user has permission to view where groupId = ?.

Specified by:
filterFindByGroupId_PrevAndNext in interface JournalFolderPersistence
Parameters:
folderId - the primary key of the current journal folder
groupId - the group ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next journal folder
Throws:
NoSuchFolderException - if a journal folder with the primary key could not be found
SystemException - if a system exception occurred

filterGetByGroupId_PrevAndNext

protected JournalFolder filterGetByGroupId_PrevAndNext(Session session,
                                                       JournalFolder journalFolder,
                                                       long groupId,
                                                       OrderByComparator orderByComparator,
                                                       boolean previous)

removeByGroupId

public void removeByGroupId(long groupId)
                     throws SystemException
Removes all the journal folders where groupId = ? from the database.

Specified by:
removeByGroupId in interface JournalFolderPersistence
Parameters:
groupId - the group ID
Throws:
SystemException - if a system exception occurred

countByGroupId

public int countByGroupId(long groupId)
                   throws SystemException
Returns the number of journal folders where groupId = ?.

Specified by:
countByGroupId in interface JournalFolderPersistence
Parameters:
groupId - the group ID
Returns:
the number of matching journal folders
Throws:
SystemException - if a system exception occurred

filterCountByGroupId

public int filterCountByGroupId(long groupId)
                         throws SystemException
Returns the number of journal folders that the user has permission to view where groupId = ?.

Specified by:
filterCountByGroupId in interface JournalFolderPersistence
Parameters:
groupId - the group ID
Returns:
the number of matching journal folders that the user has permission to view
Throws:
SystemException - if a system exception occurred

findByCompanyId

public List<JournalFolder> findByCompanyId(long companyId)
                                    throws SystemException
Returns all the journal folders where companyId = ?.

Specified by:
findByCompanyId in interface JournalFolderPersistence
Parameters:
companyId - the company ID
Returns:
the matching journal folders
Throws:
SystemException - if a system exception occurred

findByCompanyId

public List<JournalFolder> findByCompanyId(long companyId,
                                           int start,
                                           int end)
                                    throws SystemException
Returns a range of all the journal folders where companyId = ?.

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 JournalFolderModelImpl. 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:
findByCompanyId in interface JournalFolderPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
Returns:
the range of matching journal folders
Throws:
SystemException - if a system exception occurred

findByCompanyId

public List<JournalFolder> findByCompanyId(long companyId,
                                           int start,
                                           int end,
                                           OrderByComparator orderByComparator)
                                    throws SystemException
Returns an ordered range of all the journal folders where companyId = ?.

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 JournalFolderModelImpl. 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:
findByCompanyId in interface JournalFolderPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching journal folders
Throws:
SystemException - if a system exception occurred

findByCompanyId_First

public JournalFolder findByCompanyId_First(long companyId,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchFolderException,
                                           SystemException
Returns the first journal folder in the ordered set where companyId = ?.

Specified by:
findByCompanyId_First in interface JournalFolderPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching journal folder
Throws:
NoSuchFolderException - if a matching journal folder could not be found
SystemException - if a system exception occurred

fetchByCompanyId_First

public JournalFolder fetchByCompanyId_First(long companyId,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Returns the first journal folder in the ordered set where companyId = ?.

Specified by:
fetchByCompanyId_First in interface JournalFolderPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching journal folder, or null if a matching journal folder could not be found
Throws:
SystemException - if a system exception occurred

findByCompanyId_Last

public JournalFolder findByCompanyId_Last(long companyId,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchFolderException,
                                          SystemException
Returns the last journal folder in the ordered set where companyId = ?.

Specified by:
findByCompanyId_Last in interface JournalFolderPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching journal folder
Throws:
NoSuchFolderException - if a matching journal folder could not be found
SystemException - if a system exception occurred

fetchByCompanyId_Last

public JournalFolder fetchByCompanyId_Last(long companyId,
                                           OrderByComparator orderByComparator)
                                    throws SystemException
Returns the last journal folder in the ordered set where companyId = ?.

Specified by:
fetchByCompanyId_Last in interface JournalFolderPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching journal folder, or null if a matching journal folder could not be found
Throws:
SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

public JournalFolder[] findByCompanyId_PrevAndNext(long folderId,
                                                   long companyId,
                                                   OrderByComparator orderByComparator)
                                            throws NoSuchFolderException,
                                                   SystemException
Returns the journal folders before and after the current journal folder in the ordered set where companyId = ?.

Specified by:
findByCompanyId_PrevAndNext in interface JournalFolderPersistence
Parameters:
folderId - the primary key of the current journal folder
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next journal folder
Throws:
NoSuchFolderException - if a journal folder with the primary key could not be found
SystemException - if a system exception occurred

getByCompanyId_PrevAndNext

protected JournalFolder getByCompanyId_PrevAndNext(Session session,
                                                   JournalFolder journalFolder,
                                                   long companyId,
                                                   OrderByComparator orderByComparator,
                                                   boolean previous)

removeByCompanyId

public void removeByCompanyId(long companyId)
                       throws SystemException
Removes all the journal folders where companyId = ? from the database.

Specified by:
removeByCompanyId in interface JournalFolderPersistence
Parameters:
companyId - the company ID
Throws:
SystemException - if a system exception occurred

countByCompanyId

public int countByCompanyId(long companyId)
                     throws SystemException
Returns the number of journal folders where companyId = ?.

Specified by:
countByCompanyId in interface JournalFolderPersistence
Parameters:
companyId - the company ID
Returns:
the number of matching journal folders
Throws:
SystemException - if a system exception occurred

findByG_P

public List<JournalFolder> findByG_P(long groupId,
                                     long parentFolderId)
                              throws SystemException
Returns all the journal folders where groupId = ? and parentFolderId = ?.

Specified by:
findByG_P in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
Returns:
the matching journal folders
Throws:
SystemException - if a system exception occurred

findByG_P

public List<JournalFolder> findByG_P(long groupId,
                                     long parentFolderId,
                                     int start,
                                     int end)
                              throws SystemException
Returns a range of all the journal folders where groupId = ? and parentFolderId = ?.

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 JournalFolderModelImpl. 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:
findByG_P in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
Returns:
the range of matching journal folders
Throws:
SystemException - if a system exception occurred

findByG_P

public List<JournalFolder> findByG_P(long groupId,
                                     long parentFolderId,
                                     int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Returns an ordered range of all the journal folders where groupId = ? and parentFolderId = ?.

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 JournalFolderModelImpl. 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:
findByG_P in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching journal folders
Throws:
SystemException - if a system exception occurred

findByG_P_First

public JournalFolder findByG_P_First(long groupId,
                                     long parentFolderId,
                                     OrderByComparator orderByComparator)
                              throws NoSuchFolderException,
                                     SystemException
Returns the first journal folder in the ordered set where groupId = ? and parentFolderId = ?.

Specified by:
findByG_P_First in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching journal folder
Throws:
NoSuchFolderException - if a matching journal folder could not be found
SystemException - if a system exception occurred

fetchByG_P_First

public JournalFolder fetchByG_P_First(long groupId,
                                      long parentFolderId,
                                      OrderByComparator orderByComparator)
                               throws SystemException
Returns the first journal folder in the ordered set where groupId = ? and parentFolderId = ?.

Specified by:
fetchByG_P_First in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching journal folder, or null if a matching journal folder could not be found
Throws:
SystemException - if a system exception occurred

findByG_P_Last

public JournalFolder findByG_P_Last(long groupId,
                                    long parentFolderId,
                                    OrderByComparator orderByComparator)
                             throws NoSuchFolderException,
                                    SystemException
Returns the last journal folder in the ordered set where groupId = ? and parentFolderId = ?.

Specified by:
findByG_P_Last in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching journal folder
Throws:
NoSuchFolderException - if a matching journal folder could not be found
SystemException - if a system exception occurred

fetchByG_P_Last

public JournalFolder fetchByG_P_Last(long groupId,
                                     long parentFolderId,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Returns the last journal folder in the ordered set where groupId = ? and parentFolderId = ?.

Specified by:
fetchByG_P_Last in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching journal folder, or null if a matching journal folder could not be found
Throws:
SystemException - if a system exception occurred

findByG_P_PrevAndNext

public JournalFolder[] findByG_P_PrevAndNext(long folderId,
                                             long groupId,
                                             long parentFolderId,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchFolderException,
                                             SystemException
Returns the journal folders before and after the current journal folder in the ordered set where groupId = ? and parentFolderId = ?.

Specified by:
findByG_P_PrevAndNext in interface JournalFolderPersistence
Parameters:
folderId - the primary key of the current journal folder
groupId - the group ID
parentFolderId - the parent folder ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next journal folder
Throws:
NoSuchFolderException - if a journal folder with the primary key could not be found
SystemException - if a system exception occurred

getByG_P_PrevAndNext

protected JournalFolder getByG_P_PrevAndNext(Session session,
                                             JournalFolder journalFolder,
                                             long groupId,
                                             long parentFolderId,
                                             OrderByComparator orderByComparator,
                                             boolean previous)

filterFindByG_P

public List<JournalFolder> filterFindByG_P(long groupId,
                                           long parentFolderId)
                                    throws SystemException
Returns all the journal folders that the user has permission to view where groupId = ? and parentFolderId = ?.

Specified by:
filterFindByG_P in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
Returns:
the matching journal folders that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_P

public List<JournalFolder> filterFindByG_P(long groupId,
                                           long parentFolderId,
                                           int start,
                                           int end)
                                    throws SystemException
Returns a range of all the journal folders that the user has permission to view where groupId = ? and parentFolderId = ?.

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 JournalFolderModelImpl. 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:
filterFindByG_P in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
Returns:
the range of matching journal folders that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_P

public List<JournalFolder> filterFindByG_P(long groupId,
                                           long parentFolderId,
                                           int start,
                                           int end,
                                           OrderByComparator orderByComparator)
                                    throws SystemException
Returns an ordered range of all the journal folders that the user has permissions to view where groupId = ? and parentFolderId = ?.

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 JournalFolderModelImpl. 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:
filterFindByG_P in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching journal folders that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_P_PrevAndNext

public JournalFolder[] filterFindByG_P_PrevAndNext(long folderId,
                                                   long groupId,
                                                   long parentFolderId,
                                                   OrderByComparator orderByComparator)
                                            throws NoSuchFolderException,
                                                   SystemException
Returns the journal folders before and after the current journal folder in the ordered set of journal folders that the user has permission to view where groupId = ? and parentFolderId = ?.

Specified by:
filterFindByG_P_PrevAndNext in interface JournalFolderPersistence
Parameters:
folderId - the primary key of the current journal folder
groupId - the group ID
parentFolderId - the parent folder ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next journal folder
Throws:
NoSuchFolderException - if a journal folder with the primary key could not be found
SystemException - if a system exception occurred

filterGetByG_P_PrevAndNext

protected JournalFolder filterGetByG_P_PrevAndNext(Session session,
                                                   JournalFolder journalFolder,
                                                   long groupId,
                                                   long parentFolderId,
                                                   OrderByComparator orderByComparator,
                                                   boolean previous)

removeByG_P

public void removeByG_P(long groupId,
                        long parentFolderId)
                 throws SystemException
Removes all the journal folders where groupId = ? and parentFolderId = ? from the database.

Specified by:
removeByG_P in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
Throws:
SystemException - if a system exception occurred

countByG_P

public int countByG_P(long groupId,
                      long parentFolderId)
               throws SystemException
Returns the number of journal folders where groupId = ? and parentFolderId = ?.

Specified by:
countByG_P in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
Returns:
the number of matching journal folders
Throws:
SystemException - if a system exception occurred

filterCountByG_P

public int filterCountByG_P(long groupId,
                            long parentFolderId)
                     throws SystemException
Returns the number of journal folders that the user has permission to view where groupId = ? and parentFolderId = ?.

Specified by:
filterCountByG_P in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
Returns:
the number of matching journal folders that the user has permission to view
Throws:
SystemException - if a system exception occurred

findByG_N

public JournalFolder findByG_N(long groupId,
                               String name)
                        throws NoSuchFolderException,
                               SystemException
Returns the journal folder where groupId = ? and name = ? or throws a NoSuchFolderException if it could not be found.

Specified by:
findByG_N in interface JournalFolderPersistence
Parameters:
groupId - the group ID
name - the name
Returns:
the matching journal folder
Throws:
NoSuchFolderException - if a matching journal folder could not be found
SystemException - if a system exception occurred

fetchByG_N

public JournalFolder fetchByG_N(long groupId,
                                String name)
                         throws SystemException
Returns the journal folder where groupId = ? and name = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByG_N in interface JournalFolderPersistence
Parameters:
groupId - the group ID
name - the name
Returns:
the matching journal folder, or null if a matching journal folder could not be found
Throws:
SystemException - if a system exception occurred

fetchByG_N

public JournalFolder fetchByG_N(long groupId,
                                String name,
                                boolean retrieveFromCache)
                         throws SystemException
Returns the journal folder where groupId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByG_N in interface JournalFolderPersistence
Parameters:
groupId - the group ID
name - the name
retrieveFromCache - whether to use the finder cache
Returns:
the matching journal folder, or null if a matching journal folder could not be found
Throws:
SystemException - if a system exception occurred

removeByG_N

public JournalFolder removeByG_N(long groupId,
                                 String name)
                          throws NoSuchFolderException,
                                 SystemException
Removes the journal folder where groupId = ? and name = ? from the database.

Specified by:
removeByG_N in interface JournalFolderPersistence
Parameters:
groupId - the group ID
name - the name
Returns:
the journal folder that was removed
Throws:
SystemException - if a system exception occurred
NoSuchFolderException

countByG_N

public int countByG_N(long groupId,
                      String name)
               throws SystemException
Returns the number of journal folders where groupId = ? and name = ?.

Specified by:
countByG_N in interface JournalFolderPersistence
Parameters:
groupId - the group ID
name - the name
Returns:
the number of matching journal folders
Throws:
SystemException - if a system exception occurred

findByC_NotS

public List<JournalFolder> findByC_NotS(long companyId,
                                        int status)
                                 throws SystemException
Returns all the journal folders where companyId = ? and status ≠ ?.

Specified by:
findByC_NotS in interface JournalFolderPersistence
Parameters:
companyId - the company ID
status - the status
Returns:
the matching journal folders
Throws:
SystemException - if a system exception occurred

findByC_NotS

public List<JournalFolder> findByC_NotS(long companyId,
                                        int status,
                                        int start,
                                        int end)
                                 throws SystemException
Returns a range of all the journal folders where companyId = ? and status ≠ ?.

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 JournalFolderModelImpl. 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:
findByC_NotS in interface JournalFolderPersistence
Parameters:
companyId - the company ID
status - the status
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
Returns:
the range of matching journal folders
Throws:
SystemException - if a system exception occurred

findByC_NotS

public List<JournalFolder> findByC_NotS(long companyId,
                                        int status,
                                        int start,
                                        int end,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Returns an ordered range of all the journal folders where companyId = ? and status ≠ ?.

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 JournalFolderModelImpl. 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:
findByC_NotS in interface JournalFolderPersistence
Parameters:
companyId - the company ID
status - the status
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching journal folders
Throws:
SystemException - if a system exception occurred

findByC_NotS_First

public JournalFolder findByC_NotS_First(long companyId,
                                        int status,
                                        OrderByComparator orderByComparator)
                                 throws NoSuchFolderException,
                                        SystemException
Returns the first journal folder in the ordered set where companyId = ? and status ≠ ?.

Specified by:
findByC_NotS_First in interface JournalFolderPersistence
Parameters:
companyId - the company ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching journal folder
Throws:
NoSuchFolderException - if a matching journal folder could not be found
SystemException - if a system exception occurred

fetchByC_NotS_First

public JournalFolder fetchByC_NotS_First(long companyId,
                                         int status,
                                         OrderByComparator orderByComparator)
                                  throws SystemException
Returns the first journal folder in the ordered set where companyId = ? and status ≠ ?.

Specified by:
fetchByC_NotS_First in interface JournalFolderPersistence
Parameters:
companyId - the company ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching journal folder, or null if a matching journal folder could not be found
Throws:
SystemException - if a system exception occurred

findByC_NotS_Last

public JournalFolder findByC_NotS_Last(long companyId,
                                       int status,
                                       OrderByComparator orderByComparator)
                                throws NoSuchFolderException,
                                       SystemException
Returns the last journal folder in the ordered set where companyId = ? and status ≠ ?.

Specified by:
findByC_NotS_Last in interface JournalFolderPersistence
Parameters:
companyId - the company ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching journal folder
Throws:
NoSuchFolderException - if a matching journal folder could not be found
SystemException - if a system exception occurred

fetchByC_NotS_Last

public JournalFolder fetchByC_NotS_Last(long companyId,
                                        int status,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Returns the last journal folder in the ordered set where companyId = ? and status ≠ ?.

Specified by:
fetchByC_NotS_Last in interface JournalFolderPersistence
Parameters:
companyId - the company ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching journal folder, or null if a matching journal folder could not be found
Throws:
SystemException - if a system exception occurred

findByC_NotS_PrevAndNext

public JournalFolder[] findByC_NotS_PrevAndNext(long folderId,
                                                long companyId,
                                                int status,
                                                OrderByComparator orderByComparator)
                                         throws NoSuchFolderException,
                                                SystemException
Returns the journal folders before and after the current journal folder in the ordered set where companyId = ? and status ≠ ?.

Specified by:
findByC_NotS_PrevAndNext in interface JournalFolderPersistence
Parameters:
folderId - the primary key of the current journal folder
companyId - the company ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next journal folder
Throws:
NoSuchFolderException - if a journal folder with the primary key could not be found
SystemException - if a system exception occurred

getByC_NotS_PrevAndNext

protected JournalFolder getByC_NotS_PrevAndNext(Session session,
                                                JournalFolder journalFolder,
                                                long companyId,
                                                int status,
                                                OrderByComparator orderByComparator,
                                                boolean previous)

removeByC_NotS

public void removeByC_NotS(long companyId,
                           int status)
                    throws SystemException
Removes all the journal folders where companyId = ? and status ≠ ? from the database.

Specified by:
removeByC_NotS in interface JournalFolderPersistence
Parameters:
companyId - the company ID
status - the status
Throws:
SystemException - if a system exception occurred

countByC_NotS

public int countByC_NotS(long companyId,
                         int status)
                  throws SystemException
Returns the number of journal folders where companyId = ? and status ≠ ?.

Specified by:
countByC_NotS in interface JournalFolderPersistence
Parameters:
companyId - the company ID
status - the status
Returns:
the number of matching journal folders
Throws:
SystemException - if a system exception occurred

findByF_C_P_NotS

public List<JournalFolder> findByF_C_P_NotS(long folderId,
                                            long companyId,
                                            long parentFolderId,
                                            int status)
                                     throws SystemException
Returns all the journal folders where folderId > ? and companyId = ? and parentFolderId = ? and status ≠ ?.

Specified by:
findByF_C_P_NotS in interface JournalFolderPersistence
Parameters:
folderId - the folder ID
companyId - the company ID
parentFolderId - the parent folder ID
status - the status
Returns:
the matching journal folders
Throws:
SystemException - if a system exception occurred

findByF_C_P_NotS

public List<JournalFolder> findByF_C_P_NotS(long folderId,
                                            long companyId,
                                            long parentFolderId,
                                            int status,
                                            int start,
                                            int end)
                                     throws SystemException
Returns a range of all the journal folders where folderId > ? and companyId = ? and parentFolderId = ? and status ≠ ?.

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 JournalFolderModelImpl. 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:
findByF_C_P_NotS in interface JournalFolderPersistence
Parameters:
folderId - the folder ID
companyId - the company ID
parentFolderId - the parent folder ID
status - the status
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
Returns:
the range of matching journal folders
Throws:
SystemException - if a system exception occurred

findByF_C_P_NotS

public List<JournalFolder> findByF_C_P_NotS(long folderId,
                                            long companyId,
                                            long parentFolderId,
                                            int status,
                                            int start,
                                            int end,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Returns an ordered range of all the journal folders where folderId > ? and companyId = ? and parentFolderId = ? and status ≠ ?.

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 JournalFolderModelImpl. 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:
findByF_C_P_NotS in interface JournalFolderPersistence
Parameters:
folderId - the folder ID
companyId - the company ID
parentFolderId - the parent folder ID
status - the status
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching journal folders
Throws:
SystemException - if a system exception occurred

findByF_C_P_NotS_First

public JournalFolder findByF_C_P_NotS_First(long folderId,
                                            long companyId,
                                            long parentFolderId,
                                            int status,
                                            OrderByComparator orderByComparator)
                                     throws NoSuchFolderException,
                                            SystemException
Returns the first journal folder in the ordered set where folderId > ? and companyId = ? and parentFolderId = ? and status ≠ ?.

Specified by:
findByF_C_P_NotS_First in interface JournalFolderPersistence
Parameters:
folderId - the folder ID
companyId - the company ID
parentFolderId - the parent folder ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching journal folder
Throws:
NoSuchFolderException - if a matching journal folder could not be found
SystemException - if a system exception occurred

fetchByF_C_P_NotS_First

public JournalFolder fetchByF_C_P_NotS_First(long folderId,
                                             long companyId,
                                             long parentFolderId,
                                             int status,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Returns the first journal folder in the ordered set where folderId > ? and companyId = ? and parentFolderId = ? and status ≠ ?.

Specified by:
fetchByF_C_P_NotS_First in interface JournalFolderPersistence
Parameters:
folderId - the folder ID
companyId - the company ID
parentFolderId - the parent folder ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching journal folder, or null if a matching journal folder could not be found
Throws:
SystemException - if a system exception occurred

findByF_C_P_NotS_Last

public JournalFolder findByF_C_P_NotS_Last(long folderId,
                                           long companyId,
                                           long parentFolderId,
                                           int status,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchFolderException,
                                           SystemException
Returns the last journal folder in the ordered set where folderId > ? and companyId = ? and parentFolderId = ? and status ≠ ?.

Specified by:
findByF_C_P_NotS_Last in interface JournalFolderPersistence
Parameters:
folderId - the folder ID
companyId - the company ID
parentFolderId - the parent folder ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching journal folder
Throws:
NoSuchFolderException - if a matching journal folder could not be found
SystemException - if a system exception occurred

fetchByF_C_P_NotS_Last

public JournalFolder fetchByF_C_P_NotS_Last(long folderId,
                                            long companyId,
                                            long parentFolderId,
                                            int status,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Returns the last journal folder in the ordered set where folderId > ? and companyId = ? and parentFolderId = ? and status ≠ ?.

Specified by:
fetchByF_C_P_NotS_Last in interface JournalFolderPersistence
Parameters:
folderId - the folder ID
companyId - the company ID
parentFolderId - the parent folder ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching journal folder, or null if a matching journal folder could not be found
Throws:
SystemException - if a system exception occurred

removeByF_C_P_NotS

public void removeByF_C_P_NotS(long folderId,
                               long companyId,
                               long parentFolderId,
                               int status)
                        throws SystemException
Removes all the journal folders where folderId > ? and companyId = ? and parentFolderId = ? and status ≠ ? from the database.

Specified by:
removeByF_C_P_NotS in interface JournalFolderPersistence
Parameters:
folderId - the folder ID
companyId - the company ID
parentFolderId - the parent folder ID
status - the status
Throws:
SystemException - if a system exception occurred

countByF_C_P_NotS

public int countByF_C_P_NotS(long folderId,
                             long companyId,
                             long parentFolderId,
                             int status)
                      throws SystemException
Returns the number of journal folders where folderId > ? and companyId = ? and parentFolderId = ? and status ≠ ?.

Specified by:
countByF_C_P_NotS in interface JournalFolderPersistence
Parameters:
folderId - the folder ID
companyId - the company ID
parentFolderId - the parent folder ID
status - the status
Returns:
the number of matching journal folders
Throws:
SystemException - if a system exception occurred

findByG_P_N

public JournalFolder findByG_P_N(long groupId,
                                 long parentFolderId,
                                 String name)
                          throws NoSuchFolderException,
                                 SystemException
Returns the journal folder where groupId = ? and parentFolderId = ? and name = ? or throws a NoSuchFolderException if it could not be found.

Specified by:
findByG_P_N in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
name - the name
Returns:
the matching journal folder
Throws:
NoSuchFolderException - if a matching journal folder could not be found
SystemException - if a system exception occurred

fetchByG_P_N

public JournalFolder fetchByG_P_N(long groupId,
                                  long parentFolderId,
                                  String name)
                           throws SystemException
Returns the journal folder where groupId = ? and parentFolderId = ? and name = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByG_P_N in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
name - the name
Returns:
the matching journal folder, or null if a matching journal folder could not be found
Throws:
SystemException - if a system exception occurred

fetchByG_P_N

public JournalFolder fetchByG_P_N(long groupId,
                                  long parentFolderId,
                                  String name,
                                  boolean retrieveFromCache)
                           throws SystemException
Returns the journal folder where groupId = ? and parentFolderId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByG_P_N in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
name - the name
retrieveFromCache - whether to use the finder cache
Returns:
the matching journal folder, or null if a matching journal folder could not be found
Throws:
SystemException - if a system exception occurred

removeByG_P_N

public JournalFolder removeByG_P_N(long groupId,
                                   long parentFolderId,
                                   String name)
                            throws NoSuchFolderException,
                                   SystemException
Removes the journal folder where groupId = ? and parentFolderId = ? and name = ? from the database.

Specified by:
removeByG_P_N in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
name - the name
Returns:
the journal folder that was removed
Throws:
SystemException - if a system exception occurred
NoSuchFolderException

countByG_P_N

public int countByG_P_N(long groupId,
                        long parentFolderId,
                        String name)
                 throws SystemException
Returns the number of journal folders where groupId = ? and parentFolderId = ? and name = ?.

Specified by:
countByG_P_N in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
name - the name
Returns:
the number of matching journal folders
Throws:
SystemException - if a system exception occurred

findByG_P_S

public List<JournalFolder> findByG_P_S(long groupId,
                                       long parentFolderId,
                                       int status)
                                throws SystemException
Returns all the journal folders where groupId = ? and parentFolderId = ? and status = ?.

Specified by:
findByG_P_S in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
Returns:
the matching journal folders
Throws:
SystemException - if a system exception occurred

findByG_P_S

public List<JournalFolder> findByG_P_S(long groupId,
                                       long parentFolderId,
                                       int status,
                                       int start,
                                       int end)
                                throws SystemException
Returns a range of all the journal folders where groupId = ? and parentFolderId = ? and status = ?.

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 JournalFolderModelImpl. 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:
findByG_P_S in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
Returns:
the range of matching journal folders
Throws:
SystemException - if a system exception occurred

findByG_P_S

public List<JournalFolder> findByG_P_S(long groupId,
                                       long parentFolderId,
                                       int status,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns an ordered range of all the journal folders where groupId = ? and parentFolderId = ? and status = ?.

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 JournalFolderModelImpl. 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:
findByG_P_S in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching journal folders
Throws:
SystemException - if a system exception occurred

findByG_P_S_First

public JournalFolder findByG_P_S_First(long groupId,
                                       long parentFolderId,
                                       int status,
                                       OrderByComparator orderByComparator)
                                throws NoSuchFolderException,
                                       SystemException
Returns the first journal folder in the ordered set where groupId = ? and parentFolderId = ? and status = ?.

Specified by:
findByG_P_S_First in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching journal folder
Throws:
NoSuchFolderException - if a matching journal folder could not be found
SystemException - if a system exception occurred

fetchByG_P_S_First

public JournalFolder fetchByG_P_S_First(long groupId,
                                        long parentFolderId,
                                        int status,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Returns the first journal folder in the ordered set where groupId = ? and parentFolderId = ? and status = ?.

Specified by:
fetchByG_P_S_First in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching journal folder, or null if a matching journal folder could not be found
Throws:
SystemException - if a system exception occurred

findByG_P_S_Last

public JournalFolder findByG_P_S_Last(long groupId,
                                      long parentFolderId,
                                      int status,
                                      OrderByComparator orderByComparator)
                               throws NoSuchFolderException,
                                      SystemException
Returns the last journal folder in the ordered set where groupId = ? and parentFolderId = ? and status = ?.

Specified by:
findByG_P_S_Last in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching journal folder
Throws:
NoSuchFolderException - if a matching journal folder could not be found
SystemException - if a system exception occurred

fetchByG_P_S_Last

public JournalFolder fetchByG_P_S_Last(long groupId,
                                       long parentFolderId,
                                       int status,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns the last journal folder in the ordered set where groupId = ? and parentFolderId = ? and status = ?.

Specified by:
fetchByG_P_S_Last in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching journal folder, or null if a matching journal folder could not be found
Throws:
SystemException - if a system exception occurred

findByG_P_S_PrevAndNext

public JournalFolder[] findByG_P_S_PrevAndNext(long folderId,
                                               long groupId,
                                               long parentFolderId,
                                               int status,
                                               OrderByComparator orderByComparator)
                                        throws NoSuchFolderException,
                                               SystemException
Returns the journal folders before and after the current journal folder in the ordered set where groupId = ? and parentFolderId = ? and status = ?.

Specified by:
findByG_P_S_PrevAndNext in interface JournalFolderPersistence
Parameters:
folderId - the primary key of the current journal folder
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next journal folder
Throws:
NoSuchFolderException - if a journal folder with the primary key could not be found
SystemException - if a system exception occurred

getByG_P_S_PrevAndNext

protected JournalFolder getByG_P_S_PrevAndNext(Session session,
                                               JournalFolder journalFolder,
                                               long groupId,
                                               long parentFolderId,
                                               int status,
                                               OrderByComparator orderByComparator,
                                               boolean previous)

filterFindByG_P_S

public List<JournalFolder> filterFindByG_P_S(long groupId,
                                             long parentFolderId,
                                             int status)
                                      throws SystemException
Returns all the journal folders that the user has permission to view where groupId = ? and parentFolderId = ? and status = ?.

Specified by:
filterFindByG_P_S in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
Returns:
the matching journal folders that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_P_S

public List<JournalFolder> filterFindByG_P_S(long groupId,
                                             long parentFolderId,
                                             int status,
                                             int start,
                                             int end)
                                      throws SystemException
Returns a range of all the journal folders that the user has permission to view where groupId = ? and parentFolderId = ? and status = ?.

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 JournalFolderModelImpl. 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:
filterFindByG_P_S in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
Returns:
the range of matching journal folders that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_P_S

public List<JournalFolder> filterFindByG_P_S(long groupId,
                                             long parentFolderId,
                                             int status,
                                             int start,
                                             int end,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Returns an ordered range of all the journal folders that the user has permissions to view where groupId = ? and parentFolderId = ? and status = ?.

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 JournalFolderModelImpl. 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:
filterFindByG_P_S in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching journal folders that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_P_S_PrevAndNext

public JournalFolder[] filterFindByG_P_S_PrevAndNext(long folderId,
                                                     long groupId,
                                                     long parentFolderId,
                                                     int status,
                                                     OrderByComparator orderByComparator)
                                              throws NoSuchFolderException,
                                                     SystemException
Returns the journal folders before and after the current journal folder in the ordered set of journal folders that the user has permission to view where groupId = ? and parentFolderId = ? and status = ?.

Specified by:
filterFindByG_P_S_PrevAndNext in interface JournalFolderPersistence
Parameters:
folderId - the primary key of the current journal folder
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next journal folder
Throws:
NoSuchFolderException - if a journal folder with the primary key could not be found
SystemException - if a system exception occurred

filterGetByG_P_S_PrevAndNext

protected JournalFolder filterGetByG_P_S_PrevAndNext(Session session,
                                                     JournalFolder journalFolder,
                                                     long groupId,
                                                     long parentFolderId,
                                                     int status,
                                                     OrderByComparator orderByComparator,
                                                     boolean previous)

removeByG_P_S

public void removeByG_P_S(long groupId,
                          long parentFolderId,
                          int status)
                   throws SystemException
Removes all the journal folders where groupId = ? and parentFolderId = ? and status = ? from the database.

Specified by:
removeByG_P_S in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
Throws:
SystemException - if a system exception occurred

countByG_P_S

public int countByG_P_S(long groupId,
                        long parentFolderId,
                        int status)
                 throws SystemException
Returns the number of journal folders where groupId = ? and parentFolderId = ? and status = ?.

Specified by:
countByG_P_S in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
Returns:
the number of matching journal folders
Throws:
SystemException - if a system exception occurred

filterCountByG_P_S

public int filterCountByG_P_S(long groupId,
                              long parentFolderId,
                              int status)
                       throws SystemException
Returns the number of journal folders that the user has permission to view where groupId = ? and parentFolderId = ? and status = ?.

Specified by:
filterCountByG_P_S in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
Returns:
the number of matching journal folders that the user has permission to view
Throws:
SystemException - if a system exception occurred

findByG_P_NotS

public List<JournalFolder> findByG_P_NotS(long groupId,
                                          long parentFolderId,
                                          int status)
                                   throws SystemException
Returns all the journal folders where groupId = ? and parentFolderId = ? and status ≠ ?.

Specified by:
findByG_P_NotS in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
Returns:
the matching journal folders
Throws:
SystemException - if a system exception occurred

findByG_P_NotS

public List<JournalFolder> findByG_P_NotS(long groupId,
                                          long parentFolderId,
                                          int status,
                                          int start,
                                          int end)
                                   throws SystemException
Returns a range of all the journal folders where groupId = ? and parentFolderId = ? and status ≠ ?.

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 JournalFolderModelImpl. 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:
findByG_P_NotS in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
Returns:
the range of matching journal folders
Throws:
SystemException - if a system exception occurred

findByG_P_NotS

public List<JournalFolder> findByG_P_NotS(long groupId,
                                          long parentFolderId,
                                          int status,
                                          int start,
                                          int end,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Returns an ordered range of all the journal folders where groupId = ? and parentFolderId = ? and status ≠ ?.

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 JournalFolderModelImpl. 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:
findByG_P_NotS in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching journal folders
Throws:
SystemException - if a system exception occurred

findByG_P_NotS_First

public JournalFolder findByG_P_NotS_First(long groupId,
                                          long parentFolderId,
                                          int status,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchFolderException,
                                          SystemException
Returns the first journal folder in the ordered set where groupId = ? and parentFolderId = ? and status ≠ ?.

Specified by:
findByG_P_NotS_First in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching journal folder
Throws:
NoSuchFolderException - if a matching journal folder could not be found
SystemException - if a system exception occurred

fetchByG_P_NotS_First

public JournalFolder fetchByG_P_NotS_First(long groupId,
                                           long parentFolderId,
                                           int status,
                                           OrderByComparator orderByComparator)
                                    throws SystemException
Returns the first journal folder in the ordered set where groupId = ? and parentFolderId = ? and status ≠ ?.

Specified by:
fetchByG_P_NotS_First in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching journal folder, or null if a matching journal folder could not be found
Throws:
SystemException - if a system exception occurred

findByG_P_NotS_Last

public JournalFolder findByG_P_NotS_Last(long groupId,
                                         long parentFolderId,
                                         int status,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchFolderException,
                                         SystemException
Returns the last journal folder in the ordered set where groupId = ? and parentFolderId = ? and status ≠ ?.

Specified by:
findByG_P_NotS_Last in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching journal folder
Throws:
NoSuchFolderException - if a matching journal folder could not be found
SystemException - if a system exception occurred

fetchByG_P_NotS_Last

public JournalFolder fetchByG_P_NotS_Last(long groupId,
                                          long parentFolderId,
                                          int status,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Returns the last journal folder in the ordered set where groupId = ? and parentFolderId = ? and status ≠ ?.

Specified by:
fetchByG_P_NotS_Last in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching journal folder, or null if a matching journal folder could not be found
Throws:
SystemException - if a system exception occurred

findByG_P_NotS_PrevAndNext

public JournalFolder[] findByG_P_NotS_PrevAndNext(long folderId,
                                                  long groupId,
                                                  long parentFolderId,
                                                  int status,
                                                  OrderByComparator orderByComparator)
                                           throws NoSuchFolderException,
                                                  SystemException
Returns the journal folders before and after the current journal folder in the ordered set where groupId = ? and parentFolderId = ? and status ≠ ?.

Specified by:
findByG_P_NotS_PrevAndNext in interface JournalFolderPersistence
Parameters:
folderId - the primary key of the current journal folder
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next journal folder
Throws:
NoSuchFolderException - if a journal folder with the primary key could not be found
SystemException - if a system exception occurred

getByG_P_NotS_PrevAndNext

protected JournalFolder getByG_P_NotS_PrevAndNext(Session session,
                                                  JournalFolder journalFolder,
                                                  long groupId,
                                                  long parentFolderId,
                                                  int status,
                                                  OrderByComparator orderByComparator,
                                                  boolean previous)

filterFindByG_P_NotS

public List<JournalFolder> filterFindByG_P_NotS(long groupId,
                                                long parentFolderId,
                                                int status)
                                         throws SystemException
Returns all the journal folders that the user has permission to view where groupId = ? and parentFolderId = ? and status ≠ ?.

Specified by:
filterFindByG_P_NotS in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
Returns:
the matching journal folders that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_P_NotS

public List<JournalFolder> filterFindByG_P_NotS(long groupId,
                                                long parentFolderId,
                                                int status,
                                                int start,
                                                int end)
                                         throws SystemException
Returns a range of all the journal folders that the user has permission to view where groupId = ? and parentFolderId = ? and status ≠ ?.

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 JournalFolderModelImpl. 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:
filterFindByG_P_NotS in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
Returns:
the range of matching journal folders that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_P_NotS

public List<JournalFolder> filterFindByG_P_NotS(long groupId,
                                                long parentFolderId,
                                                int status,
                                                int start,
                                                int end,
                                                OrderByComparator orderByComparator)
                                         throws SystemException
Returns an ordered range of all the journal folders that the user has permissions to view where groupId = ? and parentFolderId = ? and status ≠ ?.

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 JournalFolderModelImpl. 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:
filterFindByG_P_NotS in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching journal folders that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByG_P_NotS_PrevAndNext

public JournalFolder[] filterFindByG_P_NotS_PrevAndNext(long folderId,
                                                        long groupId,
                                                        long parentFolderId,
                                                        int status,
                                                        OrderByComparator orderByComparator)
                                                 throws NoSuchFolderException,
                                                        SystemException
Returns the journal folders before and after the current journal folder in the ordered set of journal folders that the user has permission to view where groupId = ? and parentFolderId = ? and status ≠ ?.

Specified by:
filterFindByG_P_NotS_PrevAndNext in interface JournalFolderPersistence
Parameters:
folderId - the primary key of the current journal folder
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next journal folder
Throws:
NoSuchFolderException - if a journal folder with the primary key could not be found
SystemException - if a system exception occurred

filterGetByG_P_NotS_PrevAndNext

protected JournalFolder filterGetByG_P_NotS_PrevAndNext(Session session,
                                                        JournalFolder journalFolder,
                                                        long groupId,
                                                        long parentFolderId,
                                                        int status,
                                                        OrderByComparator orderByComparator,
                                                        boolean previous)

removeByG_P_NotS

public void removeByG_P_NotS(long groupId,
                             long parentFolderId,
                             int status)
                      throws SystemException
Removes all the journal folders where groupId = ? and parentFolderId = ? and status ≠ ? from the database.

Specified by:
removeByG_P_NotS in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
Throws:
SystemException - if a system exception occurred

countByG_P_NotS

public int countByG_P_NotS(long groupId,
                           long parentFolderId,
                           int status)
                    throws SystemException
Returns the number of journal folders where groupId = ? and parentFolderId = ? and status ≠ ?.

Specified by:
countByG_P_NotS in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
Returns:
the number of matching journal folders
Throws:
SystemException - if a system exception occurred

filterCountByG_P_NotS

public int filterCountByG_P_NotS(long groupId,
                                 long parentFolderId,
                                 int status)
                          throws SystemException
Returns the number of journal folders that the user has permission to view where groupId = ? and parentFolderId = ? and status ≠ ?.

Specified by:
filterCountByG_P_NotS in interface JournalFolderPersistence
Parameters:
groupId - the group ID
parentFolderId - the parent folder ID
status - the status
Returns:
the number of matching journal folders that the user has permission to view
Throws:
SystemException - if a system exception occurred

cacheResult

public void cacheResult(JournalFolder journalFolder)
Caches the journal folder in the entity cache if it is enabled.

Specified by:
cacheResult in interface JournalFolderPersistence
Parameters:
journalFolder - the journal folder

cacheResult

public void cacheResult(List<JournalFolder> journalFolders)
Caches the journal folders in the entity cache if it is enabled.

Specified by:
cacheResult in interface JournalFolderPersistence
Parameters:
journalFolders - the journal folders

clearCache

public void clearCache()
Clears the cache for all journal folders.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<JournalFolder>
Overrides:
clearCache in class BasePersistenceImpl<JournalFolder>

clearCache

public void clearCache(JournalFolder journalFolder)
Clears the cache for the journal folder.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<JournalFolder>
Overrides:
clearCache in class BasePersistenceImpl<JournalFolder>
Parameters:
journalFolder - the instance of this model to clear the cache for

clearCache

public void clearCache(List<JournalFolder> journalFolders)
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<JournalFolder>
Overrides:
clearCache in class BasePersistenceImpl<JournalFolder>
Parameters:
journalFolders - the List instances of this model to clear the cache for

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(JournalFolder journalFolder)

clearUniqueFindersCache

protected void clearUniqueFindersCache(JournalFolder journalFolder)

create

public JournalFolder create(long folderId)
Creates a new journal folder with the primary key. Does not add the journal folder to the database.

Specified by:
create in interface JournalFolderPersistence
Parameters:
folderId - the primary key for the new journal folder
Returns:
the new journal folder

remove

public JournalFolder remove(long folderId)
                     throws NoSuchFolderException,
                            SystemException
Removes the journal folder with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface JournalFolderPersistence
Parameters:
folderId - the primary key of the journal folder
Returns:
the journal folder that was removed
Throws:
NoSuchFolderException - if a journal folder with the primary key could not be found
SystemException - if a system exception occurred

remove

public JournalFolder remove(Serializable primaryKey)
                     throws NoSuchFolderException,
                            SystemException
Removes the journal folder with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<JournalFolder>
Overrides:
remove in class BasePersistenceImpl<JournalFolder>
Parameters:
primaryKey - the primary key of the journal folder
Returns:
the journal folder that was removed
Throws:
NoSuchFolderException - if a journal folder with the primary key could not be found
SystemException - if a system exception occurred

removeImpl

protected JournalFolder removeImpl(JournalFolder journalFolder)
                            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<JournalFolder>
Parameters:
journalFolder - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public JournalFolder updateImpl(JournalFolder journalFolder)
                         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 JournalFolderPersistence
Overrides:
updateImpl in class BasePersistenceImpl<JournalFolder>
Parameters:
journalFolder - the model instance to update
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected JournalFolder toUnwrappedModel(JournalFolder journalFolder)

findByPrimaryKey

public JournalFolder findByPrimaryKey(Serializable primaryKey)
                               throws NoSuchFolderException,
                                      SystemException
Returns the journal folder with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<JournalFolder>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<JournalFolder>
Parameters:
primaryKey - the primary key of the journal folder
Returns:
the journal folder
Throws:
NoSuchFolderException - if a journal folder with the primary key could not be found
SystemException - if a system exception occurred

findByPrimaryKey

public JournalFolder findByPrimaryKey(long folderId)
                               throws NoSuchFolderException,
                                      SystemException
Returns the journal folder with the primary key or throws a NoSuchFolderException if it could not be found.

Specified by:
findByPrimaryKey in interface JournalFolderPersistence
Parameters:
folderId - the primary key of the journal folder
Returns:
the journal folder
Throws:
NoSuchFolderException - if a journal folder with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public JournalFolder fetchByPrimaryKey(Serializable primaryKey)
                                throws SystemException
Returns the journal folder with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<JournalFolder>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<JournalFolder>
Parameters:
primaryKey - the primary key of the journal folder
Returns:
the journal folder, or null if a journal folder with the primary key could not be found
Throws:
SystemException - if a system exception occurred

fetchByPrimaryKey

public JournalFolder fetchByPrimaryKey(long folderId)
                                throws SystemException
Returns the journal folder with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface JournalFolderPersistence
Parameters:
folderId - the primary key of the journal folder
Returns:
the journal folder, or null if a journal folder with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findAll

public List<JournalFolder> findAll()
                            throws SystemException
Returns all the journal folders.

Specified by:
findAll in interface JournalFolderPersistence
Returns:
the journal folders
Throws:
SystemException - if a system exception occurred

findAll

public List<JournalFolder> findAll(int start,
                                   int end)
                            throws SystemException
Returns a range of all the journal folders.

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 JournalFolderModelImpl. 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 JournalFolderPersistence
Parameters:
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
Returns:
the range of journal folders
Throws:
SystemException - if a system exception occurred

findAll

public List<JournalFolder> findAll(int start,
                                   int end,
                                   OrderByComparator orderByComparator)
                            throws SystemException
Returns an ordered range of all the journal folders.

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 JournalFolderModelImpl. 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 JournalFolderPersistence
Parameters:
start - the lower bound of the range of journal folders
end - the upper bound of the range of journal folders (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of journal folders
Throws:
SystemException - if a system exception occurred

removeAll

public void removeAll()
               throws SystemException
Removes all the journal folders from the database.

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

countAll

public int countAll()
             throws SystemException
Returns the number of journal folders.

Specified by:
countAll in interface JournalFolderPersistence
Returns:
the number of journal folders
Throws:
SystemException - if a system exception occurred

getBadColumnNames

protected Set<String> getBadColumnNames()
Overrides:
getBadColumnNames in class BasePersistenceImpl<JournalFolder>

afterPropertiesSet

public void afterPropertiesSet()
Initializes the journal folder persistence.


destroy

public void destroy()

Liferay 6.2-ce-ga5