|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<AssetCategory>
com.liferay.portlet.asset.service.persistence.AssetCategoryPersistenceImpl
public class AssetCategoryPersistenceImpl
The persistence for the asset category service.
Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regnerate this class.
Caching information and settings can be found in portal.properties
AssetCategoryPersistence,
AssetCategoryUtil| 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
|
| 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 |
|---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST
public static final FinderPath FINDER_PATH_FIND_BY_UUID
public static final FinderPath FINDER_PATH_COUNT_BY_UUID
public static final FinderPath FINDER_PATH_FETCH_BY_UUID_G
public static final FinderPath FINDER_PATH_COUNT_BY_UUID_G
public static final FinderPath FINDER_PATH_FIND_BY_GROUPID
public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID
public static final FinderPath FINDER_PATH_FIND_BY_PARENTCATEGORYID
public static final FinderPath FINDER_PATH_COUNT_BY_PARENTCATEGORYID
public static final FinderPath FINDER_PATH_FIND_BY_VOCABULARYID
public static final FinderPath FINDER_PATH_COUNT_BY_VOCABULARYID
public static final FinderPath FINDER_PATH_FIND_BY_P_N
public static final FinderPath FINDER_PATH_COUNT_BY_P_N
public static final FinderPath FINDER_PATH_FIND_BY_P_V
public static final FinderPath FINDER_PATH_COUNT_BY_P_V
public static final FinderPath FINDER_PATH_FIND_BY_N_V
public static final FinderPath FINDER_PATH_COUNT_BY_N_V
public static final FinderPath FINDER_PATH_FETCH_BY_P_N_V
public static final FinderPath FINDER_PATH_COUNT_BY_P_N_V
public static final FinderPath FINDER_PATH_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
public static final FinderPath FINDER_PATH_GET_ASSETENTRIES
public static final FinderPath FINDER_PATH_GET_ASSETENTRIES_SIZE
public static final FinderPath FINDER_PATH_CONTAINS_ASSETENTRY
@BeanReference(type=AssetCategoryPersistence.class) protected AssetCategoryPersistence assetCategoryPersistence
@BeanReference(type=AssetCategoryPropertyPersistence.class) protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence
@BeanReference(type=AssetEntryPersistence.class) protected AssetEntryPersistence assetEntryPersistence
@BeanReference(type=AssetLinkPersistence.class) protected AssetLinkPersistence assetLinkPersistence
@BeanReference(type=AssetTagPersistence.class) protected AssetTagPersistence assetTagPersistence
@BeanReference(type=AssetTagPropertyPersistence.class) protected AssetTagPropertyPersistence assetTagPropertyPersistence
@BeanReference(type=AssetTagStatsPersistence.class) protected AssetTagStatsPersistence assetTagStatsPersistence
@BeanReference(type=AssetVocabularyPersistence.class) protected AssetVocabularyPersistence assetVocabularyPersistence
@BeanReference(type=ResourcePersistence.class) protected ResourcePersistence resourcePersistence
@BeanReference(type=UserPersistence.class) protected UserPersistence userPersistence
protected AssetCategoryPersistenceImpl.ContainsAssetEntry containsAssetEntry
protected AssetCategoryPersistenceImpl.AddAssetEntry addAssetEntry
protected AssetCategoryPersistenceImpl.ClearAssetEntries clearAssetEntries
protected AssetCategoryPersistenceImpl.RemoveAssetEntry removeAssetEntry
protected AssetCategoryPersistenceImpl.ExpandTreeLeftCategoryId expandTreeLeftCategoryId
protected AssetCategoryPersistenceImpl.ExpandTreeRightCategoryId expandTreeRightCategoryId
protected AssetCategoryPersistenceImpl.ShrinkTreeLeftCategoryId shrinkTreeLeftCategoryId
protected AssetCategoryPersistenceImpl.ShrinkTreeRightCategoryId shrinkTreeRightCategoryId
protected AssetCategoryPersistenceImpl.UpdateTree updateTree
| Constructor Detail |
|---|
public AssetCategoryPersistenceImpl()
| Method Detail |
|---|
public void cacheResult(AssetCategory assetCategory)
cacheResult in interface AssetCategoryPersistenceassetCategory - the asset category to cachepublic void cacheResult(List<AssetCategory> assetCategories)
cacheResult in interface AssetCategoryPersistenceassetCategories - the asset categories to cachepublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<AssetCategory>clearCache in class BasePersistenceImpl<AssetCategory>public void clearCache(AssetCategory assetCategory)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<AssetCategory>clearCache in class BasePersistenceImpl<AssetCategory>assetCategory - the instance of this model to clear the cache forpublic AssetCategory create(long categoryId)
create in interface AssetCategoryPersistencecategoryId - the primary key for the new asset category
public AssetCategory remove(Serializable primaryKey)
throws NoSuchModelException,
SystemException
remove in interface BasePersistence<AssetCategory>remove in class BasePersistenceImpl<AssetCategory>primaryKey - the primary key of the asset category to remove
NoSuchModelException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred
public AssetCategory remove(long categoryId)
throws NoSuchCategoryException,
SystemException
remove in interface AssetCategoryPersistencecategoryId - the primary key of the asset category to remove
NoSuchCategoryException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred
protected AssetCategory removeImpl(AssetCategory assetCategory)
throws SystemException
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<AssetCategory>assetCategory - the model instance to remove
SystemException - if a system exception occurred
public AssetCategory updateImpl(AssetCategory assetCategory,
boolean merge)
throws SystemException
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface AssetCategoryPersistenceupdateImpl in class BasePersistenceImpl<AssetCategory>assetCategory - the model instance to updatemerge - 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.
SystemException - if a system exception occurredprotected AssetCategory toUnwrappedModel(AssetCategory assetCategory)
public AssetCategory findByPrimaryKey(Serializable primaryKey)
throws NoSuchModelException,
SystemException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface BasePersistence<AssetCategory>findByPrimaryKey in class BasePersistenceImpl<AssetCategory>primaryKey - the primary key of the asset category to find
NoSuchModelException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred
public AssetCategory findByPrimaryKey(long categoryId)
throws NoSuchCategoryException,
SystemException
NoSuchCategoryException if it could not be found.
findByPrimaryKey in interface AssetCategoryPersistencecategoryId - the primary key of the asset category to find
NoSuchCategoryException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred
public AssetCategory fetchByPrimaryKey(Serializable primaryKey)
throws SystemException
null if it could not be found.
fetchByPrimaryKey in interface BasePersistence<AssetCategory>fetchByPrimaryKey in class BasePersistenceImpl<AssetCategory>primaryKey - the primary key of the asset category to find
null if a asset category with the primary key could not be found
SystemException - if a system exception occurred
public AssetCategory fetchByPrimaryKey(long categoryId)
throws SystemException
null if it could not be found.
fetchByPrimaryKey in interface AssetCategoryPersistencecategoryId - the primary key of the asset category to find
null if a asset category with the primary key could not be found
SystemException - if a system exception occurred
public List<AssetCategory> findByUuid(String uuid)
throws SystemException
findByUuid in interface AssetCategoryPersistenceuuid - the uuid to search with
SystemException - if a system exception occurred
public List<AssetCategory> findByUuid(String uuid,
int start,
int end)
throws SystemException
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.
findByUuid in interface AssetCategoryPersistenceuuid - the uuid to search withstart - the lower bound of the range of asset categories to returnend - the upper bound of the range of asset categories to return (not inclusive)
SystemException - if a system exception occurred
public List<AssetCategory> findByUuid(String uuid,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
findByUuid in interface AssetCategoryPersistenceuuid - the uuid to search withstart - the lower bound of the range of asset categories to returnend - the upper bound of the range of asset categories to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public AssetCategory findByUuid_First(String uuid,
OrderByComparator orderByComparator)
throws NoSuchCategoryException,
SystemException
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.
findByUuid_First in interface AssetCategoryPersistenceuuid - the uuid to search withorderByComparator - the comparator to order the set by
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred
public AssetCategory findByUuid_Last(String uuid,
OrderByComparator orderByComparator)
throws NoSuchCategoryException,
SystemException
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.
findByUuid_Last in interface AssetCategoryPersistenceuuid - the uuid to search withorderByComparator - the comparator to order the set by
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred
public AssetCategory[] findByUuid_PrevAndNext(long categoryId,
String uuid,
OrderByComparator orderByComparator)
throws NoSuchCategoryException,
SystemException
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.
findByUuid_PrevAndNext in interface AssetCategoryPersistencecategoryId - the primary key of the current asset categoryuuid - the uuid to search withorderByComparator - the comparator to order the set by
NoSuchCategoryException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred
protected AssetCategory getByUuid_PrevAndNext(Session session,
AssetCategory assetCategory,
String uuid,
OrderByComparator orderByComparator,
boolean previous)
public AssetCategory findByUUID_G(String uuid,
long groupId)
throws NoSuchCategoryException,
SystemException
NoSuchCategoryException if it could not be found.
findByUUID_G in interface AssetCategoryPersistenceuuid - the uuid to search withgroupId - the group id to search with
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred
public AssetCategory fetchByUUID_G(String uuid,
long groupId)
throws SystemException
null if it could not be found. Uses the finder cache.
fetchByUUID_G in interface AssetCategoryPersistenceuuid - the uuid to search withgroupId - the group id to search with
null if a matching asset category could not be found
SystemException - if a system exception occurred
public AssetCategory fetchByUUID_G(String uuid,
long groupId,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
fetchByUUID_G in interface AssetCategoryPersistenceuuid - the uuid to search withgroupId - the group id to search with
null if a matching asset category could not be found
SystemException - if a system exception occurred
public List<AssetCategory> findByGroupId(long groupId)
throws SystemException
findByGroupId in interface AssetCategoryPersistencegroupId - the group id to search with
SystemException - if a system exception occurred
public List<AssetCategory> findByGroupId(long groupId,
int start,
int end)
throws SystemException
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.
findByGroupId in interface AssetCategoryPersistencegroupId - the group id to search withstart - the lower bound of the range of asset categories to returnend - the upper bound of the range of asset categories to return (not inclusive)
SystemException - if a system exception occurred
public List<AssetCategory> findByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
findByGroupId in interface AssetCategoryPersistencegroupId - the group id to search withstart - the lower bound of the range of asset categories to returnend - the upper bound of the range of asset categories to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public AssetCategory findByGroupId_First(long groupId,
OrderByComparator orderByComparator)
throws NoSuchCategoryException,
SystemException
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.
findByGroupId_First in interface AssetCategoryPersistencegroupId - the group id to search withorderByComparator - the comparator to order the set by
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred
public AssetCategory findByGroupId_Last(long groupId,
OrderByComparator orderByComparator)
throws NoSuchCategoryException,
SystemException
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.
findByGroupId_Last in interface AssetCategoryPersistencegroupId - the group id to search withorderByComparator - the comparator to order the set by
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred
public AssetCategory[] findByGroupId_PrevAndNext(long categoryId,
long groupId,
OrderByComparator orderByComparator)
throws NoSuchCategoryException,
SystemException
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.
findByGroupId_PrevAndNext in interface AssetCategoryPersistencecategoryId - the primary key of the current asset categorygroupId - the group id to search withorderByComparator - the comparator to order the set by
NoSuchCategoryException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred
protected AssetCategory getByGroupId_PrevAndNext(Session session,
AssetCategory assetCategory,
long groupId,
OrderByComparator orderByComparator,
boolean previous)
public List<AssetCategory> filterFindByGroupId(long groupId)
throws SystemException
filterFindByGroupId in interface AssetCategoryPersistencegroupId - the group id to search with
SystemException - if a system exception occurred
public List<AssetCategory> filterFindByGroupId(long groupId,
int start,
int end)
throws SystemException
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.
filterFindByGroupId in interface AssetCategoryPersistencegroupId - the group id to search withstart - the lower bound of the range of asset categories to returnend - the upper bound of the range of asset categories to return (not inclusive)
SystemException - if a system exception occurred
public List<AssetCategory> filterFindByGroupId(long groupId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
filterFindByGroupId in interface AssetCategoryPersistencegroupId - the group id to search withstart - the lower bound of the range of asset categories to returnend - the upper bound of the range of asset categories to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public List<AssetCategory> findByParentCategoryId(long parentCategoryId)
throws SystemException
findByParentCategoryId in interface AssetCategoryPersistenceparentCategoryId - the parent category id to search with
SystemException - if a system exception occurred
public List<AssetCategory> findByParentCategoryId(long parentCategoryId,
int start,
int end)
throws SystemException
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.
findByParentCategoryId in interface AssetCategoryPersistenceparentCategoryId - the parent category id to search withstart - the lower bound of the range of asset categories to returnend - the upper bound of the range of asset categories to return (not inclusive)
SystemException - if a system exception occurred
public List<AssetCategory> findByParentCategoryId(long parentCategoryId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
findByParentCategoryId in interface AssetCategoryPersistenceparentCategoryId - the parent category id to search withstart - the lower bound of the range of asset categories to returnend - the upper bound of the range of asset categories to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public AssetCategory findByParentCategoryId_First(long parentCategoryId,
OrderByComparator orderByComparator)
throws NoSuchCategoryException,
SystemException
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.
findByParentCategoryId_First in interface AssetCategoryPersistenceparentCategoryId - the parent category id to search withorderByComparator - the comparator to order the set by
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred
public AssetCategory findByParentCategoryId_Last(long parentCategoryId,
OrderByComparator orderByComparator)
throws NoSuchCategoryException,
SystemException
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.
findByParentCategoryId_Last in interface AssetCategoryPersistenceparentCategoryId - the parent category id to search withorderByComparator - the comparator to order the set by
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred
public AssetCategory[] findByParentCategoryId_PrevAndNext(long categoryId,
long parentCategoryId,
OrderByComparator orderByComparator)
throws NoSuchCategoryException,
SystemException
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.
findByParentCategoryId_PrevAndNext in interface AssetCategoryPersistencecategoryId - the primary key of the current asset categoryparentCategoryId - the parent category id to search withorderByComparator - the comparator to order the set by
NoSuchCategoryException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred
protected AssetCategory getByParentCategoryId_PrevAndNext(Session session,
AssetCategory assetCategory,
long parentCategoryId,
OrderByComparator orderByComparator,
boolean previous)
public List<AssetCategory> findByVocabularyId(long vocabularyId)
throws SystemException
findByVocabularyId in interface AssetCategoryPersistencevocabularyId - the vocabulary id to search with
SystemException - if a system exception occurred
public List<AssetCategory> findByVocabularyId(long vocabularyId,
int start,
int end)
throws SystemException
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.
findByVocabularyId in interface AssetCategoryPersistencevocabularyId - the vocabulary id to search withstart - the lower bound of the range of asset categories to returnend - the upper bound of the range of asset categories to return (not inclusive)
SystemException - if a system exception occurred
public List<AssetCategory> findByVocabularyId(long vocabularyId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
findByVocabularyId in interface AssetCategoryPersistencevocabularyId - the vocabulary id to search withstart - the lower bound of the range of asset categories to returnend - the upper bound of the range of asset categories to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public AssetCategory findByVocabularyId_First(long vocabularyId,
OrderByComparator orderByComparator)
throws NoSuchCategoryException,
SystemException
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.
findByVocabularyId_First in interface AssetCategoryPersistencevocabularyId - the vocabulary id to search withorderByComparator - the comparator to order the set by
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred
public AssetCategory findByVocabularyId_Last(long vocabularyId,
OrderByComparator orderByComparator)
throws NoSuchCategoryException,
SystemException
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.
findByVocabularyId_Last in interface AssetCategoryPersistencevocabularyId - the vocabulary id to search withorderByComparator - the comparator to order the set by
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred
public AssetCategory[] findByVocabularyId_PrevAndNext(long categoryId,
long vocabularyId,
OrderByComparator orderByComparator)
throws NoSuchCategoryException,
SystemException
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.
findByVocabularyId_PrevAndNext in interface AssetCategoryPersistencecategoryId - the primary key of the current asset categoryvocabularyId - the vocabulary id to search withorderByComparator - the comparator to order the set by
NoSuchCategoryException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred
protected AssetCategory getByVocabularyId_PrevAndNext(Session session,
AssetCategory assetCategory,
long vocabularyId,
OrderByComparator orderByComparator,
boolean previous)
public List<AssetCategory> findByP_N(long parentCategoryId,
String name)
throws SystemException
findByP_N in interface AssetCategoryPersistenceparentCategoryId - the parent category id to search withname - the name to search with
SystemException - if a system exception occurred
public List<AssetCategory> findByP_N(long parentCategoryId,
String name,
int start,
int end)
throws SystemException
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.
findByP_N in interface AssetCategoryPersistenceparentCategoryId - the parent category id to search withname - the name to search withstart - the lower bound of the range of asset categories to returnend - the upper bound of the range of asset categories to return (not inclusive)
SystemException - if a system exception occurred
public List<AssetCategory> findByP_N(long parentCategoryId,
String name,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
findByP_N in interface AssetCategoryPersistenceparentCategoryId - the parent category id to search withname - the name to search withstart - the lower bound of the range of asset categories to returnend - the upper bound of the range of asset categories to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public AssetCategory findByP_N_First(long parentCategoryId,
String name,
OrderByComparator orderByComparator)
throws NoSuchCategoryException,
SystemException
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.
findByP_N_First in interface AssetCategoryPersistenceparentCategoryId - the parent category id to search withname - the name to search withorderByComparator - the comparator to order the set by
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred
public AssetCategory findByP_N_Last(long parentCategoryId,
String name,
OrderByComparator orderByComparator)
throws NoSuchCategoryException,
SystemException
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.
findByP_N_Last in interface AssetCategoryPersistenceparentCategoryId - the parent category id to search withname - the name to search withorderByComparator - the comparator to order the set by
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred
public AssetCategory[] findByP_N_PrevAndNext(long categoryId,
long parentCategoryId,
String name,
OrderByComparator orderByComparator)
throws NoSuchCategoryException,
SystemException
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.
findByP_N_PrevAndNext in interface AssetCategoryPersistencecategoryId - the primary key of the current asset categoryparentCategoryId - the parent category id to search withname - the name to search withorderByComparator - the comparator to order the set by
NoSuchCategoryException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred
protected AssetCategory getByP_N_PrevAndNext(Session session,
AssetCategory assetCategory,
long parentCategoryId,
String name,
OrderByComparator orderByComparator,
boolean previous)
public List<AssetCategory> findByP_V(long parentCategoryId,
long vocabularyId)
throws SystemException
findByP_V in interface AssetCategoryPersistenceparentCategoryId - the parent category id to search withvocabularyId - the vocabulary id to search with
SystemException - if a system exception occurred
public List<AssetCategory> findByP_V(long parentCategoryId,
long vocabularyId,
int start,
int end)
throws SystemException
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.
findByP_V in interface AssetCategoryPersistenceparentCategoryId - the parent category id to search withvocabularyId - the vocabulary id to search withstart - the lower bound of the range of asset categories to returnend - the upper bound of the range of asset categories to return (not inclusive)
SystemException - if a system exception occurred
public List<AssetCategory> findByP_V(long parentCategoryId,
long vocabularyId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
findByP_V in interface AssetCategoryPersistenceparentCategoryId - the parent category id to search withvocabularyId - the vocabulary id to search withstart - the lower bound of the range of asset categories to returnend - the upper bound of the range of asset categories to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public AssetCategory findByP_V_First(long parentCategoryId,
long vocabularyId,
OrderByComparator orderByComparator)
throws NoSuchCategoryException,
SystemException
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.
findByP_V_First in interface AssetCategoryPersistenceparentCategoryId - the parent category id to search withvocabularyId - the vocabulary id to search withorderByComparator - the comparator to order the set by
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred
public AssetCategory findByP_V_Last(long parentCategoryId,
long vocabularyId,
OrderByComparator orderByComparator)
throws NoSuchCategoryException,
SystemException
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.
findByP_V_Last in interface AssetCategoryPersistenceparentCategoryId - the parent category id to search withvocabularyId - the vocabulary id to search withorderByComparator - the comparator to order the set by
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred
public AssetCategory[] findByP_V_PrevAndNext(long categoryId,
long parentCategoryId,
long vocabularyId,
OrderByComparator orderByComparator)
throws NoSuchCategoryException,
SystemException
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.
findByP_V_PrevAndNext in interface AssetCategoryPersistencecategoryId - the primary key of the current asset categoryparentCategoryId - the parent category id to search withvocabularyId - the vocabulary id to search withorderByComparator - the comparator to order the set by
NoSuchCategoryException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred
protected AssetCategory getByP_V_PrevAndNext(Session session,
AssetCategory assetCategory,
long parentCategoryId,
long vocabularyId,
OrderByComparator orderByComparator,
boolean previous)
public List<AssetCategory> findByN_V(String name,
long vocabularyId)
throws SystemException
findByN_V in interface AssetCategoryPersistencename - the name to search withvocabularyId - the vocabulary id to search with
SystemException - if a system exception occurred
public List<AssetCategory> findByN_V(String name,
long vocabularyId,
int start,
int end)
throws SystemException
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.
findByN_V in interface AssetCategoryPersistencename - the name to search withvocabularyId - the vocabulary id to search withstart - the lower bound of the range of asset categories to returnend - the upper bound of the range of asset categories to return (not inclusive)
SystemException - if a system exception occurred
public List<AssetCategory> findByN_V(String name,
long vocabularyId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
findByN_V in interface AssetCategoryPersistencename - the name to search withvocabularyId - the vocabulary id to search withstart - the lower bound of the range of asset categories to returnend - the upper bound of the range of asset categories to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public AssetCategory findByN_V_First(String name,
long vocabularyId,
OrderByComparator orderByComparator)
throws NoSuchCategoryException,
SystemException
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.
findByN_V_First in interface AssetCategoryPersistencename - the name to search withvocabularyId - the vocabulary id to search withorderByComparator - the comparator to order the set by
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred
public AssetCategory findByN_V_Last(String name,
long vocabularyId,
OrderByComparator orderByComparator)
throws NoSuchCategoryException,
SystemException
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.
findByN_V_Last in interface AssetCategoryPersistencename - the name to search withvocabularyId - the vocabulary id to search withorderByComparator - the comparator to order the set by
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred
public AssetCategory[] findByN_V_PrevAndNext(long categoryId,
String name,
long vocabularyId,
OrderByComparator orderByComparator)
throws NoSuchCategoryException,
SystemException
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.
findByN_V_PrevAndNext in interface AssetCategoryPersistencecategoryId - the primary key of the current asset categoryname - the name to search withvocabularyId - the vocabulary id to search withorderByComparator - the comparator to order the set by
NoSuchCategoryException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred
protected AssetCategory getByN_V_PrevAndNext(Session session,
AssetCategory assetCategory,
String name,
long vocabularyId,
OrderByComparator orderByComparator,
boolean previous)
public AssetCategory findByP_N_V(long parentCategoryId,
String name,
long vocabularyId)
throws NoSuchCategoryException,
SystemException
NoSuchCategoryException if it could not be found.
findByP_N_V in interface AssetCategoryPersistenceparentCategoryId - the parent category id to search withname - the name to search withvocabularyId - the vocabulary id to search with
NoSuchCategoryException - if a matching asset category could not be found
SystemException - if a system exception occurred
public AssetCategory fetchByP_N_V(long parentCategoryId,
String name,
long vocabularyId)
throws SystemException
null if it could not be found. Uses the finder cache.
fetchByP_N_V in interface AssetCategoryPersistenceparentCategoryId - the parent category id to search withname - the name to search withvocabularyId - the vocabulary id to search with
null if a matching asset category could not be found
SystemException - if a system exception occurred
public AssetCategory fetchByP_N_V(long parentCategoryId,
String name,
long vocabularyId,
boolean retrieveFromCache)
throws SystemException
null if it could not be found, optionally using the finder cache.
fetchByP_N_V in interface AssetCategoryPersistenceparentCategoryId - the parent category id to search withname - the name to search withvocabularyId - the vocabulary id to search with
null if a matching asset category could not be found
SystemException - if a system exception occurred
public List<AssetCategory> findAll()
throws SystemException
findAll in interface AssetCategoryPersistenceSystemException - if a system exception occurred
public List<AssetCategory> findAll(int start,
int end)
throws SystemException
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.
findAll in interface AssetCategoryPersistencestart - the lower bound of the range of asset categories to returnend - the upper bound of the range of asset categories to return (not inclusive)
SystemException - if a system exception occurred
public List<AssetCategory> findAll(int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
findAll in interface AssetCategoryPersistencestart - the lower bound of the range of asset categories to returnend - the upper bound of the range of asset categories to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public void removeByUuid(String uuid)
throws SystemException
removeByUuid in interface AssetCategoryPersistenceuuid - the uuid to search with
SystemException - if a system exception occurred
public void removeByUUID_G(String uuid,
long groupId)
throws NoSuchCategoryException,
SystemException
removeByUUID_G in interface AssetCategoryPersistenceuuid - the uuid to search withgroupId - the group id to search with
SystemException - if a system exception occurred
NoSuchCategoryException
public void removeByGroupId(long groupId)
throws SystemException
removeByGroupId in interface AssetCategoryPersistencegroupId - the group id to search with
SystemException - if a system exception occurred
public void removeByParentCategoryId(long parentCategoryId)
throws SystemException
removeByParentCategoryId in interface AssetCategoryPersistenceparentCategoryId - the parent category id to search with
SystemException - if a system exception occurred
public void removeByVocabularyId(long vocabularyId)
throws SystemException
removeByVocabularyId in interface AssetCategoryPersistencevocabularyId - the vocabulary id to search with
SystemException - if a system exception occurred
public void removeByP_N(long parentCategoryId,
String name)
throws SystemException
removeByP_N in interface AssetCategoryPersistenceparentCategoryId - the parent category id to search withname - the name to search with
SystemException - if a system exception occurred
public void removeByP_V(long parentCategoryId,
long vocabularyId)
throws SystemException
removeByP_V in interface AssetCategoryPersistenceparentCategoryId - the parent category id to search withvocabularyId - the vocabulary id to search with
SystemException - if a system exception occurred
public void removeByN_V(String name,
long vocabularyId)
throws SystemException
removeByN_V in interface AssetCategoryPersistencename - the name to search withvocabularyId - the vocabulary id to search with
SystemException - if a system exception occurred
public void removeByP_N_V(long parentCategoryId,
String name,
long vocabularyId)
throws NoSuchCategoryException,
SystemException
removeByP_N_V in interface AssetCategoryPersistenceparentCategoryId - the parent category id to search withname - the name to search withvocabularyId - the vocabulary id to search with
SystemException - if a system exception occurred
NoSuchCategoryException
public void removeAll()
throws SystemException
removeAll in interface AssetCategoryPersistenceSystemException - if a system exception occurred
public int countByUuid(String uuid)
throws SystemException
countByUuid in interface AssetCategoryPersistenceuuid - the uuid to search with
SystemException - if a system exception occurred
public int countByUUID_G(String uuid,
long groupId)
throws SystemException
countByUUID_G in interface AssetCategoryPersistenceuuid - the uuid to search withgroupId - the group id to search with
SystemException - if a system exception occurred
public int countByGroupId(long groupId)
throws SystemException
countByGroupId in interface AssetCategoryPersistencegroupId - the group id to search with
SystemException - if a system exception occurred
public int filterCountByGroupId(long groupId)
throws SystemException
filterCountByGroupId in interface AssetCategoryPersistencegroupId - the group id to search with
SystemException - if a system exception occurred
public int countByParentCategoryId(long parentCategoryId)
throws SystemException
countByParentCategoryId in interface AssetCategoryPersistenceparentCategoryId - the parent category id to search with
SystemException - if a system exception occurred
public int countByVocabularyId(long vocabularyId)
throws SystemException
countByVocabularyId in interface AssetCategoryPersistencevocabularyId - the vocabulary id to search with
SystemException - if a system exception occurred
public int countByP_N(long parentCategoryId,
String name)
throws SystemException
countByP_N in interface AssetCategoryPersistenceparentCategoryId - the parent category id to search withname - the name to search with
SystemException - if a system exception occurred
public int countByP_V(long parentCategoryId,
long vocabularyId)
throws SystemException
countByP_V in interface AssetCategoryPersistenceparentCategoryId - the parent category id to search withvocabularyId - the vocabulary id to search with
SystemException - if a system exception occurred
public int countByN_V(String name,
long vocabularyId)
throws SystemException
countByN_V in interface AssetCategoryPersistencename - the name to search withvocabularyId - the vocabulary id to search with
SystemException - if a system exception occurred
public int countByP_N_V(long parentCategoryId,
String name,
long vocabularyId)
throws SystemException
countByP_N_V in interface AssetCategoryPersistenceparentCategoryId - the parent category id to search withname - the name to search withvocabularyId - the vocabulary id to search with
SystemException - if a system exception occurred
public int countAll()
throws SystemException
countAll in interface AssetCategoryPersistenceSystemException - if a system exception occurred
public List<AssetEntry> getAssetEntries(long pk)
throws SystemException
getAssetEntries in interface AssetCategoryPersistencepk - the primary key of the asset category to get the associated asset entries for
SystemException - if a system exception occurred
public List<AssetEntry> getAssetEntries(long pk,
int start,
int end)
throws SystemException
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.
getAssetEntries in interface AssetCategoryPersistencepk - the primary key of the asset category to get the associated asset entries forstart - the lower bound of the range of asset categories to returnend - the upper bound of the range of asset categories to return (not inclusive)
SystemException - if a system exception occurred
public List<AssetEntry> getAssetEntries(long pk,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
getAssetEntries in interface AssetCategoryPersistencepk - the primary key of the asset category to get the associated asset entries forstart - the lower bound of the range of asset categories to returnend - the upper bound of the range of asset categories to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public int getAssetEntriesSize(long pk)
throws SystemException
getAssetEntriesSize in interface AssetCategoryPersistencepk - the primary key of the asset category to get the number of associated asset entries for
SystemException - if a system exception occurred
public boolean containsAssetEntry(long pk,
long assetEntryPK)
throws SystemException
containsAssetEntry in interface AssetCategoryPersistencepk - the primary key of the asset categoryassetEntryPK - the primary key of the asset entry
SystemException - if a system exception occurred
public boolean containsAssetEntries(long pk)
throws SystemException
containsAssetEntries in interface AssetCategoryPersistencepk - the primary key of the asset category to check for associations with asset entries
SystemException - if a system exception occurred
public void addAssetEntry(long pk,
long assetEntryPK)
throws SystemException
addAssetEntry in interface AssetCategoryPersistencepk - the primary key of the asset categoryassetEntryPK - the primary key of the asset entry
SystemException - if a system exception occurred
public void addAssetEntry(long pk,
AssetEntry assetEntry)
throws SystemException
addAssetEntry in interface AssetCategoryPersistencepk - the primary key of the asset categoryassetEntry - the asset entry
SystemException - if a system exception occurred
public void addAssetEntries(long pk,
long[] assetEntryPKs)
throws SystemException
addAssetEntries in interface AssetCategoryPersistencepk - the primary key of the asset categoryassetEntryPKs - the primary keys of the asset entries
SystemException - if a system exception occurred
public void addAssetEntries(long pk,
List<AssetEntry> assetEntries)
throws SystemException
addAssetEntries in interface AssetCategoryPersistencepk - the primary key of the asset categoryassetEntries - the asset entries
SystemException - if a system exception occurred
public void clearAssetEntries(long pk)
throws SystemException
clearAssetEntries in interface AssetCategoryPersistencepk - the primary key of the asset category to clear the associated asset entries from
SystemException - if a system exception occurred
public void removeAssetEntry(long pk,
long assetEntryPK)
throws SystemException
removeAssetEntry in interface AssetCategoryPersistencepk - the primary key of the asset categoryassetEntryPK - the primary key of the asset entry
SystemException - if a system exception occurred
public void removeAssetEntry(long pk,
AssetEntry assetEntry)
throws SystemException
removeAssetEntry in interface AssetCategoryPersistencepk - the primary key of the asset categoryassetEntry - the asset entry
SystemException - if a system exception occurred
public void removeAssetEntries(long pk,
long[] assetEntryPKs)
throws SystemException
removeAssetEntries in interface AssetCategoryPersistencepk - the primary key of the asset categoryassetEntryPKs - the primary keys of the asset entries
SystemException - if a system exception occurred
public void removeAssetEntries(long pk,
List<AssetEntry> assetEntries)
throws SystemException
removeAssetEntries in interface AssetCategoryPersistencepk - the primary key of the asset categoryassetEntries - the asset entries
SystemException - if a system exception occurred
public void setAssetEntries(long pk,
long[] assetEntryPKs)
throws SystemException
setAssetEntries in interface AssetCategoryPersistencepk - the primary key of the asset category to set the associations forassetEntryPKs - the primary keys of the asset entries to be associated with the asset category
SystemException - if a system exception occurred
public void setAssetEntries(long pk,
List<AssetEntry> assetEntries)
throws SystemException
setAssetEntries in interface AssetCategoryPersistencepk - the primary key of the asset category to set the associations forassetEntries - the asset entries to be associated with the asset category
SystemException - if a system exception occurred
public void rebuildTree(long groupId,
boolean force)
throws SystemException
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.
rebuildTree in interface AssetCategoryPersistencegroupId - the id of the scope to rebuild the tree forforce - whether to force the rebuild even if the tree is not stale
SystemException
protected long countOrphanTreeNodes(long groupId)
throws SystemException
SystemException
protected void expandTree(AssetCategory assetCategory)
throws SystemException
SystemException
protected long getLastRightCategoryId(long groupId,
long parentCategoryId)
throws SystemException
SystemException
protected long rebuildTree(long groupId,
long parentCategoryId,
long leftCategoryId)
throws SystemException
SystemExceptionprotected void shrinkTree(AssetCategory assetCategory)
public void afterPropertiesSet()
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||