Liferay 6.0.5

com.liferay.portlet.asset.service.persistence
Class AssetCategoryPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<AssetCategory>
      extended by com.liferay.portlet.asset.service.persistence.AssetCategoryPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<AssetCategory>, AssetCategoryPersistence

public class AssetCategoryPersistenceImpl
extends BasePersistenceImpl<AssetCategory>
implements AssetCategoryPersistence

The persistence implementation for the asset category service.

Never modify or reference this class directly. Always use AssetCategoryUtil to access the asset category persistence. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

See Also:
AssetCategoryPersistence, AssetCategoryUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Nested Class Summary
protected  class AssetCategoryPersistenceImpl.AddAssetEntry
           
protected  class AssetCategoryPersistenceImpl.ClearAssetEntries
           
protected  class AssetCategoryPersistenceImpl.ContainsAssetEntry
           
protected  class AssetCategoryPersistenceImpl.ExpandTreeLeftCategoryId
           
protected  class AssetCategoryPersistenceImpl.ExpandTreeRightCategoryId
           
protected  class AssetCategoryPersistenceImpl.RemoveAssetEntry
           
protected  class AssetCategoryPersistenceImpl.ShrinkTreeLeftCategoryId
           
protected  class AssetCategoryPersistenceImpl.ShrinkTreeRightCategoryId
           
protected  class AssetCategoryPersistenceImpl.UpdateTree
           
 
Field Summary
protected  AssetCategoryPersistenceImpl.AddAssetEntry addAssetEntry
           
protected  AssetCategoryPersistence assetCategoryPersistence
           
protected  AssetCategoryPropertyPersistence assetCategoryPropertyPersistence
           
protected  AssetEntryPersistence assetEntryPersistence
           
protected  AssetLinkPersistence assetLinkPersistence
           
protected  AssetTagPersistence assetTagPersistence
           
protected  AssetTagPropertyPersistence assetTagPropertyPersistence
           
protected  AssetTagStatsPersistence assetTagStatsPersistence
           
protected  AssetVocabularyPersistence assetVocabularyPersistence
           
protected  AssetCategoryPersistenceImpl.ClearAssetEntries clearAssetEntries
           
protected  AssetCategoryPersistenceImpl.ContainsAssetEntry containsAssetEntry
           
protected  AssetCategoryPersistenceImpl.ExpandTreeLeftCategoryId expandTreeLeftCategoryId
           
protected  AssetCategoryPersistenceImpl.ExpandTreeRightCategoryId expandTreeRightCategoryId
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST
           
static FinderPath FINDER_PATH_CONTAINS_ASSETENTRY
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_GROUPID
           
static FinderPath FINDER_PATH_COUNT_BY_N_V
           
static FinderPath FINDER_PATH_COUNT_BY_P_N
           
static FinderPath FINDER_PATH_COUNT_BY_P_N_V
           
static FinderPath FINDER_PATH_COUNT_BY_P_V
           
static FinderPath FINDER_PATH_COUNT_BY_PARENTCATEGORYID
           
static FinderPath FINDER_PATH_COUNT_BY_UUID
           
static FinderPath FINDER_PATH_COUNT_BY_UUID_G
           
static FinderPath FINDER_PATH_COUNT_BY_VOCABULARYID
           
static FinderPath FINDER_PATH_FETCH_BY_P_N_V
           
static FinderPath FINDER_PATH_FETCH_BY_UUID_G
           
static FinderPath FINDER_PATH_FIND_ALL
           
static FinderPath FINDER_PATH_FIND_BY_GROUPID
           
static FinderPath FINDER_PATH_FIND_BY_N_V
           
static FinderPath FINDER_PATH_FIND_BY_P_N
           
static FinderPath FINDER_PATH_FIND_BY_P_V
           
static FinderPath FINDER_PATH_FIND_BY_PARENTCATEGORYID
           
static FinderPath FINDER_PATH_FIND_BY_UUID
           
static FinderPath FINDER_PATH_FIND_BY_VOCABULARYID
           
static FinderPath FINDER_PATH_GET_ASSETENTRIES
           
static FinderPath FINDER_PATH_GET_ASSETENTRIES_SIZE
           
protected  AssetCategoryPersistenceImpl.RemoveAssetEntry removeAssetEntry
           
protected  ResourcePersistence resourcePersistence
           
protected  AssetCategoryPersistenceImpl.ShrinkTreeLeftCategoryId shrinkTreeLeftCategoryId
           
protected  AssetCategoryPersistenceImpl.ShrinkTreeRightCategoryId shrinkTreeRightCategoryId
           
protected  AssetCategoryPersistenceImpl.UpdateTree updateTree
           
protected  UserPersistence userPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, 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
AssetCategoryPersistenceImpl()
           
 
Method Summary
 void addAssetEntries(long pk, List<AssetEntry> assetEntries)
          Adds an association between the asset category and the asset entries.
 void addAssetEntries(long pk, long[] assetEntryPKs)
          Adds an association between the asset category and the asset entries.
 void addAssetEntry(long pk, AssetEntry assetEntry)
          Adds an association between the asset category and the asset entry.
 void addAssetEntry(long pk, long assetEntryPK)
          Adds an association between the asset category and the asset entry.
 void afterPropertiesSet()
          Initializes the asset category persistence.
 void cacheResult(AssetCategory assetCategory)
          Caches the asset category in the entity cache if it is enabled.
 void cacheResult(List<AssetCategory> assetCategories)
          Caches the asset categories in the entity cache if it is enabled.
 void clearAssetEntries(long pk)
          Clears all associations between the asset category and its asset entries.
 void clearCache()
          Clears the cache for all asset categories.
 void clearCache(AssetCategory assetCategory)
          Clears the cache for the asset category.
 boolean containsAssetEntries(long pk)
          Determines whether the asset category has any asset entries associated with it.
 boolean containsAssetEntry(long pk, long assetEntryPK)
          Determines whether the asset entry is associated with the asset category.
 int countAll()
          Counts all the asset categories.
 int countByGroupId(long groupId)
          Counts all the asset categories where groupId = ?.
 int countByN_V(String name, long vocabularyId)
          Counts all the asset categories where name = ? and vocabularyId = ?.
 int countByP_N_V(long parentCategoryId, String name, long vocabularyId)
          Counts all the asset categories where parentCategoryId = ? and name = ? and vocabularyId = ?.
 int countByP_N(long parentCategoryId, String name)
          Counts all the asset categories where parentCategoryId = ? and name = ?.
 int countByP_V(long parentCategoryId, long vocabularyId)
          Counts all the asset categories where parentCategoryId = ? and vocabularyId = ?.
 int countByParentCategoryId(long parentCategoryId)
          Counts all the asset categories where parentCategoryId = ?.
 int countByUUID_G(String uuid, long groupId)
          Counts all the asset categories where uuid = ? and groupId = ?.
 int countByUuid(String uuid)
          Counts all the asset categories where uuid = ?.
 int countByVocabularyId(long vocabularyId)
          Counts all the asset categories where vocabularyId = ?.
protected  long countOrphanTreeNodes(long groupId)
           
 AssetCategory create(long categoryId)
          Creates a new asset category with the primary key.
protected  void expandTree(AssetCategory assetCategory)
           
 AssetCategory fetchByP_N_V(long parentCategoryId, String name, long vocabularyId)
          Finds the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? or returns null if it could not be found.
 AssetCategory fetchByP_N_V(long parentCategoryId, String name, long vocabularyId, boolean retrieveFromCache)
          Finds the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? or returns null if it could not be found, optionally using the finder cache.
 AssetCategory fetchByPrimaryKey(long categoryId)
          Finds the asset category with the primary key or returns null if it could not be found.
 AssetCategory fetchByPrimaryKey(Serializable primaryKey)
          Finds the asset category with the primary key or returns null if it could not be found.
 AssetCategory fetchByUUID_G(String uuid, long groupId)
          Finds the asset category where uuid = ? and groupId = ? or returns null if it could not be found.
 AssetCategory fetchByUUID_G(String uuid, long groupId, boolean retrieveFromCache)
          Finds the asset category where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
 int filterCountByGroupId(long groupId)
          Filters by the user's permissions and counts all the asset categories where groupId = ?.
 List<AssetCategory> filterFindByGroupId(long groupId)
          Filters by the user's permissions and finds all the asset categories where groupId = ?.
 List<AssetCategory> filterFindByGroupId(long groupId, int start, int end)
          Filters by the user's permissions and finds a range of all the asset categories where groupId = ?.
 List<AssetCategory> filterFindByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Filters by the user's permissions and finds an ordered range of all the asset categories where groupId = ?.
 List<AssetCategory> findAll()
          Finds all the asset categories.
 List<AssetCategory> findAll(int start, int end)
          Finds a range of all the asset categories.
 List<AssetCategory> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset categories.
 AssetCategory findByGroupId_First(long groupId, OrderByComparator orderByComparator)
          Finds the first asset category in the ordered set where groupId = ?.
 AssetCategory findByGroupId_Last(long groupId, OrderByComparator orderByComparator)
          Finds the last asset category in the ordered set where groupId = ?.
 AssetCategory[] findByGroupId_PrevAndNext(long categoryId, long groupId, OrderByComparator orderByComparator)
          Finds the asset categories before and after the current asset category in the ordered set where groupId = ?.
 List<AssetCategory> findByGroupId(long groupId)
          Finds all the asset categories where groupId = ?.
 List<AssetCategory> findByGroupId(long groupId, int start, int end)
          Finds a range of all the asset categories where groupId = ?.
 List<AssetCategory> findByGroupId(long groupId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset categories where groupId = ?.
 AssetCategory findByN_V_First(String name, long vocabularyId, OrderByComparator orderByComparator)
          Finds the first asset category in the ordered set where name = ? and vocabularyId = ?.
 AssetCategory findByN_V_Last(String name, long vocabularyId, OrderByComparator orderByComparator)
          Finds the last asset category in the ordered set where name = ? and vocabularyId = ?.
 AssetCategory[] findByN_V_PrevAndNext(long categoryId, String name, long vocabularyId, OrderByComparator orderByComparator)
          Finds the asset categories before and after the current asset category in the ordered set where name = ? and vocabularyId = ?.
 List<AssetCategory> findByN_V(String name, long vocabularyId)
          Finds all the asset categories where name = ? and vocabularyId = ?.
 List<AssetCategory> findByN_V(String name, long vocabularyId, int start, int end)
          Finds a range of all the asset categories where name = ? and vocabularyId = ?.
 List<AssetCategory> findByN_V(String name, long vocabularyId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset categories where name = ? and vocabularyId = ?.
 AssetCategory findByP_N_First(long parentCategoryId, String name, OrderByComparator orderByComparator)
          Finds the first asset category in the ordered set where parentCategoryId = ? and name = ?.
 AssetCategory findByP_N_Last(long parentCategoryId, String name, OrderByComparator orderByComparator)
          Finds the last asset category in the ordered set where parentCategoryId = ? and name = ?.
 AssetCategory[] findByP_N_PrevAndNext(long categoryId, long parentCategoryId, String name, OrderByComparator orderByComparator)
          Finds the asset categories before and after the current asset category in the ordered set where parentCategoryId = ? and name = ?.
 AssetCategory findByP_N_V(long parentCategoryId, String name, long vocabularyId)
          Finds the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? or throws a NoSuchCategoryException if it could not be found.
 List<AssetCategory> findByP_N(long parentCategoryId, String name)
          Finds all the asset categories where parentCategoryId = ? and name = ?.
 List<AssetCategory> findByP_N(long parentCategoryId, String name, int start, int end)
          Finds a range of all the asset categories where parentCategoryId = ? and name = ?.
 List<AssetCategory> findByP_N(long parentCategoryId, String name, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset categories where parentCategoryId = ? and name = ?.
 AssetCategory findByP_V_First(long parentCategoryId, long vocabularyId, OrderByComparator orderByComparator)
          Finds the first asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?.
 AssetCategory findByP_V_Last(long parentCategoryId, long vocabularyId, OrderByComparator orderByComparator)
          Finds the last asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?.
 AssetCategory[] findByP_V_PrevAndNext(long categoryId, long parentCategoryId, long vocabularyId, OrderByComparator orderByComparator)
          Finds the asset categories before and after the current asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?.
 List<AssetCategory> findByP_V(long parentCategoryId, long vocabularyId)
          Finds all the asset categories where parentCategoryId = ? and vocabularyId = ?.
 List<AssetCategory> findByP_V(long parentCategoryId, long vocabularyId, int start, int end)
          Finds a range of all the asset categories where parentCategoryId = ? and vocabularyId = ?.
 List<AssetCategory> findByP_V(long parentCategoryId, long vocabularyId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset categories where parentCategoryId = ? and vocabularyId = ?.
 AssetCategory findByParentCategoryId_First(long parentCategoryId, OrderByComparator orderByComparator)
          Finds the first asset category in the ordered set where parentCategoryId = ?.
 AssetCategory findByParentCategoryId_Last(long parentCategoryId, OrderByComparator orderByComparator)
          Finds the last asset category in the ordered set where parentCategoryId = ?.
 AssetCategory[] findByParentCategoryId_PrevAndNext(long categoryId, long parentCategoryId, OrderByComparator orderByComparator)
          Finds the asset categories before and after the current asset category in the ordered set where parentCategoryId = ?.
 List<AssetCategory> findByParentCategoryId(long parentCategoryId)
          Finds all the asset categories where parentCategoryId = ?.
 List<AssetCategory> findByParentCategoryId(long parentCategoryId, int start, int end)
          Finds a range of all the asset categories where parentCategoryId = ?.
 List<AssetCategory> findByParentCategoryId(long parentCategoryId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset categories where parentCategoryId = ?.
 AssetCategory findByPrimaryKey(long categoryId)
          Finds the asset category with the primary key or throws a NoSuchCategoryException if it could not be found.
 AssetCategory findByPrimaryKey(Serializable primaryKey)
          Finds the asset category with the primary key or throws a NoSuchModelException if it could not be found.
 AssetCategory findByUuid_First(String uuid, OrderByComparator orderByComparator)
          Finds the first asset category in the ordered set where uuid = ?.
 AssetCategory findByUUID_G(String uuid, long groupId)
          Finds the asset category where uuid = ? and groupId = ? or throws a NoSuchCategoryException if it could not be found.
 AssetCategory findByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Finds the last asset category in the ordered set where uuid = ?.
 AssetCategory[] findByUuid_PrevAndNext(long categoryId, String uuid, OrderByComparator orderByComparator)
          Finds the asset categories before and after the current asset category in the ordered set where uuid = ?.
 List<AssetCategory> findByUuid(String uuid)
          Finds all the asset categories where uuid = ?.
 List<AssetCategory> findByUuid(String uuid, int start, int end)
          Finds a range of all the asset categories where uuid = ?.
 List<AssetCategory> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset categories where uuid = ?.
 AssetCategory findByVocabularyId_First(long vocabularyId, OrderByComparator orderByComparator)
          Finds the first asset category in the ordered set where vocabularyId = ?.
 AssetCategory findByVocabularyId_Last(long vocabularyId, OrderByComparator orderByComparator)
          Finds the last asset category in the ordered set where vocabularyId = ?.
 AssetCategory[] findByVocabularyId_PrevAndNext(long categoryId, long vocabularyId, OrderByComparator orderByComparator)
          Finds the asset categories before and after the current asset category in the ordered set where vocabularyId = ?.
 List<AssetCategory> findByVocabularyId(long vocabularyId)
          Finds all the asset categories where vocabularyId = ?.
 List<AssetCategory> findByVocabularyId(long vocabularyId, int start, int end)
          Finds a range of all the asset categories where vocabularyId = ?.
 List<AssetCategory> findByVocabularyId(long vocabularyId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset categories where vocabularyId = ?.
 List<AssetEntry> getAssetEntries(long pk)
          Gets all the asset entries associated with the asset category.
 List<AssetEntry> getAssetEntries(long pk, int start, int end)
          Gets a range of all the asset entries associated with the asset category.
 List<AssetEntry> getAssetEntries(long pk, int start, int end, OrderByComparator orderByComparator)
          Gets an ordered range of all the asset entries associated with the asset category.
 int getAssetEntriesSize(long pk)
          Gets the number of asset entries associated with the asset category.
protected  AssetCategory getByGroupId_PrevAndNext(Session session, AssetCategory assetCategory, long groupId, OrderByComparator orderByComparator, boolean previous)
           
protected  AssetCategory getByN_V_PrevAndNext(Session session, AssetCategory assetCategory, String name, long vocabularyId, OrderByComparator orderByComparator, boolean previous)
           
protected  AssetCategory getByP_N_PrevAndNext(Session session, AssetCategory assetCategory, long parentCategoryId, String name, OrderByComparator orderByComparator, boolean previous)
           
protected  AssetCategory getByP_V_PrevAndNext(Session session, AssetCategory assetCategory, long parentCategoryId, long vocabularyId, OrderByComparator orderByComparator, boolean previous)
           
protected  AssetCategory getByParentCategoryId_PrevAndNext(Session session, AssetCategory assetCategory, long parentCategoryId, OrderByComparator orderByComparator, boolean previous)
           
protected  AssetCategory getByUuid_PrevAndNext(Session session, AssetCategory assetCategory, String uuid, OrderByComparator orderByComparator, boolean previous)
           
protected  AssetCategory getByVocabularyId_PrevAndNext(Session session, AssetCategory assetCategory, long vocabularyId, OrderByComparator orderByComparator, boolean previous)
           
protected  long getLastRightCategoryId(long groupId, long parentCategoryId)
           
 void rebuildTree(long groupId, boolean force)
          Rebuilds the asset categories tree for the scope using the modified pre-order tree traversal algorithm.
protected  long rebuildTree(long groupId, long parentCategoryId, long leftCategoryId)
           
 AssetCategory remove(long categoryId)
          Removes the asset category with the primary key from the database.
 AssetCategory remove(Serializable primaryKey)
          Removes the asset category with the primary key from the database.
 void removeAll()
          Removes all the asset categories from the database.
 void removeAssetEntries(long pk, List<AssetEntry> assetEntries)
          Removes the association between the asset category and the asset entries.
 void removeAssetEntries(long pk, long[] assetEntryPKs)
          Removes the association between the asset category and the asset entries.
 void removeAssetEntry(long pk, AssetEntry assetEntry)
          Removes the association between the asset category and the asset entry.
 void removeAssetEntry(long pk, long assetEntryPK)
          Removes the association between the asset category and the asset entry.
 void removeByGroupId(long groupId)
          Removes all the asset categories where groupId = ? from the database.
 void removeByN_V(String name, long vocabularyId)
          Removes all the asset categories where name = ? and vocabularyId = ? from the database.
 void removeByP_N_V(long parentCategoryId, String name, long vocabularyId)
          Removes the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? from the database.
 void removeByP_N(long parentCategoryId, String name)
          Removes all the asset categories where parentCategoryId = ? and name = ? from the database.
 void removeByP_V(long parentCategoryId, long vocabularyId)
          Removes all the asset categories where parentCategoryId = ? and vocabularyId = ? from the database.
 void removeByParentCategoryId(long parentCategoryId)
          Removes all the asset categories where parentCategoryId = ? from the database.
 void removeByUUID_G(String uuid, long groupId)
          Removes the asset category where uuid = ? and groupId = ? from the database.
 void removeByUuid(String uuid)
          Removes all the asset categories where uuid = ? from the database.
 void removeByVocabularyId(long vocabularyId)
          Removes all the asset categories where vocabularyId = ? from the database.
protected  AssetCategory removeImpl(AssetCategory assetCategory)
          Removes the model instance from the database.
 void setAssetEntries(long pk, List<AssetEntry> assetEntries)
          Sets the asset entries associated with the asset category, removing and adding associations as necessary.
 void setAssetEntries(long pk, long[] assetEntryPKs)
          Sets the asset entries associated with the asset category, removing and adding associations as necessary.
protected  void shrinkTree(AssetCategory assetCategory)
           
protected  AssetCategory toUnwrappedModel(AssetCategory assetCategory)
           
 AssetCategory updateImpl(AssetCategory assetCategory, boolean merge)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST

public static final String FINDER_CLASS_NAME_LIST

FINDER_PATH_FIND_BY_UUID

public static final FinderPath FINDER_PATH_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_FIND_BY_GROUPID

public static final FinderPath FINDER_PATH_FIND_BY_GROUPID

FINDER_PATH_COUNT_BY_GROUPID

public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID

FINDER_PATH_FIND_BY_PARENTCATEGORYID

public static final FinderPath FINDER_PATH_FIND_BY_PARENTCATEGORYID

FINDER_PATH_COUNT_BY_PARENTCATEGORYID

public static final FinderPath FINDER_PATH_COUNT_BY_PARENTCATEGORYID

FINDER_PATH_FIND_BY_VOCABULARYID

public static final FinderPath FINDER_PATH_FIND_BY_VOCABULARYID

FINDER_PATH_COUNT_BY_VOCABULARYID

public static final FinderPath FINDER_PATH_COUNT_BY_VOCABULARYID

FINDER_PATH_FIND_BY_P_N

public static final FinderPath FINDER_PATH_FIND_BY_P_N

FINDER_PATH_COUNT_BY_P_N

public static final FinderPath FINDER_PATH_COUNT_BY_P_N

FINDER_PATH_FIND_BY_P_V

public static final FinderPath FINDER_PATH_FIND_BY_P_V

FINDER_PATH_COUNT_BY_P_V

public static final FinderPath FINDER_PATH_COUNT_BY_P_V

FINDER_PATH_FIND_BY_N_V

public static final FinderPath FINDER_PATH_FIND_BY_N_V

FINDER_PATH_COUNT_BY_N_V

public static final FinderPath FINDER_PATH_COUNT_BY_N_V

FINDER_PATH_FETCH_BY_P_N_V

public static final FinderPath FINDER_PATH_FETCH_BY_P_N_V

FINDER_PATH_COUNT_BY_P_N_V

public static final FinderPath FINDER_PATH_COUNT_BY_P_N_V

FINDER_PATH_FIND_ALL

public static final FinderPath FINDER_PATH_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_GET_ASSETENTRIES

public static final FinderPath FINDER_PATH_GET_ASSETENTRIES

FINDER_PATH_GET_ASSETENTRIES_SIZE

public static final FinderPath FINDER_PATH_GET_ASSETENTRIES_SIZE

FINDER_PATH_CONTAINS_ASSETENTRY

public static final FinderPath FINDER_PATH_CONTAINS_ASSETENTRY

assetCategoryPersistence

@BeanReference(type=AssetCategoryPersistence.class)
protected AssetCategoryPersistence assetCategoryPersistence

assetCategoryPropertyPersistence

@BeanReference(type=AssetCategoryPropertyPersistence.class)
protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence

assetEntryPersistence

@BeanReference(type=AssetEntryPersistence.class)
protected AssetEntryPersistence assetEntryPersistence

assetLinkPersistence

@BeanReference(type=AssetLinkPersistence.class)
protected AssetLinkPersistence assetLinkPersistence

assetTagPersistence

@BeanReference(type=AssetTagPersistence.class)
protected AssetTagPersistence assetTagPersistence

assetTagPropertyPersistence

@BeanReference(type=AssetTagPropertyPersistence.class)
protected AssetTagPropertyPersistence assetTagPropertyPersistence

assetTagStatsPersistence

@BeanReference(type=AssetTagStatsPersistence.class)
protected AssetTagStatsPersistence assetTagStatsPersistence

assetVocabularyPersistence

@BeanReference(type=AssetVocabularyPersistence.class)
protected AssetVocabularyPersistence assetVocabularyPersistence

resourcePersistence

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

userPersistence

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

containsAssetEntry

protected AssetCategoryPersistenceImpl.ContainsAssetEntry containsAssetEntry

addAssetEntry

protected AssetCategoryPersistenceImpl.AddAssetEntry addAssetEntry

clearAssetEntries

protected AssetCategoryPersistenceImpl.ClearAssetEntries clearAssetEntries

removeAssetEntry

protected AssetCategoryPersistenceImpl.RemoveAssetEntry removeAssetEntry

expandTreeLeftCategoryId

protected AssetCategoryPersistenceImpl.ExpandTreeLeftCategoryId expandTreeLeftCategoryId

expandTreeRightCategoryId

protected AssetCategoryPersistenceImpl.ExpandTreeRightCategoryId expandTreeRightCategoryId

shrinkTreeLeftCategoryId

protected AssetCategoryPersistenceImpl.ShrinkTreeLeftCategoryId shrinkTreeLeftCategoryId

shrinkTreeRightCategoryId

protected AssetCategoryPersistenceImpl.ShrinkTreeRightCategoryId shrinkTreeRightCategoryId

updateTree

protected AssetCategoryPersistenceImpl.UpdateTree updateTree
Constructor Detail

AssetCategoryPersistenceImpl

public AssetCategoryPersistenceImpl()
Method Detail

cacheResult

public void cacheResult(AssetCategory assetCategory)
Caches the asset category in the entity cache if it is enabled.

Specified by:
cacheResult in interface AssetCategoryPersistence
Parameters:
assetCategory - the asset category to cache

cacheResult

public void cacheResult(List<AssetCategory> assetCategories)
Caches the asset categories in the entity cache if it is enabled.

Specified by:
cacheResult in interface AssetCategoryPersistence
Parameters:
assetCategories - the asset categories to cache

clearCache

public void clearCache()
Clears the cache for all asset categories.

The EntityCache and FinderCache are both cleared by this method.

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

clearCache

public void clearCache(AssetCategory assetCategory)
Clears the cache for the asset category.

The EntityCache and FinderCache are both cleared by this method.

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

create

public AssetCategory create(long categoryId)
Creates a new asset category with the primary key. Does not add the asset category to the database.

Specified by:
create in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key for the new asset category
Returns:
the new asset category

remove

public AssetCategory remove(Serializable primaryKey)
                     throws NoSuchModelException,
                            SystemException
Removes the asset category with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<AssetCategory>
Overrides:
remove in class BasePersistenceImpl<AssetCategory>
Parameters:
primaryKey - the primary key of the asset category to remove
Returns:
the asset category that was removed
Throws:
NoSuchModelException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred

remove

public AssetCategory remove(long categoryId)
                     throws NoSuchCategoryException,
                            SystemException
Removes the asset category with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the asset category to remove
Returns:
the asset category that was removed
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred

removeImpl

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

updateImpl

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

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

toUnwrappedModel

protected AssetCategory toUnwrappedModel(AssetCategory assetCategory)

findByPrimaryKey

public AssetCategory findByPrimaryKey(Serializable primaryKey)
                               throws NoSuchModelException,
                                      SystemException
Finds the asset category with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<AssetCategory>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<AssetCategory>
Parameters:
primaryKey - the primary key of the asset category to find
Returns:
the asset category
Throws:
NoSuchModelException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred

findByPrimaryKey

public AssetCategory findByPrimaryKey(long categoryId)
                               throws NoSuchCategoryException,
                                      SystemException
Finds the asset category with the primary key or throws a NoSuchCategoryException if it could not be found.

Specified by:
findByPrimaryKey in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the asset category to find
Returns:
the asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public AssetCategory fetchByPrimaryKey(Serializable primaryKey)
                                throws SystemException
Finds the asset category with the primary key or returns null if it could not be found.

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

fetchByPrimaryKey

public AssetCategory fetchByPrimaryKey(long categoryId)
                                throws SystemException
Finds the asset category with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the asset category to find
Returns:
the asset category, or null if a asset category with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByUuid

public List<AssetCategory> findByUuid(String uuid)
                               throws SystemException
Finds all the asset categories where uuid = ?.

Specified by:
findByUuid in interface AssetCategoryPersistence
Parameters:
uuid - the uuid to search with
Returns:
the matching asset categories
Throws:
SystemException - if a system exception occurred

findByUuid

public List<AssetCategory> findByUuid(String uuid,
                                      int start,
                                      int end)
                               throws SystemException
Finds a range of all the asset categories 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.

Specified by:
findByUuid in interface AssetCategoryPersistence
Parameters:
uuid - the uuid to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
Returns:
the range of matching asset categories
Throws:
SystemException - if a system exception occurred

findByUuid

public List<AssetCategory> findByUuid(String uuid,
                                      int start,
                                      int end,
                                      OrderByComparator orderByComparator)
                               throws SystemException
Finds an ordered range of all the asset categories 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.

Specified by:
findByUuid in interface AssetCategoryPersistence
Parameters:
uuid - the uuid to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching asset categories
Throws:
SystemException - if a system exception occurred

findByUuid_First

public AssetCategory findByUuid_First(String uuid,
                                      OrderByComparator orderByComparator)
                               throws NoSuchCategoryException,
                                      SystemException
Finds the first asset category in the ordered set 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.

Specified by:
findByUuid_First in interface AssetCategoryPersistence
Parameters:
uuid - the uuid to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

findByUuid_Last

public AssetCategory findByUuid_Last(String uuid,
                                     OrderByComparator orderByComparator)
                              throws NoSuchCategoryException,
                                     SystemException
Finds the last asset category in the ordered set 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.

Specified by:
findByUuid_Last in interface AssetCategoryPersistence
Parameters:
uuid - the uuid to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

findByUuid_PrevAndNext

public AssetCategory[] findByUuid_PrevAndNext(long categoryId,
                                              String uuid,
                                              OrderByComparator orderByComparator)
                                       throws NoSuchCategoryException,
                                              SystemException
Finds the asset categories before and after the current asset category in the ordered set 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.

Specified by:
findByUuid_PrevAndNext in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the current asset category
uuid - the uuid to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred

getByUuid_PrevAndNext

protected AssetCategory getByUuid_PrevAndNext(Session session,
                                              AssetCategory assetCategory,
                                              String uuid,
                                              OrderByComparator orderByComparator,
                                              boolean previous)

findByUUID_G

public AssetCategory findByUUID_G(String uuid,
                                  long groupId)
                           throws NoSuchCategoryException,
                                  SystemException
Finds the asset category where uuid = ? and groupId = ? or throws a NoSuchCategoryException if it could not be found.

Specified by:
findByUUID_G in interface AssetCategoryPersistence
Parameters:
uuid - the uuid to search with
groupId - the group id to search with
Returns:
the matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

fetchByUUID_G

public AssetCategory fetchByUUID_G(String uuid,
                                   long groupId)
                            throws SystemException
Finds the asset category where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByUUID_G in interface AssetCategoryPersistence
Parameters:
uuid - the uuid to search with
groupId - the group id to search with
Returns:
the matching asset category, or null if a matching asset category could not be found
Throws:
SystemException - if a system exception occurred

fetchByUUID_G

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

Specified by:
fetchByUUID_G in interface AssetCategoryPersistence
Parameters:
uuid - the uuid to search with
groupId - the group id to search with
Returns:
the matching asset category, or null if a matching asset category could not be found
Throws:
SystemException - if a system exception occurred

findByGroupId

public List<AssetCategory> findByGroupId(long groupId)
                                  throws SystemException
Finds all the asset categories where groupId = ?.

Specified by:
findByGroupId in interface AssetCategoryPersistence
Parameters:
groupId - the group id to search with
Returns:
the matching asset categories
Throws:
SystemException - if a system exception occurred

findByGroupId

public List<AssetCategory> findByGroupId(long groupId,
                                         int start,
                                         int end)
                                  throws SystemException
Finds a range of all the asset categories 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.

Specified by:
findByGroupId in interface AssetCategoryPersistence
Parameters:
groupId - the group id to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
Returns:
the range of matching asset categories
Throws:
SystemException - if a system exception occurred

findByGroupId

public List<AssetCategory> findByGroupId(long groupId,
                                         int start,
                                         int end,
                                         OrderByComparator orderByComparator)
                                  throws SystemException
Finds an ordered range of all the asset categories 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.

Specified by:
findByGroupId in interface AssetCategoryPersistence
Parameters:
groupId - the group id to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching asset categories
Throws:
SystemException - if a system exception occurred

findByGroupId_First

public AssetCategory findByGroupId_First(long groupId,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchCategoryException,
                                         SystemException
Finds the first asset category in the ordered set 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.

Specified by:
findByGroupId_First in interface AssetCategoryPersistence
Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

findByGroupId_Last

public AssetCategory findByGroupId_Last(long groupId,
                                        OrderByComparator orderByComparator)
                                 throws NoSuchCategoryException,
                                        SystemException
Finds the last asset category in the ordered set 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.

Specified by:
findByGroupId_Last in interface AssetCategoryPersistence
Parameters:
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

findByGroupId_PrevAndNext

public AssetCategory[] findByGroupId_PrevAndNext(long categoryId,
                                                 long groupId,
                                                 OrderByComparator orderByComparator)
                                          throws NoSuchCategoryException,
                                                 SystemException
Finds the asset categories before and after the current asset category in the ordered set 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.

Specified by:
findByGroupId_PrevAndNext in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the current asset category
groupId - the group id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred

getByGroupId_PrevAndNext

protected AssetCategory getByGroupId_PrevAndNext(Session session,
                                                 AssetCategory assetCategory,
                                                 long groupId,
                                                 OrderByComparator orderByComparator,
                                                 boolean previous)

filterFindByGroupId

public List<AssetCategory> filterFindByGroupId(long groupId)
                                        throws SystemException
Filters by the user's permissions and finds all the asset categories where groupId = ?.

Specified by:
filterFindByGroupId in interface AssetCategoryPersistence
Parameters:
groupId - the group id to search with
Returns:
the matching asset categories that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

public List<AssetCategory> filterFindByGroupId(long groupId,
                                               int start,
                                               int end)
                                        throws SystemException
Filters by the user's permissions and finds a range of all the asset categories 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.

Specified by:
filterFindByGroupId in interface AssetCategoryPersistence
Parameters:
groupId - the group id to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
Returns:
the range of matching asset categories that the user has permission to view
Throws:
SystemException - if a system exception occurred

filterFindByGroupId

public List<AssetCategory> filterFindByGroupId(long groupId,
                                               int start,
                                               int end,
                                               OrderByComparator orderByComparator)
                                        throws SystemException
Filters by the user's permissions and finds an ordered range of all the asset categories 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.

Specified by:
filterFindByGroupId in interface AssetCategoryPersistence
Parameters:
groupId - the group id to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching asset categories that the user has permission to view
Throws:
SystemException - if a system exception occurred

findByParentCategoryId

public List<AssetCategory> findByParentCategoryId(long parentCategoryId)
                                           throws SystemException
Finds all the asset categories where parentCategoryId = ?.

Specified by:
findByParentCategoryId in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category id to search with
Returns:
the matching asset categories
Throws:
SystemException - if a system exception occurred

findByParentCategoryId

public List<AssetCategory> findByParentCategoryId(long parentCategoryId,
                                                  int start,
                                                  int end)
                                           throws SystemException
Finds a range of all the asset categories where parentCategoryId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByParentCategoryId in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category id to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
Returns:
the range of matching asset categories
Throws:
SystemException - if a system exception occurred

findByParentCategoryId

public List<AssetCategory> findByParentCategoryId(long parentCategoryId,
                                                  int start,
                                                  int end,
                                                  OrderByComparator orderByComparator)
                                           throws SystemException
Finds an ordered range of all the asset categories where parentCategoryId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByParentCategoryId in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category id to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching asset categories
Throws:
SystemException - if a system exception occurred

findByParentCategoryId_First

public AssetCategory findByParentCategoryId_First(long parentCategoryId,
                                                  OrderByComparator orderByComparator)
                                           throws NoSuchCategoryException,
                                                  SystemException
Finds the first asset category in the ordered set where parentCategoryId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByParentCategoryId_First in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

findByParentCategoryId_Last

public AssetCategory findByParentCategoryId_Last(long parentCategoryId,
                                                 OrderByComparator orderByComparator)
                                          throws NoSuchCategoryException,
                                                 SystemException
Finds the last asset category in the ordered set where parentCategoryId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByParentCategoryId_Last in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

findByParentCategoryId_PrevAndNext

public AssetCategory[] findByParentCategoryId_PrevAndNext(long categoryId,
                                                          long parentCategoryId,
                                                          OrderByComparator orderByComparator)
                                                   throws NoSuchCategoryException,
                                                          SystemException
Finds the asset categories before and after the current asset category in the ordered set where parentCategoryId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByParentCategoryId_PrevAndNext in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the current asset category
parentCategoryId - the parent category id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred

getByParentCategoryId_PrevAndNext

protected AssetCategory getByParentCategoryId_PrevAndNext(Session session,
                                                          AssetCategory assetCategory,
                                                          long parentCategoryId,
                                                          OrderByComparator orderByComparator,
                                                          boolean previous)

findByVocabularyId

public List<AssetCategory> findByVocabularyId(long vocabularyId)
                                       throws SystemException
Finds all the asset categories where vocabularyId = ?.

Specified by:
findByVocabularyId in interface AssetCategoryPersistence
Parameters:
vocabularyId - the vocabulary id to search with
Returns:
the matching asset categories
Throws:
SystemException - if a system exception occurred

findByVocabularyId

public List<AssetCategory> findByVocabularyId(long vocabularyId,
                                              int start,
                                              int end)
                                       throws SystemException
Finds a range of all the asset categories where vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByVocabularyId in interface AssetCategoryPersistence
Parameters:
vocabularyId - the vocabulary id to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
Returns:
the range of matching asset categories
Throws:
SystemException - if a system exception occurred

findByVocabularyId

public List<AssetCategory> findByVocabularyId(long vocabularyId,
                                              int start,
                                              int end,
                                              OrderByComparator orderByComparator)
                                       throws SystemException
Finds an ordered range of all the asset categories where vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByVocabularyId in interface AssetCategoryPersistence
Parameters:
vocabularyId - the vocabulary id to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching asset categories
Throws:
SystemException - if a system exception occurred

findByVocabularyId_First

public AssetCategory findByVocabularyId_First(long vocabularyId,
                                              OrderByComparator orderByComparator)
                                       throws NoSuchCategoryException,
                                              SystemException
Finds the first asset category in the ordered set where vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByVocabularyId_First in interface AssetCategoryPersistence
Parameters:
vocabularyId - the vocabulary id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

findByVocabularyId_Last

public AssetCategory findByVocabularyId_Last(long vocabularyId,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchCategoryException,
                                             SystemException
Finds the last asset category in the ordered set where vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByVocabularyId_Last in interface AssetCategoryPersistence
Parameters:
vocabularyId - the vocabulary id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

findByVocabularyId_PrevAndNext

public AssetCategory[] findByVocabularyId_PrevAndNext(long categoryId,
                                                      long vocabularyId,
                                                      OrderByComparator orderByComparator)
                                               throws NoSuchCategoryException,
                                                      SystemException
Finds the asset categories before and after the current asset category in the ordered set where vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByVocabularyId_PrevAndNext in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the current asset category
vocabularyId - the vocabulary id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred

getByVocabularyId_PrevAndNext

protected AssetCategory getByVocabularyId_PrevAndNext(Session session,
                                                      AssetCategory assetCategory,
                                                      long vocabularyId,
                                                      OrderByComparator orderByComparator,
                                                      boolean previous)

findByP_N

public List<AssetCategory> findByP_N(long parentCategoryId,
                                     String name)
                              throws SystemException
Finds all the asset categories where parentCategoryId = ? and name = ?.

Specified by:
findByP_N in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category id to search with
name - the name to search with
Returns:
the matching asset categories
Throws:
SystemException - if a system exception occurred

findByP_N

public List<AssetCategory> findByP_N(long parentCategoryId,
                                     String name,
                                     int start,
                                     int end)
                              throws SystemException
Finds a range of all the asset categories where parentCategoryId = ? and name = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByP_N in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category id to search with
name - the name to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
Returns:
the range of matching asset categories
Throws:
SystemException - if a system exception occurred

findByP_N

public List<AssetCategory> findByP_N(long parentCategoryId,
                                     String name,
                                     int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Finds an ordered range of all the asset categories where parentCategoryId = ? and name = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByP_N in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category id to search with
name - the name to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching asset categories
Throws:
SystemException - if a system exception occurred

findByP_N_First

public AssetCategory findByP_N_First(long parentCategoryId,
                                     String name,
                                     OrderByComparator orderByComparator)
                              throws NoSuchCategoryException,
                                     SystemException
Finds the first asset category in the ordered set where parentCategoryId = ? and name = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByP_N_First in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category id to search with
name - the name to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

findByP_N_Last

public AssetCategory findByP_N_Last(long parentCategoryId,
                                    String name,
                                    OrderByComparator orderByComparator)
                             throws NoSuchCategoryException,
                                    SystemException
Finds the last asset category in the ordered set where parentCategoryId = ? and name = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByP_N_Last in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category id to search with
name - the name to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

findByP_N_PrevAndNext

public AssetCategory[] findByP_N_PrevAndNext(long categoryId,
                                             long parentCategoryId,
                                             String name,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchCategoryException,
                                             SystemException
Finds the asset categories before and after the current asset category in the ordered set where parentCategoryId = ? and name = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByP_N_PrevAndNext in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the current asset category
parentCategoryId - the parent category id to search with
name - the name to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred

getByP_N_PrevAndNext

protected AssetCategory getByP_N_PrevAndNext(Session session,
                                             AssetCategory assetCategory,
                                             long parentCategoryId,
                                             String name,
                                             OrderByComparator orderByComparator,
                                             boolean previous)

findByP_V

public List<AssetCategory> findByP_V(long parentCategoryId,
                                     long vocabularyId)
                              throws SystemException
Finds all the asset categories where parentCategoryId = ? and vocabularyId = ?.

Specified by:
findByP_V in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category id to search with
vocabularyId - the vocabulary id to search with
Returns:
the matching asset categories
Throws:
SystemException - if a system exception occurred

findByP_V

public List<AssetCategory> findByP_V(long parentCategoryId,
                                     long vocabularyId,
                                     int start,
                                     int end)
                              throws SystemException
Finds a range of all the asset categories where parentCategoryId = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByP_V in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category id to search with
vocabularyId - the vocabulary id to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
Returns:
the range of matching asset categories
Throws:
SystemException - if a system exception occurred

findByP_V

public List<AssetCategory> findByP_V(long parentCategoryId,
                                     long vocabularyId,
                                     int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Finds an ordered range of all the asset categories where parentCategoryId = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByP_V in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category id to search with
vocabularyId - the vocabulary id to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching asset categories
Throws:
SystemException - if a system exception occurred

findByP_V_First

public AssetCategory findByP_V_First(long parentCategoryId,
                                     long vocabularyId,
                                     OrderByComparator orderByComparator)
                              throws NoSuchCategoryException,
                                     SystemException
Finds the first asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByP_V_First in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category id to search with
vocabularyId - the vocabulary id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

findByP_V_Last

public AssetCategory findByP_V_Last(long parentCategoryId,
                                    long vocabularyId,
                                    OrderByComparator orderByComparator)
                             throws NoSuchCategoryException,
                                    SystemException
Finds the last asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByP_V_Last in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category id to search with
vocabularyId - the vocabulary id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

findByP_V_PrevAndNext

public AssetCategory[] findByP_V_PrevAndNext(long categoryId,
                                             long parentCategoryId,
                                             long vocabularyId,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchCategoryException,
                                             SystemException
Finds the asset categories before and after the current asset category in the ordered set where parentCategoryId = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByP_V_PrevAndNext in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the current asset category
parentCategoryId - the parent category id to search with
vocabularyId - the vocabulary id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred

getByP_V_PrevAndNext

protected AssetCategory getByP_V_PrevAndNext(Session session,
                                             AssetCategory assetCategory,
                                             long parentCategoryId,
                                             long vocabularyId,
                                             OrderByComparator orderByComparator,
                                             boolean previous)

findByN_V

public List<AssetCategory> findByN_V(String name,
                                     long vocabularyId)
                              throws SystemException
Finds all the asset categories where name = ? and vocabularyId = ?.

Specified by:
findByN_V in interface AssetCategoryPersistence
Parameters:
name - the name to search with
vocabularyId - the vocabulary id to search with
Returns:
the matching asset categories
Throws:
SystemException - if a system exception occurred

findByN_V

public List<AssetCategory> findByN_V(String name,
                                     long vocabularyId,
                                     int start,
                                     int end)
                              throws SystemException
Finds a range of all the asset categories where name = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByN_V in interface AssetCategoryPersistence
Parameters:
name - the name to search with
vocabularyId - the vocabulary id to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
Returns:
the range of matching asset categories
Throws:
SystemException - if a system exception occurred

findByN_V

public List<AssetCategory> findByN_V(String name,
                                     long vocabularyId,
                                     int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Finds an ordered range of all the asset categories where name = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByN_V in interface AssetCategoryPersistence
Parameters:
name - the name to search with
vocabularyId - the vocabulary id to search with
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching asset categories
Throws:
SystemException - if a system exception occurred

findByN_V_First

public AssetCategory findByN_V_First(String name,
                                     long vocabularyId,
                                     OrderByComparator orderByComparator)
                              throws NoSuchCategoryException,
                                     SystemException
Finds the first asset category in the ordered set where name = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByN_V_First in interface AssetCategoryPersistence
Parameters:
name - the name to search with
vocabularyId - the vocabulary id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

findByN_V_Last

public AssetCategory findByN_V_Last(String name,
                                    long vocabularyId,
                                    OrderByComparator orderByComparator)
                             throws NoSuchCategoryException,
                                    SystemException
Finds the last asset category in the ordered set where name = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByN_V_Last in interface AssetCategoryPersistence
Parameters:
name - the name to search with
vocabularyId - the vocabulary id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

findByN_V_PrevAndNext

public AssetCategory[] findByN_V_PrevAndNext(long categoryId,
                                             String name,
                                             long vocabularyId,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchCategoryException,
                                             SystemException
Finds the asset categories before and after the current asset category in the ordered set where name = ? and vocabularyId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByN_V_PrevAndNext in interface AssetCategoryPersistence
Parameters:
categoryId - the primary key of the current asset category
name - the name to search with
vocabularyId - the vocabulary id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next asset category
Throws:
NoSuchCategoryException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred

getByN_V_PrevAndNext

protected AssetCategory getByN_V_PrevAndNext(Session session,
                                             AssetCategory assetCategory,
                                             String name,
                                             long vocabularyId,
                                             OrderByComparator orderByComparator,
                                             boolean previous)

findByP_N_V

public AssetCategory findByP_N_V(long parentCategoryId,
                                 String name,
                                 long vocabularyId)
                          throws NoSuchCategoryException,
                                 SystemException
Finds the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? or throws a NoSuchCategoryException if it could not be found.

Specified by:
findByP_N_V in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category id to search with
name - the name to search with
vocabularyId - the vocabulary id to search with
Returns:
the matching asset category
Throws:
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred

fetchByP_N_V

public AssetCategory fetchByP_N_V(long parentCategoryId,
                                  String name,
                                  long vocabularyId)
                           throws SystemException
Finds the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByP_N_V in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category id to search with
name - the name to search with
vocabularyId - the vocabulary id to search with
Returns:
the matching asset category, or null if a matching asset category could not be found
Throws:
SystemException - if a system exception occurred

fetchByP_N_V

public AssetCategory fetchByP_N_V(long parentCategoryId,
                                  String name,
                                  long vocabularyId,
                                  boolean retrieveFromCache)
                           throws SystemException
Finds the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByP_N_V in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category id to search with
name - the name to search with
vocabularyId - the vocabulary id to search with
Returns:
the matching asset category, or null if a matching asset category could not be found
Throws:
SystemException - if a system exception occurred

findAll

public List<AssetCategory> findAll()
                            throws SystemException
Finds all the asset categories.

Specified by:
findAll in interface AssetCategoryPersistence
Returns:
the asset categories
Throws:
SystemException - if a system exception occurred

findAll

public List<AssetCategory> findAll(int start,
                                   int end)
                            throws SystemException
Finds a range of all the asset categories.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findAll in interface AssetCategoryPersistence
Parameters:
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
Returns:
the range of asset categories
Throws:
SystemException - if a system exception occurred

findAll

public List<AssetCategory> findAll(int start,
                                   int end,
                                   OrderByComparator orderByComparator)
                            throws SystemException
Finds an ordered range of all the asset categories.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findAll in interface AssetCategoryPersistence
Parameters:
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of asset categories
Throws:
SystemException - if a system exception occurred

removeByUuid

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

Specified by:
removeByUuid in interface AssetCategoryPersistence
Parameters:
uuid - the uuid to search with
Throws:
SystemException - if a system exception occurred

removeByUUID_G

public void removeByUUID_G(String uuid,
                           long groupId)
                    throws NoSuchCategoryException,
                           SystemException
Removes the asset category where uuid = ? and groupId = ? from the database.

Specified by:
removeByUUID_G in interface AssetCategoryPersistence
Parameters:
uuid - the uuid to search with
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred
NoSuchCategoryException

removeByGroupId

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

Specified by:
removeByGroupId in interface AssetCategoryPersistence
Parameters:
groupId - the group id to search with
Throws:
SystemException - if a system exception occurred

removeByParentCategoryId

public void removeByParentCategoryId(long parentCategoryId)
                              throws SystemException
Removes all the asset categories where parentCategoryId = ? from the database.

Specified by:
removeByParentCategoryId in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category id to search with
Throws:
SystemException - if a system exception occurred

removeByVocabularyId

public void removeByVocabularyId(long vocabularyId)
                          throws SystemException
Removes all the asset categories where vocabularyId = ? from the database.

Specified by:
removeByVocabularyId in interface AssetCategoryPersistence
Parameters:
vocabularyId - the vocabulary id to search with
Throws:
SystemException - if a system exception occurred

removeByP_N

public void removeByP_N(long parentCategoryId,
                        String name)
                 throws SystemException
Removes all the asset categories where parentCategoryId = ? and name = ? from the database.

Specified by:
removeByP_N in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category id to search with
name - the name to search with
Throws:
SystemException - if a system exception occurred

removeByP_V

public void removeByP_V(long parentCategoryId,
                        long vocabularyId)
                 throws SystemException
Removes all the asset categories where parentCategoryId = ? and vocabularyId = ? from the database.

Specified by:
removeByP_V in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category id to search with
vocabularyId - the vocabulary id to search with
Throws:
SystemException - if a system exception occurred

removeByN_V

public void removeByN_V(String name,
                        long vocabularyId)
                 throws SystemException
Removes all the asset categories where name = ? and vocabularyId = ? from the database.

Specified by:
removeByN_V in interface AssetCategoryPersistence
Parameters:
name - the name to search with
vocabularyId - the vocabulary id to search with
Throws:
SystemException - if a system exception occurred

removeByP_N_V

public void removeByP_N_V(long parentCategoryId,
                          String name,
                          long vocabularyId)
                   throws NoSuchCategoryException,
                          SystemException
Removes the asset category where parentCategoryId = ? and name = ? and vocabularyId = ? from the database.

Specified by:
removeByP_N_V in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category id to search with
name - the name to search with
vocabularyId - the vocabulary id to search with
Throws:
SystemException - if a system exception occurred
NoSuchCategoryException

removeAll

public void removeAll()
               throws SystemException
Removes all the asset categories from the database.

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

countByUuid

public int countByUuid(String uuid)
                throws SystemException
Counts all the asset categories where uuid = ?.

Specified by:
countByUuid in interface AssetCategoryPersistence
Parameters:
uuid - the uuid to search with
Returns:
the number of matching asset categories
Throws:
SystemException - if a system exception occurred

countByUUID_G

public int countByUUID_G(String uuid,
                         long groupId)
                  throws SystemException
Counts all the asset categories where uuid = ? and groupId = ?.

Specified by:
countByUUID_G in interface AssetCategoryPersistence
Parameters:
uuid - the uuid to search with
groupId - the group id to search with
Returns:
the number of matching asset categories
Throws:
SystemException - if a system exception occurred

countByGroupId

public int countByGroupId(long groupId)
                   throws SystemException
Counts all the asset categories where groupId = ?.

Specified by:
countByGroupId in interface AssetCategoryPersistence
Parameters:
groupId - the group id to search with
Returns:
the number of matching asset categories
Throws:
SystemException - if a system exception occurred

filterCountByGroupId

public int filterCountByGroupId(long groupId)
                         throws SystemException
Filters by the user's permissions and counts all the asset categories where groupId = ?.

Specified by:
filterCountByGroupId in interface AssetCategoryPersistence
Parameters:
groupId - the group id to search with
Returns:
the number of matching asset categories that the user has permission to view
Throws:
SystemException - if a system exception occurred

countByParentCategoryId

public int countByParentCategoryId(long parentCategoryId)
                            throws SystemException
Counts all the asset categories where parentCategoryId = ?.

Specified by:
countByParentCategoryId in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category id to search with
Returns:
the number of matching asset categories
Throws:
SystemException - if a system exception occurred

countByVocabularyId

public int countByVocabularyId(long vocabularyId)
                        throws SystemException
Counts all the asset categories where vocabularyId = ?.

Specified by:
countByVocabularyId in interface AssetCategoryPersistence
Parameters:
vocabularyId - the vocabulary id to search with
Returns:
the number of matching asset categories
Throws:
SystemException - if a system exception occurred

countByP_N

public int countByP_N(long parentCategoryId,
                      String name)
               throws SystemException
Counts all the asset categories where parentCategoryId = ? and name = ?.

Specified by:
countByP_N in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category id to search with
name - the name to search with
Returns:
the number of matching asset categories
Throws:
SystemException - if a system exception occurred

countByP_V

public int countByP_V(long parentCategoryId,
                      long vocabularyId)
               throws SystemException
Counts all the asset categories where parentCategoryId = ? and vocabularyId = ?.

Specified by:
countByP_V in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category id to search with
vocabularyId - the vocabulary id to search with
Returns:
the number of matching asset categories
Throws:
SystemException - if a system exception occurred

countByN_V

public int countByN_V(String name,
                      long vocabularyId)
               throws SystemException
Counts all the asset categories where name = ? and vocabularyId = ?.

Specified by:
countByN_V in interface AssetCategoryPersistence
Parameters:
name - the name to search with
vocabularyId - the vocabulary id to search with
Returns:
the number of matching asset categories
Throws:
SystemException - if a system exception occurred

countByP_N_V

public int countByP_N_V(long parentCategoryId,
                        String name,
                        long vocabularyId)
                 throws SystemException
Counts all the asset categories where parentCategoryId = ? and name = ? and vocabularyId = ?.

Specified by:
countByP_N_V in interface AssetCategoryPersistence
Parameters:
parentCategoryId - the parent category id to search with
name - the name to search with
vocabularyId - the vocabulary id to search with
Returns:
the number of matching asset categories
Throws:
SystemException - if a system exception occurred

countAll

public int countAll()
             throws SystemException
Counts all the asset categories.

Specified by:
countAll in interface AssetCategoryPersistence
Returns:
the number of asset categories
Throws:
SystemException - if a system exception occurred

getAssetEntries

public List<AssetEntry> getAssetEntries(long pk)
                                 throws SystemException
Gets all the asset entries associated with the asset category.

Specified by:
getAssetEntries in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category to get the associated asset entries for
Returns:
the asset entries associated with the asset category
Throws:
SystemException - if a system exception occurred

getAssetEntries

public List<AssetEntry> getAssetEntries(long pk,
                                        int start,
                                        int end)
                                 throws SystemException
Gets a range of all the asset entries associated with the asset category.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
getAssetEntries in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category to get the associated asset entries for
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
Returns:
the range of asset entries associated with the asset category
Throws:
SystemException - if a system exception occurred

getAssetEntries

public List<AssetEntry> getAssetEntries(long pk,
                                        int start,
                                        int end,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Gets an ordered range of all the asset entries associated with the asset category.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
getAssetEntries in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category to get the associated asset entries for
start - the lower bound of the range of asset categories to return
end - the upper bound of the range of asset categories to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of asset entries associated with the asset category
Throws:
SystemException - if a system exception occurred

getAssetEntriesSize

public int getAssetEntriesSize(long pk)
                        throws SystemException
Gets the number of asset entries associated with the asset category.

Specified by:
getAssetEntriesSize in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category to get the number of associated asset entries for
Returns:
the number of asset entries associated with the asset category
Throws:
SystemException - if a system exception occurred

containsAssetEntry

public boolean containsAssetEntry(long pk,
                                  long assetEntryPK)
                           throws SystemException
Determines whether the asset entry is associated with the asset category.

Specified by:
containsAssetEntry in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category
assetEntryPK - the primary key of the asset entry
Returns:
whether the asset entry is associated with the asset category
Throws:
SystemException - if a system exception occurred

containsAssetEntries

public boolean containsAssetEntries(long pk)
                             throws SystemException
Determines whether the asset category has any asset entries associated with it.

Specified by:
containsAssetEntries in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category to check for associations with asset entries
Returns:
whether the asset category has any asset entries associated with it
Throws:
SystemException - if a system exception occurred

addAssetEntry

public void addAssetEntry(long pk,
                          long assetEntryPK)
                   throws SystemException
Adds an association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addAssetEntry in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category
assetEntryPK - the primary key of the asset entry
Throws:
SystemException - if a system exception occurred

addAssetEntry

public void addAssetEntry(long pk,
                          AssetEntry assetEntry)
                   throws SystemException
Adds an association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addAssetEntry in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category
assetEntry - the asset entry
Throws:
SystemException - if a system exception occurred

addAssetEntries

public void addAssetEntries(long pk,
                            long[] assetEntryPKs)
                     throws SystemException
Adds an association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addAssetEntries in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category
assetEntryPKs - the primary keys of the asset entries
Throws:
SystemException - if a system exception occurred

addAssetEntries

public void addAssetEntries(long pk,
                            List<AssetEntry> assetEntries)
                     throws SystemException
Adds an association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addAssetEntries in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category
assetEntries - the asset entries
Throws:
SystemException - if a system exception occurred

clearAssetEntries

public void clearAssetEntries(long pk)
                       throws SystemException
Clears all associations between the asset category and its asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
clearAssetEntries in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category to clear the associated asset entries from
Throws:
SystemException - if a system exception occurred

removeAssetEntry

public void removeAssetEntry(long pk,
                             long assetEntryPK)
                      throws SystemException
Removes the association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeAssetEntry in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category
assetEntryPK - the primary key of the asset entry
Throws:
SystemException - if a system exception occurred

removeAssetEntry

public void removeAssetEntry(long pk,
                             AssetEntry assetEntry)
                      throws SystemException
Removes the association between the asset category and the asset entry. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeAssetEntry in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category
assetEntry - the asset entry
Throws:
SystemException - if a system exception occurred

removeAssetEntries

public void removeAssetEntries(long pk,
                               long[] assetEntryPKs)
                        throws SystemException
Removes the association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeAssetEntries in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category
assetEntryPKs - the primary keys of the asset entries
Throws:
SystemException - if a system exception occurred

removeAssetEntries

public void removeAssetEntries(long pk,
                               List<AssetEntry> assetEntries)
                        throws SystemException
Removes the association between the asset category and the asset entries. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeAssetEntries in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category
assetEntries - the asset entries
Throws:
SystemException - if a system exception occurred

setAssetEntries

public void setAssetEntries(long pk,
                            long[] assetEntryPKs)
                     throws SystemException
Sets the asset entries associated with the asset category, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setAssetEntries in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category to set the associations for
assetEntryPKs - the primary keys of the asset entries to be associated with the asset category
Throws:
SystemException - if a system exception occurred

setAssetEntries

public void setAssetEntries(long pk,
                            List<AssetEntry> assetEntries)
                     throws SystemException
Sets the asset entries associated with the asset category, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setAssetEntries in interface AssetCategoryPersistence
Parameters:
pk - the primary key of the asset category to set the associations for
assetEntries - the asset entries to be associated with the asset category
Throws:
SystemException - if a system exception occurred

rebuildTree

public void rebuildTree(long groupId,
                        boolean force)
                 throws SystemException
Rebuilds the asset categories tree for the scope using the modified pre-order tree traversal algorithm.

Only call this method if the tree has become stale through operations other than normal CRUD. Under normal circumstances the tree is automatically rebuilt whenver necessary.

Specified by:
rebuildTree in interface AssetCategoryPersistence
Parameters:
groupId - the id of the scope to rebuild the tree for
force - whether to force the rebuild even if the tree is not stale
Throws:
SystemException

countOrphanTreeNodes

protected long countOrphanTreeNodes(long groupId)
                             throws SystemException
Throws:
SystemException

expandTree

protected void expandTree(AssetCategory assetCategory)
                   throws SystemException
Throws:
SystemException

getLastRightCategoryId

protected long getLastRightCategoryId(long groupId,
                                      long parentCategoryId)
                               throws SystemException
Throws:
SystemException

rebuildTree

protected long rebuildTree(long groupId,
                           long parentCategoryId,
                           long leftCategoryId)
                    throws SystemException
Throws:
SystemException

shrinkTree

protected void shrinkTree(AssetCategory assetCategory)

afterPropertiesSet

public void afterPropertiesSet()
Initializes the asset category persistence.


Liferay 6.0.5