public class AssetCategoryPropertyUtil
extends java.lang.Object
com.liferay.asset.category.property.service.persistence.impl.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.
Caching information and settings can be found in portal.properties
AssetCategoryPropertyPersistence
Constructor and Description |
---|
AssetCategoryPropertyUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(AssetCategoryProperty assetCategoryProperty)
Caches the asset category property in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.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()
Returns the number of asset category properties.
|
static int |
countByC_K(long companyId,
java.lang.String key)
Returns the number of asset category properties where companyId = ? and key = ?.
|
static int |
countByCA_K(long categoryId,
java.lang.String key)
Returns the number of asset category properties where categoryId = ? and key = ?.
|
static int |
countByCategoryId(long categoryId)
Returns the number of asset category properties where categoryId = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of asset category properties where companyId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static AssetCategoryProperty |
create(long categoryPropertyId)
Creates a new asset category property with the primary key.
|
static AssetCategoryProperty |
fetchByC_K_First(long companyId,
java.lang.String key,
com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the first asset category property in the ordered set where companyId = ? and key = ?.
|
static AssetCategoryProperty |
fetchByC_K_Last(long companyId,
java.lang.String key,
com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the last asset category property in the ordered set where companyId = ? and key = ?.
|
static AssetCategoryProperty |
fetchByCA_K(long categoryId,
java.lang.String key)
Returns the asset category property where categoryId = ? and key = ? or returns
null if it could not be found. |
static AssetCategoryProperty |
fetchByCA_K(long categoryId,
java.lang.String key,
boolean useFinderCache)
Returns the asset category property where categoryId = ? and key = ? or returns
null if it could not be found, optionally using the finder cache. |
static AssetCategoryProperty |
fetchByCategoryId_First(long categoryId,
com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the first asset category property in the ordered set where categoryId = ?.
|
static AssetCategoryProperty |
fetchByCategoryId_Last(long categoryId,
com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the last asset category property in the ordered set where categoryId = ?.
|
static AssetCategoryProperty |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the first asset category property in the ordered set where companyId = ?.
|
static AssetCategoryProperty |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the last asset category property in the ordered set where companyId = ?.
|
static AssetCategoryProperty |
fetchByPrimaryKey(long categoryPropertyId)
Returns the asset category property with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,AssetCategoryProperty> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<AssetCategoryProperty> |
findAll()
Returns all the asset category properties.
|
static java.util.List<AssetCategoryProperty> |
findAll(int start,
int end)
Returns a range of all the asset category properties.
|
static java.util.List<AssetCategoryProperty> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns an ordered range of all the asset category properties.
|
static java.util.List<AssetCategoryProperty> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the asset category properties.
|
static AssetCategoryProperty |
findByC_K_First(long companyId,
java.lang.String key,
com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the first asset category property in the ordered set where companyId = ? and key = ?.
|
static AssetCategoryProperty |
findByC_K_Last(long companyId,
java.lang.String key,
com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the last asset category property in the ordered set where companyId = ? and key = ?.
|
static AssetCategoryProperty[] |
findByC_K_PrevAndNext(long categoryPropertyId,
long companyId,
java.lang.String key,
com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the asset category properties before and after the current asset category property in the ordered set where companyId = ? and key = ?.
|
static java.util.List<AssetCategoryProperty> |
findByC_K(long companyId,
java.lang.String key)
Returns all the asset category properties where companyId = ? and key = ?.
|
static java.util.List<AssetCategoryProperty> |
findByC_K(long companyId,
java.lang.String key,
int start,
int end)
Returns a range of all the asset category properties where companyId = ? and key = ?.
|
static java.util.List<AssetCategoryProperty> |
findByC_K(long companyId,
java.lang.String key,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns an ordered range of all the asset category properties where companyId = ? and key = ?.
|
static java.util.List<AssetCategoryProperty> |
findByC_K(long companyId,
java.lang.String key,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the asset category properties where companyId = ? and key = ?.
|
static AssetCategoryProperty |
findByCA_K(long categoryId,
java.lang.String key)
Returns the asset category property where categoryId = ? and key = ? or throws a
NoSuchCategoryPropertyException if it could not be found. |
static AssetCategoryProperty |
findByCategoryId_First(long categoryId,
com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the first asset category property in the ordered set where categoryId = ?.
|
static AssetCategoryProperty |
findByCategoryId_Last(long categoryId,
com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the last asset category property in the ordered set where categoryId = ?.
|
static AssetCategoryProperty[] |
findByCategoryId_PrevAndNext(long categoryPropertyId,
long categoryId,
com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the asset category properties before and after the current asset category property in the ordered set where categoryId = ?.
|
static java.util.List<AssetCategoryProperty> |
findByCategoryId(long categoryId)
Returns all the asset category properties where categoryId = ?.
|
static java.util.List<AssetCategoryProperty> |
findByCategoryId(long categoryId,
int start,
int end)
Returns a range of all the asset category properties where categoryId = ?.
|
static java.util.List<AssetCategoryProperty> |
findByCategoryId(long categoryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns an ordered range of all the asset category properties where categoryId = ?.
|
static java.util.List<AssetCategoryProperty> |
findByCategoryId(long categoryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the asset category properties where categoryId = ?.
|
static AssetCategoryProperty |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the first asset category property in the ordered set where companyId = ?.
|
static AssetCategoryProperty |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the last asset category property in the ordered set where companyId = ?.
|
static AssetCategoryProperty[] |
findByCompanyId_PrevAndNext(long categoryPropertyId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns the asset category properties before and after the current asset category property in the ordered set where companyId = ?.
|
static java.util.List<AssetCategoryProperty> |
findByCompanyId(long companyId)
Returns all the asset category properties where companyId = ?.
|
static java.util.List<AssetCategoryProperty> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the asset category properties where companyId = ?.
|
static java.util.List<AssetCategoryProperty> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
Returns an ordered range of all the asset category properties where companyId = ?.
|
static java.util.List<AssetCategoryProperty> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the asset category properties where companyId = ?.
|
static AssetCategoryProperty |
findByPrimaryKey(long categoryPropertyId)
Returns the asset category property with the primary key or throws a
NoSuchCategoryPropertyException if it could not be found. |
static java.util.List<AssetCategoryProperty> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<AssetCategoryProperty> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<AssetCategoryProperty> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator) |
static AssetCategoryPropertyPersistence |
getPersistence() |
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,
java.lang.String key)
Removes all the asset category properties where companyId = ? and key = ? from the database.
|
static AssetCategoryProperty |
removeByCA_K(long categoryId,
java.lang.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.
|
static AssetCategoryProperty |
update(AssetCategoryProperty assetCategoryProperty) |
static AssetCategoryProperty |
update(AssetCategoryProperty assetCategoryProperty,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static AssetCategoryProperty |
updateImpl(AssetCategoryProperty assetCategoryProperty) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(AssetCategoryProperty assetCategoryProperty)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,AssetCategoryProperty> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<AssetCategoryProperty> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<AssetCategoryProperty> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<AssetCategoryProperty> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static AssetCategoryProperty update(AssetCategoryProperty assetCategoryProperty)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static AssetCategoryProperty update(AssetCategoryProperty assetCategoryProperty, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<AssetCategoryProperty> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<AssetCategoryProperty> findByCompanyId(long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AssetCategoryPropertyModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of asset category propertiesend
- the upper bound of the range of asset category properties (not inclusive)public static java.util.List<AssetCategoryProperty> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AssetCategoryPropertyModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of asset category propertiesend
- the upper bound of the range of asset category properties (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<AssetCategoryProperty> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AssetCategoryPropertyModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of asset category propertiesend
- the upper bound of the range of asset category properties (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static AssetCategoryProperty findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator) throws NoSuchCategoryPropertyException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCategoryPropertyException
- if a matching asset category property could not be foundpublic static AssetCategoryProperty fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching asset category property could not be foundpublic static AssetCategoryProperty findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator) throws NoSuchCategoryPropertyException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCategoryPropertyException
- if a matching asset category property could not be foundpublic static AssetCategoryProperty fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching asset category property could not be foundpublic static AssetCategoryProperty[] findByCompanyId_PrevAndNext(long categoryPropertyId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator) throws NoSuchCategoryPropertyException
categoryPropertyId
- the primary key of the current asset category propertycompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCategoryPropertyException
- if a asset category property with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<AssetCategoryProperty> findByCategoryId(long categoryId)
categoryId
- the category IDpublic static java.util.List<AssetCategoryProperty> findByCategoryId(long categoryId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AssetCategoryPropertyModelImpl
.
categoryId
- the category IDstart
- the lower bound of the range of asset category propertiesend
- the upper bound of the range of asset category properties (not inclusive)public static java.util.List<AssetCategoryProperty> findByCategoryId(long categoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AssetCategoryPropertyModelImpl
.
categoryId
- the category IDstart
- the lower bound of the range of asset category propertiesend
- the upper bound of the range of asset category properties (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<AssetCategoryProperty> findByCategoryId(long categoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AssetCategoryPropertyModelImpl
.
categoryId
- the category IDstart
- the lower bound of the range of asset category propertiesend
- the upper bound of the range of asset category properties (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static AssetCategoryProperty findByCategoryId_First(long categoryId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator) throws NoSuchCategoryPropertyException
categoryId
- the category IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCategoryPropertyException
- if a matching asset category property could not be foundpublic static AssetCategoryProperty fetchByCategoryId_First(long categoryId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
categoryId
- the category IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching asset category property could not be foundpublic static AssetCategoryProperty findByCategoryId_Last(long categoryId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator) throws NoSuchCategoryPropertyException
categoryId
- the category IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCategoryPropertyException
- if a matching asset category property could not be foundpublic static AssetCategoryProperty fetchByCategoryId_Last(long categoryId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
categoryId
- the category IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching asset category property could not be foundpublic static AssetCategoryProperty[] findByCategoryId_PrevAndNext(long categoryPropertyId, long categoryId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator) throws NoSuchCategoryPropertyException
categoryPropertyId
- the primary key of the current asset category propertycategoryId
- the category IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCategoryPropertyException
- if a asset category property with the primary key could not be foundpublic static void removeByCategoryId(long categoryId)
categoryId
- the category IDpublic static int countByCategoryId(long categoryId)
categoryId
- the category IDpublic static java.util.List<AssetCategoryProperty> findByC_K(long companyId, java.lang.String key)
companyId
- the company IDkey
- the keypublic static java.util.List<AssetCategoryProperty> findByC_K(long companyId, java.lang.String key, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AssetCategoryPropertyModelImpl
.
companyId
- the company IDkey
- the keystart
- the lower bound of the range of asset category propertiesend
- the upper bound of the range of asset category properties (not inclusive)public static java.util.List<AssetCategoryProperty> findByC_K(long companyId, java.lang.String key, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AssetCategoryPropertyModelImpl
.
companyId
- the company IDkey
- the keystart
- the lower bound of the range of asset category propertiesend
- the upper bound of the range of asset category properties (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<AssetCategoryProperty> findByC_K(long companyId, java.lang.String key, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AssetCategoryPropertyModelImpl
.
companyId
- the company IDkey
- the keystart
- the lower bound of the range of asset category propertiesend
- the upper bound of the range of asset category properties (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static AssetCategoryProperty findByC_K_First(long companyId, java.lang.String key, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator) throws NoSuchCategoryPropertyException
companyId
- the company IDkey
- the keyorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCategoryPropertyException
- if a matching asset category property could not be foundpublic static AssetCategoryProperty fetchByC_K_First(long companyId, java.lang.String key, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
companyId
- the company IDkey
- the keyorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching asset category property could not be foundpublic static AssetCategoryProperty findByC_K_Last(long companyId, java.lang.String key, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator) throws NoSuchCategoryPropertyException
companyId
- the company IDkey
- the keyorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCategoryPropertyException
- if a matching asset category property could not be foundpublic static AssetCategoryProperty fetchByC_K_Last(long companyId, java.lang.String key, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
companyId
- the company IDkey
- the keyorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching asset category property could not be foundpublic static AssetCategoryProperty[] findByC_K_PrevAndNext(long categoryPropertyId, long companyId, java.lang.String key, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator) throws NoSuchCategoryPropertyException
categoryPropertyId
- the primary key of the current asset category propertycompanyId
- the company IDkey
- the keyorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCategoryPropertyException
- if a asset category property with the primary key could not be foundpublic static void removeByC_K(long companyId, java.lang.String key)
companyId
- the company IDkey
- the keypublic static int countByC_K(long companyId, java.lang.String key)
companyId
- the company IDkey
- the keypublic static AssetCategoryProperty findByCA_K(long categoryId, java.lang.String key) throws NoSuchCategoryPropertyException
NoSuchCategoryPropertyException
if it could not be found.categoryId
- the category IDkey
- the keyNoSuchCategoryPropertyException
- if a matching asset category property could not be foundpublic static AssetCategoryProperty fetchByCA_K(long categoryId, java.lang.String key)
null
if it could not be found. Uses the finder cache.categoryId
- the category IDkey
- the keynull
if a matching asset category property could not be foundpublic static AssetCategoryProperty fetchByCA_K(long categoryId, java.lang.String key, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.categoryId
- the category IDkey
- the keyuseFinderCache
- whether to use the finder cachenull
if a matching asset category property could not be foundpublic static AssetCategoryProperty removeByCA_K(long categoryId, java.lang.String key) throws NoSuchCategoryPropertyException
categoryId
- the category IDkey
- the keyNoSuchCategoryPropertyException
public static int countByCA_K(long categoryId, java.lang.String key)
categoryId
- the category IDkey
- the keypublic static void cacheResult(AssetCategoryProperty assetCategoryProperty)
assetCategoryProperty
- the asset category propertypublic static void cacheResult(java.util.List<AssetCategoryProperty> assetCategoryProperties)
assetCategoryProperties
- the asset category propertiespublic static AssetCategoryProperty create(long categoryPropertyId)
categoryPropertyId
- the primary key for the new asset category propertypublic static AssetCategoryProperty remove(long categoryPropertyId) throws NoSuchCategoryPropertyException
categoryPropertyId
- the primary key of the asset category propertyNoSuchCategoryPropertyException
- if a asset category property with the primary key could not be foundpublic static AssetCategoryProperty updateImpl(AssetCategoryProperty assetCategoryProperty)
public static AssetCategoryProperty findByPrimaryKey(long categoryPropertyId) throws NoSuchCategoryPropertyException
NoSuchCategoryPropertyException
if it could not be found.categoryPropertyId
- the primary key of the asset category propertyNoSuchCategoryPropertyException
- if a asset category property with the primary key could not be foundpublic static AssetCategoryProperty fetchByPrimaryKey(long categoryPropertyId)
null
if it could not be found.categoryPropertyId
- the primary key of the asset category propertynull
if a asset category property with the primary key could not be foundpublic static java.util.List<AssetCategoryProperty> findAll()
public static java.util.List<AssetCategoryProperty> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AssetCategoryPropertyModelImpl
.
start
- the lower bound of the range of asset category propertiesend
- the upper bound of the range of asset category properties (not inclusive)public static java.util.List<AssetCategoryProperty> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AssetCategoryPropertyModelImpl
.
start
- the lower bound of the range of asset category propertiesend
- the upper bound of the range of asset category properties (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<AssetCategoryProperty> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from AssetCategoryPropertyModelImpl
.
start
- the lower bound of the range of asset category propertiesend
- the upper bound of the range of asset category properties (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static AssetCategoryPropertyPersistence getPersistence()