|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.persistence.impl.BasePersistenceImpl<AssetCategoryProperty> com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyPersistenceImpl
public class AssetCategoryPropertyPersistenceImpl
The persistence implementation for the asset category property service.
Never modify or reference this class directly. Always use AssetCategoryPropertyUtil
to access the asset category property persistence. Modify service.xml
and rerun ServiceBuilder to regenerate this class.
Caching information and settings can be found in portal.properties
AssetCategoryPropertyPersistence
,
AssetCategoryPropertyUtil
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 | |
---|---|
AssetCategoryPropertyPersistenceImpl()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Initializes the asset category property persistence. |
void |
cacheResult(AssetCategoryProperty assetCategoryProperty)
Caches the asset category property in the entity cache if it is enabled. |
void |
cacheResult(List<AssetCategoryProperty> assetCategoryProperties)
Caches the asset category properties in the entity cache if it is enabled. |
void |
clearCache()
Clears the cache for all asset category properties. |
void |
clearCache(AssetCategoryProperty assetCategoryProperty)
Clears the cache for the asset category property. |
int |
countAll()
Counts all the asset category properties. |
int |
countByC_K(long companyId,
String key)
Counts all the asset category properties where companyId = ? and key = ?. |
int |
countByCA_K(long categoryId,
String key)
Counts all the asset category properties where categoryId = ? and key = ?. |
int |
countByCategoryId(long categoryId)
Counts all the asset category properties where categoryId = ?. |
int |
countByCompanyId(long companyId)
Counts all the asset category properties where companyId = ?. |
AssetCategoryProperty |
create(long categoryPropertyId)
Creates a new asset category property with the primary key. |
AssetCategoryProperty |
fetchByCA_K(long categoryId,
String key)
Finds the asset category property where categoryId = ? and key = ? or returns null if it could not be found. |
AssetCategoryProperty |
fetchByCA_K(long categoryId,
String key,
boolean retrieveFromCache)
Finds the asset category property where categoryId = ? and key = ? or returns null if it could not be found, optionally using the finder cache. |
AssetCategoryProperty |
fetchByPrimaryKey(long categoryPropertyId)
Finds the asset category property with the primary key or returns null if it could not be found. |
AssetCategoryProperty |
fetchByPrimaryKey(Serializable primaryKey)
Finds the asset category property with the primary key or returns null if it could not be found. |
List<AssetCategoryProperty> |
findAll()
Finds all the asset category properties. |
List<AssetCategoryProperty> |
findAll(int start,
int end)
Finds a range of all the asset category properties. |
List<AssetCategoryProperty> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the asset category properties. |
AssetCategoryProperty |
findByC_K_First(long companyId,
String key,
OrderByComparator orderByComparator)
Finds the first asset category property in the ordered set where companyId = ? and key = ?. |
AssetCategoryProperty |
findByC_K_Last(long companyId,
String key,
OrderByComparator orderByComparator)
Finds the last asset category property in the ordered set where companyId = ? and key = ?. |
AssetCategoryProperty[] |
findByC_K_PrevAndNext(long categoryPropertyId,
long companyId,
String key,
OrderByComparator orderByComparator)
Finds the asset category properties before and after the current asset category property in the ordered set where companyId = ? and key = ?. |
List<AssetCategoryProperty> |
findByC_K(long companyId,
String key)
Finds all the asset category properties where companyId = ? and key = ?. |
List<AssetCategoryProperty> |
findByC_K(long companyId,
String key,
int start,
int end)
Finds a range of all the asset category properties where companyId = ? and key = ?. |
List<AssetCategoryProperty> |
findByC_K(long companyId,
String key,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the asset category properties where companyId = ? and key = ?. |
AssetCategoryProperty |
findByCA_K(long categoryId,
String key)
Finds the asset category property where categoryId = ? and key = ? or throws a NoSuchCategoryPropertyException if it could not be found. |
AssetCategoryProperty |
findByCategoryId_First(long categoryId,
OrderByComparator orderByComparator)
Finds the first asset category property in the ordered set where categoryId = ?. |
AssetCategoryProperty |
findByCategoryId_Last(long categoryId,
OrderByComparator orderByComparator)
Finds the last asset category property in the ordered set where categoryId = ?. |
AssetCategoryProperty[] |
findByCategoryId_PrevAndNext(long categoryPropertyId,
long categoryId,
OrderByComparator orderByComparator)
Finds the asset category properties before and after the current asset category property in the ordered set where categoryId = ?. |
List<AssetCategoryProperty> |
findByCategoryId(long categoryId)
Finds all the asset category properties where categoryId = ?. |
List<AssetCategoryProperty> |
findByCategoryId(long categoryId,
int start,
int end)
Finds a range of all the asset category properties where categoryId = ?. |
List<AssetCategoryProperty> |
findByCategoryId(long categoryId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the asset category properties where categoryId = ?. |
AssetCategoryProperty |
findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Finds the first asset category property in the ordered set where companyId = ?. |
AssetCategoryProperty |
findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Finds the last asset category property in the ordered set where companyId = ?. |
AssetCategoryProperty[] |
findByCompanyId_PrevAndNext(long categoryPropertyId,
long companyId,
OrderByComparator orderByComparator)
Finds the asset category properties before and after the current asset category property in the ordered set where companyId = ?. |
List<AssetCategoryProperty> |
findByCompanyId(long companyId)
Finds all the asset category properties where companyId = ?. |
List<AssetCategoryProperty> |
findByCompanyId(long companyId,
int start,
int end)
Finds a range of all the asset category properties where companyId = ?. |
List<AssetCategoryProperty> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the asset category properties where companyId = ?. |
AssetCategoryProperty |
findByPrimaryKey(long categoryPropertyId)
Finds the asset category property with the primary key or throws a NoSuchCategoryPropertyException if it could not be found. |
AssetCategoryProperty |
findByPrimaryKey(Serializable primaryKey)
Finds the asset category property with the primary key or throws a NoSuchModelException if it could not be found. |
protected AssetCategoryProperty |
getByC_K_PrevAndNext(Session session,
AssetCategoryProperty assetCategoryProperty,
long companyId,
String key,
OrderByComparator orderByComparator,
boolean previous)
|
protected AssetCategoryProperty |
getByCategoryId_PrevAndNext(Session session,
AssetCategoryProperty assetCategoryProperty,
long categoryId,
OrderByComparator orderByComparator,
boolean previous)
|
protected AssetCategoryProperty |
getByCompanyId_PrevAndNext(Session session,
AssetCategoryProperty assetCategoryProperty,
long companyId,
OrderByComparator orderByComparator,
boolean previous)
|
AssetCategoryProperty |
remove(long categoryPropertyId)
Removes the asset category property with the primary key from the database. |
AssetCategoryProperty |
remove(Serializable primaryKey)
Removes the asset category property with the primary key from the database. |
void |
removeAll()
Removes all the asset category properties from the database. |
void |
removeByC_K(long companyId,
String key)
Removes all the asset category properties where companyId = ? and key = ? from the database. |
void |
removeByCA_K(long categoryId,
String key)
Removes the asset category property where categoryId = ? and key = ? from the database. |
void |
removeByCategoryId(long categoryId)
Removes all the asset category properties where categoryId = ? from the database. |
void |
removeByCompanyId(long companyId)
Removes all the asset category properties where companyId = ? from the database. |
protected AssetCategoryProperty |
removeImpl(AssetCategoryProperty assetCategoryProperty)
Removes the model instance from the database. |
protected AssetCategoryProperty |
toUnwrappedModel(AssetCategoryProperty assetCategoryProperty)
|
AssetCategoryProperty |
updateImpl(AssetCategoryProperty assetCategoryProperty,
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_COMPANYID
public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID
public static final FinderPath FINDER_PATH_FIND_BY_CATEGORYID
public static final FinderPath FINDER_PATH_COUNT_BY_CATEGORYID
public static final FinderPath FINDER_PATH_FIND_BY_C_K
public static final FinderPath FINDER_PATH_COUNT_BY_C_K
public static final FinderPath FINDER_PATH_FETCH_BY_CA_K
public static final FinderPath FINDER_PATH_COUNT_BY_CA_K
public static final FinderPath FINDER_PATH_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
@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
Constructor Detail |
---|
public AssetCategoryPropertyPersistenceImpl()
Method Detail |
---|
public void cacheResult(AssetCategoryProperty assetCategoryProperty)
cacheResult
in interface AssetCategoryPropertyPersistence
assetCategoryProperty
- the asset category property to cachepublic void cacheResult(List<AssetCategoryProperty> assetCategoryProperties)
cacheResult
in interface AssetCategoryPropertyPersistence
assetCategoryProperties
- the asset category properties to cachepublic void clearCache()
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<AssetCategoryProperty>
clearCache
in class BasePersistenceImpl<AssetCategoryProperty>
public void clearCache(AssetCategoryProperty assetCategoryProperty)
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<AssetCategoryProperty>
clearCache
in class BasePersistenceImpl<AssetCategoryProperty>
assetCategoryProperty
- the instance of this model to clear the cache forpublic AssetCategoryProperty create(long categoryPropertyId)
create
in interface AssetCategoryPropertyPersistence
categoryPropertyId
- the primary key for the new asset category property
public AssetCategoryProperty remove(Serializable primaryKey) throws NoSuchModelException, SystemException
remove
in interface BasePersistence<AssetCategoryProperty>
remove
in class BasePersistenceImpl<AssetCategoryProperty>
primaryKey
- the primary key of the asset category property to remove
NoSuchModelException
- if a asset category property with the primary key could not be found
SystemException
- if a system exception occurredpublic AssetCategoryProperty remove(long categoryPropertyId) throws NoSuchCategoryPropertyException, SystemException
remove
in interface AssetCategoryPropertyPersistence
categoryPropertyId
- the primary key of the asset category property to remove
NoSuchCategoryPropertyException
- if a asset category property with the primary key could not be found
SystemException
- if a system exception occurredprotected AssetCategoryProperty removeImpl(AssetCategoryProperty assetCategoryProperty) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.update(BaseModel,
boolean)
depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl
in class BasePersistenceImpl<AssetCategoryProperty>
assetCategoryProperty
- the model instance to remove
SystemException
- if a system exception occurredpublic AssetCategoryProperty updateImpl(AssetCategoryProperty assetCategoryProperty, boolean merge) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.remove(BaseModel)
depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl
in interface AssetCategoryPropertyPersistence
updateImpl
in class BasePersistenceImpl<AssetCategoryProperty>
assetCategoryProperty
- 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 AssetCategoryProperty toUnwrappedModel(AssetCategoryProperty assetCategoryProperty)
public AssetCategoryProperty findByPrimaryKey(Serializable primaryKey) throws NoSuchModelException, SystemException
NoSuchModelException
if it could not be found.
findByPrimaryKey
in interface BasePersistence<AssetCategoryProperty>
findByPrimaryKey
in class BasePersistenceImpl<AssetCategoryProperty>
primaryKey
- the primary key of the asset category property to find
NoSuchModelException
- if a asset category property with the primary key could not be found
SystemException
- if a system exception occurredpublic AssetCategoryProperty findByPrimaryKey(long categoryPropertyId) throws NoSuchCategoryPropertyException, SystemException
NoSuchCategoryPropertyException
if it could not be found.
findByPrimaryKey
in interface AssetCategoryPropertyPersistence
categoryPropertyId
- the primary key of the asset category property to find
NoSuchCategoryPropertyException
- if a asset category property with the primary key could not be found
SystemException
- if a system exception occurredpublic AssetCategoryProperty fetchByPrimaryKey(Serializable primaryKey) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface BasePersistence<AssetCategoryProperty>
fetchByPrimaryKey
in class BasePersistenceImpl<AssetCategoryProperty>
primaryKey
- the primary key of the asset category property to find
null
if a asset category property with the primary key could not be found
SystemException
- if a system exception occurredpublic AssetCategoryProperty fetchByPrimaryKey(long categoryPropertyId) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface AssetCategoryPropertyPersistence
categoryPropertyId
- the primary key of the asset category property to find
null
if a asset category property with the primary key could not be found
SystemException
- if a system exception occurredpublic List<AssetCategoryProperty> findByCompanyId(long companyId) throws SystemException
findByCompanyId
in interface AssetCategoryPropertyPersistence
companyId
- the company id to search with
SystemException
- if a system exception occurredpublic List<AssetCategoryProperty> findByCompanyId(long companyId, 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.
findByCompanyId
in interface AssetCategoryPropertyPersistence
companyId
- the company id to search withstart
- the lower bound of the range of asset category properties to returnend
- the upper bound of the range of asset category properties to return (not inclusive)
SystemException
- if a system exception occurredpublic List<AssetCategoryProperty> findByCompanyId(long companyId, 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.
findByCompanyId
in interface AssetCategoryPropertyPersistence
companyId
- the company id to search withstart
- the lower bound of the range of asset category properties to returnend
- the upper bound of the range of asset category properties to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic AssetCategoryProperty findByCompanyId_First(long companyId, OrderByComparator orderByComparator) throws NoSuchCategoryPropertyException, 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.
findByCompanyId_First
in interface AssetCategoryPropertyPersistence
companyId
- the company id to search withorderByComparator
- the comparator to order the set by
NoSuchCategoryPropertyException
- if a matching asset category property could not be found
SystemException
- if a system exception occurredpublic AssetCategoryProperty findByCompanyId_Last(long companyId, OrderByComparator orderByComparator) throws NoSuchCategoryPropertyException, 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.
findByCompanyId_Last
in interface AssetCategoryPropertyPersistence
companyId
- the company id to search withorderByComparator
- the comparator to order the set by
NoSuchCategoryPropertyException
- if a matching asset category property could not be found
SystemException
- if a system exception occurredpublic AssetCategoryProperty[] findByCompanyId_PrevAndNext(long categoryPropertyId, long companyId, OrderByComparator orderByComparator) throws NoSuchCategoryPropertyException, 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.
findByCompanyId_PrevAndNext
in interface AssetCategoryPropertyPersistence
categoryPropertyId
- the primary key of the current asset category propertycompanyId
- the company id to search withorderByComparator
- the comparator to order the set by
NoSuchCategoryPropertyException
- if a asset category property with the primary key could not be found
SystemException
- if a system exception occurredprotected AssetCategoryProperty getByCompanyId_PrevAndNext(Session session, AssetCategoryProperty assetCategoryProperty, long companyId, OrderByComparator orderByComparator, boolean previous)
public List<AssetCategoryProperty> findByCategoryId(long categoryId) throws SystemException
findByCategoryId
in interface AssetCategoryPropertyPersistence
categoryId
- the category id to search with
SystemException
- if a system exception occurredpublic List<AssetCategoryProperty> findByCategoryId(long categoryId, 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.
findByCategoryId
in interface AssetCategoryPropertyPersistence
categoryId
- the category id to search withstart
- the lower bound of the range of asset category properties to returnend
- the upper bound of the range of asset category properties to return (not inclusive)
SystemException
- if a system exception occurredpublic List<AssetCategoryProperty> findByCategoryId(long categoryId, 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.
findByCategoryId
in interface AssetCategoryPropertyPersistence
categoryId
- the category id to search withstart
- the lower bound of the range of asset category properties to returnend
- the upper bound of the range of asset category properties to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic AssetCategoryProperty findByCategoryId_First(long categoryId, OrderByComparator orderByComparator) throws NoSuchCategoryPropertyException, 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.
findByCategoryId_First
in interface AssetCategoryPropertyPersistence
categoryId
- the category id to search withorderByComparator
- the comparator to order the set by
NoSuchCategoryPropertyException
- if a matching asset category property could not be found
SystemException
- if a system exception occurredpublic AssetCategoryProperty findByCategoryId_Last(long categoryId, OrderByComparator orderByComparator) throws NoSuchCategoryPropertyException, 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.
findByCategoryId_Last
in interface AssetCategoryPropertyPersistence
categoryId
- the category id to search withorderByComparator
- the comparator to order the set by
NoSuchCategoryPropertyException
- if a matching asset category property could not be found
SystemException
- if a system exception occurredpublic AssetCategoryProperty[] findByCategoryId_PrevAndNext(long categoryPropertyId, long categoryId, OrderByComparator orderByComparator) throws NoSuchCategoryPropertyException, 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.
findByCategoryId_PrevAndNext
in interface AssetCategoryPropertyPersistence
categoryPropertyId
- the primary key of the current asset category propertycategoryId
- the category id to search withorderByComparator
- the comparator to order the set by
NoSuchCategoryPropertyException
- if a asset category property with the primary key could not be found
SystemException
- if a system exception occurredprotected AssetCategoryProperty getByCategoryId_PrevAndNext(Session session, AssetCategoryProperty assetCategoryProperty, long categoryId, OrderByComparator orderByComparator, boolean previous)
public List<AssetCategoryProperty> findByC_K(long companyId, String key) throws SystemException
findByC_K
in interface AssetCategoryPropertyPersistence
companyId
- the company id to search withkey
- the key to search with
SystemException
- if a system exception occurredpublic List<AssetCategoryProperty> findByC_K(long companyId, String key, 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.
findByC_K
in interface AssetCategoryPropertyPersistence
companyId
- the company id to search withkey
- the key to search withstart
- the lower bound of the range of asset category properties to returnend
- the upper bound of the range of asset category properties to return (not inclusive)
SystemException
- if a system exception occurredpublic List<AssetCategoryProperty> findByC_K(long companyId, String key, 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.
findByC_K
in interface AssetCategoryPropertyPersistence
companyId
- the company id to search withkey
- the key to search withstart
- the lower bound of the range of asset category properties to returnend
- the upper bound of the range of asset category properties to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic AssetCategoryProperty findByC_K_First(long companyId, String key, OrderByComparator orderByComparator) throws NoSuchCategoryPropertyException, 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.
findByC_K_First
in interface AssetCategoryPropertyPersistence
companyId
- the company id to search withkey
- the key to search withorderByComparator
- the comparator to order the set by
NoSuchCategoryPropertyException
- if a matching asset category property could not be found
SystemException
- if a system exception occurredpublic AssetCategoryProperty findByC_K_Last(long companyId, String key, OrderByComparator orderByComparator) throws NoSuchCategoryPropertyException, 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.
findByC_K_Last
in interface AssetCategoryPropertyPersistence
companyId
- the company id to search withkey
- the key to search withorderByComparator
- the comparator to order the set by
NoSuchCategoryPropertyException
- if a matching asset category property could not be found
SystemException
- if a system exception occurredpublic AssetCategoryProperty[] findByC_K_PrevAndNext(long categoryPropertyId, long companyId, String key, OrderByComparator orderByComparator) throws NoSuchCategoryPropertyException, 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.
findByC_K_PrevAndNext
in interface AssetCategoryPropertyPersistence
categoryPropertyId
- the primary key of the current asset category propertycompanyId
- the company id to search withkey
- the key to search withorderByComparator
- the comparator to order the set by
NoSuchCategoryPropertyException
- if a asset category property with the primary key could not be found
SystemException
- if a system exception occurredprotected AssetCategoryProperty getByC_K_PrevAndNext(Session session, AssetCategoryProperty assetCategoryProperty, long companyId, String key, OrderByComparator orderByComparator, boolean previous)
public AssetCategoryProperty findByCA_K(long categoryId, String key) throws NoSuchCategoryPropertyException, SystemException
NoSuchCategoryPropertyException
if it could not be found.
findByCA_K
in interface AssetCategoryPropertyPersistence
categoryId
- the category id to search withkey
- the key to search with
NoSuchCategoryPropertyException
- if a matching asset category property could not be found
SystemException
- if a system exception occurredpublic AssetCategoryProperty fetchByCA_K(long categoryId, String key) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByCA_K
in interface AssetCategoryPropertyPersistence
categoryId
- the category id to search withkey
- the key to search with
null
if a matching asset category property could not be found
SystemException
- if a system exception occurredpublic AssetCategoryProperty fetchByCA_K(long categoryId, String key, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByCA_K
in interface AssetCategoryPropertyPersistence
categoryId
- the category id to search withkey
- the key to search with
null
if a matching asset category property could not be found
SystemException
- if a system exception occurredpublic List<AssetCategoryProperty> findAll() throws SystemException
findAll
in interface AssetCategoryPropertyPersistence
SystemException
- if a system exception occurredpublic List<AssetCategoryProperty> 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 AssetCategoryPropertyPersistence
start
- the lower bound of the range of asset category properties to returnend
- the upper bound of the range of asset category properties to return (not inclusive)
SystemException
- if a system exception occurredpublic List<AssetCategoryProperty> 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 AssetCategoryPropertyPersistence
start
- the lower bound of the range of asset category properties to returnend
- the upper bound of the range of asset category properties to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic void removeByCompanyId(long companyId) throws SystemException
removeByCompanyId
in interface AssetCategoryPropertyPersistence
companyId
- the company id to search with
SystemException
- if a system exception occurredpublic void removeByCategoryId(long categoryId) throws SystemException
removeByCategoryId
in interface AssetCategoryPropertyPersistence
categoryId
- the category id to search with
SystemException
- if a system exception occurredpublic void removeByC_K(long companyId, String key) throws SystemException
removeByC_K
in interface AssetCategoryPropertyPersistence
companyId
- the company id to search withkey
- the key to search with
SystemException
- if a system exception occurredpublic void removeByCA_K(long categoryId, String key) throws NoSuchCategoryPropertyException, SystemException
removeByCA_K
in interface AssetCategoryPropertyPersistence
categoryId
- the category id to search withkey
- the key to search with
SystemException
- if a system exception occurred
NoSuchCategoryPropertyException
public void removeAll() throws SystemException
removeAll
in interface AssetCategoryPropertyPersistence
SystemException
- if a system exception occurredpublic int countByCompanyId(long companyId) throws SystemException
countByCompanyId
in interface AssetCategoryPropertyPersistence
companyId
- the company id to search with
SystemException
- if a system exception occurredpublic int countByCategoryId(long categoryId) throws SystemException
countByCategoryId
in interface AssetCategoryPropertyPersistence
categoryId
- the category id to search with
SystemException
- if a system exception occurredpublic int countByC_K(long companyId, String key) throws SystemException
countByC_K
in interface AssetCategoryPropertyPersistence
companyId
- the company id to search withkey
- the key to search with
SystemException
- if a system exception occurredpublic int countByCA_K(long categoryId, String key) throws SystemException
countByCA_K
in interface AssetCategoryPropertyPersistence
categoryId
- the category id to search withkey
- the key to search with
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface AssetCategoryPropertyPersistence
SystemException
- if a system exception occurredpublic void afterPropertiesSet()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |