Class AssetCategoryPropertyUtil
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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(AssetCategoryProperty assetCategoryProperty) static voidcacheResult(List<AssetCategoryProperty> assetCategoryProperties) static voidstatic voidclearCache(AssetCategoryProperty assetCategoryProperty) static intcountByC_K(long companyId, String key) Returns the number of asset category properties where companyId = ? and key = ?.static intcountByCA_K(long categoryId, String key) Returns the number of asset category properties where categoryId = ? and key = ?.static intcountByCategoryId(long categoryId) Returns the number of asset category properties where categoryId = ?.static intcountByCompanyId(long companyId) Returns the number of asset category properties where companyId = ?.static intcountByERC_C(String externalReferenceCode, long companyId) Returns the number of asset category properties where externalReferenceCode = ? and companyId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static AssetCategoryPropertycreate(long categoryPropertyId) Creates a new asset category property with the primary key.static AssetCategoryPropertyfetchByC_K_First(long companyId, 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 AssetCategoryPropertyfetchByCA_K(long categoryId, String key) Returns the asset category property where categoryId = ? and key = ? or returnsnullif it could not be found.static AssetCategoryPropertyfetchByCA_K(long categoryId, String key, boolean useFinderCache) Returns the asset category property where categoryId = ? and key = ? or returnsnullif it could not be found, optionally using the finder cache.static AssetCategoryPropertyfetchByCategoryId_First(long categoryId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator) Returns the first asset category property in the ordered set where categoryId = ?.static AssetCategoryPropertyfetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator) Returns the first asset category property in the ordered set where companyId = ?.static AssetCategoryPropertyfetchByERC_C(String externalReferenceCode, long companyId) Returns the asset category property where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found.static AssetCategoryPropertyfetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the asset category property where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found, optionally using the finder cache.static AssetCategoryPropertyfetchByPrimaryKey(long categoryPropertyId) Returns the asset category property with the primary key or returnsnullif it could not be found.static Map<Serializable, AssetCategoryProperty> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static List<AssetCategoryProperty> Returns all the asset category properties where companyId = ? and key = ?.static List<AssetCategoryProperty> Returns 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, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator) Returns an ordered range of all the asset category properties where companyId = ? and key = ?.static List<AssetCategoryProperty> findByC_K(long companyId, 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 AssetCategoryPropertyfindByC_K_First(long companyId, 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 AssetCategoryPropertyfindByCA_K(long categoryId, String key) Returns the asset category property where categoryId = ? and key = ? or throws aNoSuchCategoryPropertyExceptionif it could not be found.static List<AssetCategoryProperty> findByCategoryId(long categoryId) Returns all the asset category properties where categoryId = ?.static List<AssetCategoryProperty> findByCategoryId(long categoryId, int start, int end) Returns a range of all the asset category properties where categoryId = ?.static 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 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 AssetCategoryPropertyfindByCategoryId_First(long categoryId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator) Returns the first asset category property in the ordered set where categoryId = ?.static List<AssetCategoryProperty> findByCompanyId(long companyId) Returns all the asset category properties where companyId = ?.static List<AssetCategoryProperty> findByCompanyId(long companyId, int start, int end) Returns a range of all the asset category properties where companyId = ?.static 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 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 AssetCategoryPropertyfindByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator) Returns the first asset category property in the ordered set where companyId = ?.static AssetCategoryPropertyfindByERC_C(String externalReferenceCode, long companyId) Returns the asset category property where externalReferenceCode = ? and companyId = ? or throws aNoSuchCategoryPropertyExceptionif it could not be found.static AssetCategoryPropertyfindByPrimaryKey(long categoryPropertyId) Returns the asset category property with the primary key or throws aNoSuchCategoryPropertyExceptionif it could not be found.static List<AssetCategoryProperty> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<AssetCategoryProperty> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<AssetCategoryProperty> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator) static AssetCategoryPropertyremove(long categoryPropertyId) Removes the asset category property with the primary key from the database.static voidremoveByC_K(long companyId, String key) Removes all the asset category properties where companyId = ? and key = ? from the database.static AssetCategoryPropertyremoveByCA_K(long categoryId, String key) Removes the asset category property where categoryId = ? and key = ? from the database.static voidremoveByCategoryId(long categoryId) Removes all the asset category properties where categoryId = ? from the database.static voidremoveByCompanyId(long companyId) Removes all the asset category properties where companyId = ? from the database.static AssetCategoryPropertyremoveByERC_C(String externalReferenceCode, long companyId) Removes the asset category property where externalReferenceCode = ? and companyId = ? from the database.static voidsetPersistence(AssetCategoryPropertyPersistence persistence) static AssetCategoryPropertyupdate(AssetCategoryProperty assetCategoryProperty) static AssetCategoryPropertyupdate(AssetCategoryProperty assetCategoryProperty, com.liferay.portal.kernel.service.ServiceContext serviceContext) static AssetCategoryPropertyupdateImpl(AssetCategoryProperty assetCategoryProperty)
-
Constructor Details
-
AssetCategoryPropertyUtil
public AssetCategoryPropertyUtil()
-
-
Method Details
-
cacheResult
- See Also:
-
cacheResult
- See Also:
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
public static Map<Serializable,AssetCategoryProperty> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
findWithDynamicQuery
public static List<AssetCategoryProperty> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<AssetCategoryProperty> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<AssetCategoryProperty> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator) - See Also:
-
update
- See Also:
-
update
public static AssetCategoryProperty update(AssetCategoryProperty assetCategoryProperty, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByCompanyId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.asset.category.property.model.impl.AssetCategoryPropertyModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching asset category properties
-
findByCompanyId_First
public static AssetCategoryProperty findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator) throws NoSuchCategoryPropertyException Returns the first asset category property in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching asset category property
-
fetchByCompanyId_First
public 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 = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching asset category property, or
nullif a matching asset category property could not be found
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the asset category properties where companyId = ? from the database.- Parameters:
companyId- the company ID
-
countByCompanyId
public static int countByCompanyId(long companyId) Returns the number of asset category properties where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching asset category properties
-
findByCategoryId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.asset.category.property.model.impl.AssetCategoryPropertyModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching asset category properties
-
findByCategoryId_First
public static AssetCategoryProperty findByCategoryId_First(long categoryId, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator) throws NoSuchCategoryPropertyException Returns the first asset category property in the ordered set where categoryId = ?.- Parameters:
categoryId- the category IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching asset category property
-
fetchByCategoryId_First
public 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 = ?.- Parameters:
categoryId- the category IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching asset category property, or
nullif a matching asset category property could not be found
-
removeByCategoryId
public static void removeByCategoryId(long categoryId) Removes all the asset category properties where categoryId = ? from the database.- Parameters:
categoryId- the category ID
-
countByCategoryId
public static int countByCategoryId(long categoryId) Returns the number of asset category properties where categoryId = ?.- Parameters:
categoryId- the category ID- Returns:
- the number of matching asset category properties
-
findByC_K
public static List<AssetCategoryProperty> findByC_K(long companyId, 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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.asset.category.property.model.impl.AssetCategoryPropertyModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching asset category properties
-
findByC_K_First
public static AssetCategoryProperty findByC_K_First(long companyId, String key, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator) throws NoSuchCategoryPropertyException Returns the first asset category property in the ordered set where companyId = ? and key = ?.- Parameters:
companyId- the company IDkey- the keyorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching asset category property
-
fetchByC_K_First
public static AssetCategoryProperty fetchByC_K_First(long companyId, String key, com.liferay.portal.kernel.util.OrderByComparator<AssetCategoryProperty> orderByComparator) Returns the first asset category property in the ordered set where companyId = ? and key = ?.- Parameters:
companyId- the company IDkey- the keyorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching asset category property, or
nullif a matching asset category property could not be found
-
removeByC_K
Removes all the asset category properties where companyId = ? and key = ? from the database.- Parameters:
companyId- the company IDkey- the key
-
countByC_K
Returns the number of asset category properties where companyId = ? and key = ?.- Parameters:
companyId- the company IDkey- the key- Returns:
- the number of matching asset category properties
-
findByCA_K
public static AssetCategoryProperty findByCA_K(long categoryId, String key) throws NoSuchCategoryPropertyException Returns the asset category property where categoryId = ? and key = ? or throws aNoSuchCategoryPropertyExceptionif it could not be found.- Parameters:
categoryId- the category IDkey- the key- Returns:
- the matching asset category property
-
fetchByCA_K
public static AssetCategoryProperty fetchByCA_K(long categoryId, String key, boolean useFinderCache) Returns the asset category property where categoryId = ? and key = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
categoryId- the category IDkey- the keyuseFinderCache- whether to use the finder cache- Returns:
- the matching asset category property, or
nullif a matching asset category property could not be found
-
removeByCA_K
public static AssetCategoryProperty removeByCA_K(long categoryId, String key) throws NoSuchCategoryPropertyException Removes the asset category property where categoryId = ? and key = ? from the database.- Parameters:
categoryId- the category IDkey- the key- Returns:
- the asset category property that was removed
- Throws:
NoSuchCategoryPropertyException
-
countByCA_K
Returns the number of asset category properties where categoryId = ? and key = ?.- Parameters:
categoryId- the category IDkey- the key- Returns:
- the number of matching asset category properties
-
findByERC_C
public static AssetCategoryProperty findByERC_C(String externalReferenceCode, long companyId) throws NoSuchCategoryPropertyException Returns the asset category property where externalReferenceCode = ? and companyId = ? or throws aNoSuchCategoryPropertyExceptionif it could not be found.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the matching asset category property
-
fetchByERC_C
public static AssetCategoryProperty fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the asset category property where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company IDuseFinderCache- whether to use the finder cache- Returns:
- the matching asset category property, or
nullif a matching asset category property could not be found
-
removeByERC_C
public static AssetCategoryProperty removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchCategoryPropertyException Removes the asset category property where externalReferenceCode = ? and companyId = ? from the database.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the asset category property that was removed
- Throws:
NoSuchCategoryPropertyException
-
countByERC_C
Returns the number of asset category properties where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the number of matching asset category properties
-
create
Creates a new asset category property with the primary key. Does not add the asset category property to the database.- Parameters:
categoryPropertyId- the primary key for the new asset category property- Returns:
- the new asset category property
-
remove
public static AssetCategoryProperty remove(long categoryPropertyId) throws NoSuchCategoryPropertyException Removes the asset category property with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
categoryPropertyId- the primary key of the asset category property- Returns:
- the asset category property that was removed
-
updateImpl
-
findByPrimaryKey
public static AssetCategoryProperty findByPrimaryKey(long categoryPropertyId) throws NoSuchCategoryPropertyException Returns the asset category property with the primary key or throws aNoSuchCategoryPropertyExceptionif it could not be found.- Parameters:
categoryPropertyId- the primary key of the asset category property- Returns:
- the asset category property
-
fetchByPrimaryKey
Returns the asset category property with the primary key or returnsnullif it could not be found.- Parameters:
categoryPropertyId- the primary key of the asset category property- Returns:
- the asset category property, or
nullif a asset category property with the primary key could not be found
-
fetchByCA_K
Returns the asset category property where categoryId = ? and key = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
categoryId- the category IDkey- the key- Returns:
- the matching asset category property, or
nullif a matching asset category property could not be found
-
fetchByERC_C
Returns the asset category property where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the matching asset category property, or
nullif a matching asset category property could not be found
-
findByCompanyId
Returns all the asset category properties where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching asset category properties
-
findByCompanyId
Returns a range of all the asset category properties where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.asset.category.property.model.impl.AssetCategoryPropertyModelImpl.- Parameters:
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)- Returns:
- the range of matching asset category properties
-
findByCompanyId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.asset.category.property.model.impl.AssetCategoryPropertyModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching asset category properties
-
findByCategoryId
Returns all the asset category properties where categoryId = ?.- Parameters:
categoryId- the category ID- Returns:
- the matching asset category properties
-
findByCategoryId
Returns a range of all the asset category properties where categoryId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.asset.category.property.model.impl.AssetCategoryPropertyModelImpl.- Parameters:
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)- Returns:
- the range of matching asset category properties
-
findByCategoryId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.asset.category.property.model.impl.AssetCategoryPropertyModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching asset category properties
-
findByC_K
Returns all the asset category properties where companyId = ? and key = ?.- Parameters:
companyId- the company IDkey- the key- Returns:
- the matching asset category properties
-
findByC_K
Returns a range of all the asset category properties where companyId = ? and key = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.asset.category.property.model.impl.AssetCategoryPropertyModelImpl.- Parameters:
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)- Returns:
- the range of matching asset category properties
-
findByC_K
public static List<AssetCategoryProperty> findByC_K(long companyId, 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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.asset.category.property.model.impl.AssetCategoryPropertyModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching asset category properties
-
getPersistence
-
setPersistence
-