|
Liferay 6.0-ee | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.liferay.portlet.asset.service.persistence.AssetCategoryPropertyUtil
public class AssetCategoryPropertyUtil
The persistence utility for the asset category property service. This utility wraps AssetCategoryPropertyPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Never modify this class directly. Modify service.xml
and rerun ServiceBuilder to regenerate this class.
Caching information and settings can be found in portal.properties
AssetCategoryPropertyPersistence
,
AssetCategoryPropertyPersistenceImpl
Constructor Summary | |
---|---|
AssetCategoryPropertyUtil()
|
Method Summary | |
---|---|
static void |
cacheResult(AssetCategoryProperty assetCategoryProperty)
Caches the asset category property in the entity cache if it is enabled. |
static void |
cacheResult(List<AssetCategoryProperty> assetCategoryProperties)
Caches the asset category properties in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(AssetCategoryProperty assetCategoryProperty)
|
static int |
countAll()
Counts all the asset category properties. |
static int |
countByC_K(long companyId,
String key)
Counts all the asset category properties where companyId = ? and key = ?. |
static int |
countByCA_K(long categoryId,
String key)
Counts all the asset category properties where categoryId = ? and key = ?. |
static int |
countByCategoryId(long categoryId)
Counts all the asset category properties where categoryId = ?. |
static int |
countByCompanyId(long companyId)
Counts all the asset category properties where companyId = ?. |
long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static AssetCategoryProperty |
create(long categoryPropertyId)
Creates a new asset category property with the primary key. |
static 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. |
static 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. |
static AssetCategoryProperty |
fetchByPrimaryKey(long categoryPropertyId)
Finds the asset category property with the primary key or returns null if it could not be found. |
static List<AssetCategoryProperty> |
findAll()
Finds all the asset category properties. |
static List<AssetCategoryProperty> |
findAll(int start,
int end)
Finds a range of all the asset category properties. |
static List<AssetCategoryProperty> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the asset category properties. |
static AssetCategoryProperty |
findByC_K_First(long companyId,
String key,
OrderByComparator orderByComparator)
Finds the first asset category property in the ordered set where companyId = ? and key = ?. |
static AssetCategoryProperty |
findByC_K_Last(long companyId,
String key,
OrderByComparator orderByComparator)
Finds the last asset category property in the ordered set where companyId = ? and key = ?. |
static 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 = ?. |
static List<AssetCategoryProperty> |
findByC_K(long companyId,
String key)
Finds all the asset category properties where companyId = ? and key = ?. |
static 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 = ?. |
static 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 = ?. |
static 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. |
static AssetCategoryProperty |
findByCategoryId_First(long categoryId,
OrderByComparator orderByComparator)
Finds the first asset category property in the ordered set where categoryId = ?. |
static AssetCategoryProperty |
findByCategoryId_Last(long categoryId,
OrderByComparator orderByComparator)
Finds the last asset category property in the ordered set where categoryId = ?. |
static 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 = ?. |
static List<AssetCategoryProperty> |
findByCategoryId(long categoryId)
Finds all the asset category properties where categoryId = ?. |
static List<AssetCategoryProperty> |
findByCategoryId(long categoryId,
int start,
int end)
Finds a range of all the asset category properties where categoryId = ?. |
static List<AssetCategoryProperty> |
findByCategoryId(long categoryId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the asset category properties where categoryId = ?. |
static AssetCategoryProperty |
findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Finds the first asset category property in the ordered set where companyId = ?. |
static AssetCategoryProperty |
findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Finds the last asset category property in the ordered set where companyId = ?. |
static 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 = ?. |
static List<AssetCategoryProperty> |
findByCompanyId(long companyId)
Finds all the asset category properties where companyId = ?. |
static List<AssetCategoryProperty> |
findByCompanyId(long companyId,
int start,
int end)
Finds a range of all the asset category properties where companyId = ?. |
static List<AssetCategoryProperty> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the asset category properties where companyId = ?. |
static AssetCategoryProperty |
findByPrimaryKey(long categoryPropertyId)
Finds the asset category property with the primary key or throws a NoSuchCategoryPropertyException if it could not be found. |
static List<AssetCategoryProperty> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<AssetCategoryProperty> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<AssetCategoryProperty> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static AssetCategoryPropertyPersistence |
getPersistence()
|
static AssetCategoryProperty |
remove(AssetCategoryProperty assetCategoryProperty)
|
static AssetCategoryProperty |
remove(long categoryPropertyId)
Removes the asset category property with the primary key from the database. |
static void |
removeAll()
Removes all the asset category properties from the database. |
static void |
removeByC_K(long companyId,
String key)
Removes all the asset category properties where companyId = ? and key = ? from the database. |
static void |
removeByCA_K(long categoryId,
String key)
Removes the asset category property where categoryId = ? and key = ? from the database. |
static void |
removeByCategoryId(long categoryId)
Removes all the asset category properties where categoryId = ? from the database. |
static void |
removeByCompanyId(long companyId)
Removes all the asset category properties where companyId = ? from the database. |
void |
setPersistence(AssetCategoryPropertyPersistence persistence)
|
static AssetCategoryProperty |
update(AssetCategoryProperty assetCategoryProperty,
boolean merge)
|
static AssetCategoryProperty |
update(AssetCategoryProperty assetCategoryProperty,
boolean merge,
ServiceContext serviceContext)
|
static AssetCategoryProperty |
updateImpl(AssetCategoryProperty assetCategoryProperty,
boolean merge)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AssetCategoryPropertyUtil()
Method Detail |
---|
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(AssetCategoryProperty assetCategoryProperty)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<AssetCategoryProperty> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<AssetCategoryProperty> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<AssetCategoryProperty> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
SystemException
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static AssetCategoryProperty remove(AssetCategoryProperty assetCategoryProperty) throws SystemException
SystemException
BasePersistence.remove(com.liferay.portal.model.BaseModel)
public static AssetCategoryProperty update(AssetCategoryProperty assetCategoryProperty, boolean merge) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static AssetCategoryProperty update(AssetCategoryProperty assetCategoryProperty, boolean merge, ServiceContext serviceContext) throws SystemException
SystemException
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
public static void cacheResult(AssetCategoryProperty assetCategoryProperty)
assetCategoryProperty
- the asset category property to cachepublic static void cacheResult(List<AssetCategoryProperty> assetCategoryProperties)
assetCategoryProperties
- the asset category properties to cachepublic static AssetCategoryProperty create(long categoryPropertyId)
categoryPropertyId
- the primary key for the new asset category property
public static AssetCategoryProperty remove(long categoryPropertyId) throws SystemException, NoSuchCategoryPropertyException
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 occurredpublic static AssetCategoryProperty updateImpl(AssetCategoryProperty assetCategoryProperty, boolean merge) throws SystemException
SystemException
public static AssetCategoryProperty findByPrimaryKey(long categoryPropertyId) throws SystemException, NoSuchCategoryPropertyException
NoSuchCategoryPropertyException
if it could not be found.
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 static AssetCategoryProperty fetchByPrimaryKey(long categoryPropertyId) throws SystemException
null
if it could not be found.
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 static List<AssetCategoryProperty> findByCompanyId(long companyId) throws SystemException
companyId
- the company id to search with
SystemException
- if a system exception occurredpublic static 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.
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 static 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.
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 static AssetCategoryProperty findByCompanyId_First(long companyId, OrderByComparator orderByComparator) throws SystemException, NoSuchCategoryPropertyException
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.
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 static AssetCategoryProperty findByCompanyId_Last(long companyId, OrderByComparator orderByComparator) throws SystemException, NoSuchCategoryPropertyException
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.
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 static AssetCategoryProperty[] findByCompanyId_PrevAndNext(long categoryPropertyId, long companyId, OrderByComparator orderByComparator) throws SystemException, NoSuchCategoryPropertyException
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.
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 occurredpublic static List<AssetCategoryProperty> findByCategoryId(long categoryId) throws SystemException
categoryId
- the category id to search with
SystemException
- if a system exception occurredpublic static 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.
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 static 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.
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 static AssetCategoryProperty findByCategoryId_First(long categoryId, OrderByComparator orderByComparator) throws SystemException, NoSuchCategoryPropertyException
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.
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 static AssetCategoryProperty findByCategoryId_Last(long categoryId, OrderByComparator orderByComparator) throws SystemException, NoSuchCategoryPropertyException
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.
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 static AssetCategoryProperty[] findByCategoryId_PrevAndNext(long categoryPropertyId, long categoryId, OrderByComparator orderByComparator) throws SystemException, NoSuchCategoryPropertyException
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.
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 occurredpublic static List<AssetCategoryProperty> findByC_K(long companyId, String key) throws SystemException
companyId
- the company id to search withkey
- the key to search with
SystemException
- if a system exception occurredpublic static 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.
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 static 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.
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 static AssetCategoryProperty findByC_K_First(long companyId, String key, OrderByComparator orderByComparator) throws SystemException, NoSuchCategoryPropertyException
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.
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 static AssetCategoryProperty findByC_K_Last(long companyId, String key, OrderByComparator orderByComparator) throws SystemException, NoSuchCategoryPropertyException
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.
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 static AssetCategoryProperty[] findByC_K_PrevAndNext(long categoryPropertyId, long companyId, String key, OrderByComparator orderByComparator) throws SystemException, NoSuchCategoryPropertyException
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.
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 occurredpublic static AssetCategoryProperty findByCA_K(long categoryId, String key) throws SystemException, NoSuchCategoryPropertyException
NoSuchCategoryPropertyException
if it could not be found.
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 static AssetCategoryProperty fetchByCA_K(long categoryId, String key) throws SystemException
null
if it could not be found. Uses the finder cache.
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 static AssetCategoryProperty fetchByCA_K(long categoryId, String key, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
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 static List<AssetCategoryProperty> findAll() throws SystemException
SystemException
- if a system exception occurredpublic static 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.
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 static 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.
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 static void removeByCompanyId(long companyId) throws SystemException
companyId
- the company id to search with
SystemException
- if a system exception occurredpublic static void removeByCategoryId(long categoryId) throws SystemException
categoryId
- the category id to search with
SystemException
- if a system exception occurredpublic static void removeByC_K(long companyId, String key) throws SystemException
companyId
- the company id to search withkey
- the key to search with
SystemException
- if a system exception occurredpublic static void removeByCA_K(long categoryId, String key) throws SystemException, NoSuchCategoryPropertyException
categoryId
- the category id to search withkey
- the key to search with
SystemException
- if a system exception occurred
NoSuchCategoryPropertyException
public static void removeAll() throws SystemException
SystemException
- if a system exception occurredpublic static int countByCompanyId(long companyId) throws SystemException
companyId
- the company id to search with
SystemException
- if a system exception occurredpublic static int countByCategoryId(long categoryId) throws SystemException
categoryId
- the category id to search with
SystemException
- if a system exception occurredpublic static int countByC_K(long companyId, String key) throws SystemException
companyId
- the company id to search withkey
- the key to search with
SystemException
- if a system exception occurredpublic static int countByCA_K(long categoryId, String key) throws SystemException
categoryId
- the category id to search withkey
- the key to search with
SystemException
- if a system exception occurredpublic static int countAll() throws SystemException
SystemException
- if a system exception occurredpublic static AssetCategoryPropertyPersistence getPersistence()
public void setPersistence(AssetCategoryPropertyPersistence persistence)
|
Liferay 6.0-ee | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |