Liferay 6.2-ce-ga5

com.liferay.portlet.asset.service.persistence
Class AssetCategoryPropertyUtil

java.lang.Object
  extended by com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyUtil

@ProviderType
public class AssetCategoryPropertyUtil
extends Object

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.

Caching information and settings can be found in portal.properties

See Also:
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()
          Returns the number of asset category properties.
static int countByC_K(long companyId, String key)
          Returns the number of asset category properties where companyId = ? and key = ?.
static int countByCA_K(long categoryId, 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(DynamicQuery dynamicQuery)
           
static AssetCategoryProperty create(long categoryPropertyId)
          Creates a new asset category property with the primary key.
static AssetCategoryProperty fetchByC_K_First(long companyId, String key, OrderByComparator orderByComparator)
          Returns the first asset category property in the ordered set where companyId = ? and key = ?.
static AssetCategoryProperty fetchByC_K_Last(long companyId, String key, OrderByComparator orderByComparator)
          Returns the last asset category property in the ordered set where companyId = ? and key = ?.
static AssetCategoryProperty fetchByCA_K(long categoryId, 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, String key, boolean retrieveFromCache)
          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, OrderByComparator orderByComparator)
          Returns the first asset category property in the ordered set where categoryId = ?.
static AssetCategoryProperty fetchByCategoryId_Last(long categoryId, OrderByComparator orderByComparator)
          Returns the last asset category property in the ordered set where categoryId = ?.
static AssetCategoryProperty fetchByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first asset category property in the ordered set where companyId = ?.
static AssetCategoryProperty fetchByCompanyId_Last(long companyId, OrderByComparator 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 List<AssetCategoryProperty> findAll()
          Returns all the asset category properties.
static List<AssetCategoryProperty> findAll(int start, int end)
          Returns a range of all the asset category properties.
static List<AssetCategoryProperty> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the asset category properties.
static AssetCategoryProperty findByC_K_First(long companyId, String key, OrderByComparator orderByComparator)
          Returns the first asset category property in the ordered set where companyId = ? and key = ?.
static AssetCategoryProperty findByC_K_Last(long companyId, String key, OrderByComparator orderByComparator)
          Returns 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)
          Returns 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)
          Returns all the asset category properties where companyId = ? and key = ?.
static List<AssetCategoryProperty> findByC_K(long companyId, String key, int start, int end)
          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, OrderByComparator orderByComparator)
          Returns an ordered range of all the asset category properties where companyId = ? and key = ?.
static AssetCategoryProperty findByCA_K(long categoryId, 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, OrderByComparator orderByComparator)
          Returns the first asset category property in the ordered set where categoryId = ?.
static AssetCategoryProperty findByCategoryId_Last(long categoryId, OrderByComparator orderByComparator)
          Returns the last asset category property in the ordered set where categoryId = ?.
static AssetCategoryProperty[] findByCategoryId_PrevAndNext(long categoryPropertyId, long categoryId, OrderByComparator orderByComparator)
          Returns the asset category properties before and after the current asset category property in the ordered set where categoryId = ?.
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, OrderByComparator orderByComparator)
          Returns an ordered range of all the asset category properties where categoryId = ?.
static AssetCategoryProperty findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first asset category property in the ordered set where companyId = ?.
static AssetCategoryProperty findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last asset category property in the ordered set where companyId = ?.
static AssetCategoryProperty[] findByCompanyId_PrevAndNext(long categoryPropertyId, long companyId, OrderByComparator orderByComparator)
          Returns the asset category properties before and after the current asset category property in the ordered set where companyId = ?.
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, OrderByComparator orderByComparator)
          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 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(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 AssetCategoryProperty 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)
          Deprecated. As of 6.2.0
static AssetCategoryProperty update(AssetCategoryProperty assetCategoryProperty)
           
static AssetCategoryProperty update(AssetCategoryProperty assetCategoryProperty, ServiceContext serviceContext)
           
static AssetCategoryProperty updateImpl(AssetCategoryProperty assetCategoryProperty)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetCategoryPropertyUtil

public AssetCategoryPropertyUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(AssetCategoryProperty assetCategoryProperty)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
                                  throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<AssetCategoryProperty> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                                        throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<AssetCategoryProperty> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                               int start,
                                                               int end)
                                                        throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<AssetCategoryProperty> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                               int start,
                                                               int end,
                                                               OrderByComparator orderByComparator)
                                                        throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

update

public static AssetCategoryProperty update(AssetCategoryProperty assetCategoryProperty)
                                    throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel)

update

public static AssetCategoryProperty update(AssetCategoryProperty assetCategoryProperty,
                                           ServiceContext serviceContext)
                                    throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)

findByCompanyId

public static List<AssetCategoryProperty> findByCompanyId(long companyId)
                                                   throws SystemException
Returns all the asset category properties where companyId = ?.

Parameters:
companyId - the company ID
Returns:
the matching asset category properties
Throws:
SystemException - if a system exception occurred

findByCompanyId

public static List<AssetCategoryProperty> findByCompanyId(long companyId,
                                                          int start,
                                                          int end)
                                                   throws SystemException
Returns a range of all the asset category properties where companyId = ?.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryPropertyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
start - the lower bound of the range of asset category properties
end - the upper bound of the range of asset category properties (not inclusive)
Returns:
the range of matching asset category properties
Throws:
SystemException - if a system exception occurred

findByCompanyId

public static List<AssetCategoryProperty> findByCompanyId(long companyId,
                                                          int start,
                                                          int end,
                                                          OrderByComparator orderByComparator)
                                                   throws SystemException
Returns an ordered range of all the asset category properties where companyId = ?.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryPropertyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
start - the lower bound of the range of asset category properties
end - the upper bound of the range of asset category properties (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset category properties
Throws:
SystemException - if a system exception occurred

findByCompanyId_First

public static AssetCategoryProperty findByCompanyId_First(long companyId,
                                                          OrderByComparator orderByComparator)
                                                   throws SystemException,
                                                          NoSuchCategoryPropertyException
Returns the first asset category property in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category property
Throws:
NoSuchCategoryPropertyException - if a matching asset category property could not be found
SystemException - if a system exception occurred

fetchByCompanyId_First

public static AssetCategoryProperty fetchByCompanyId_First(long companyId,
                                                           OrderByComparator orderByComparator)
                                                    throws SystemException
Returns the first asset category property in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category property, or null if a matching asset category property could not be found
Throws:
SystemException - if a system exception occurred

findByCompanyId_Last

public static AssetCategoryProperty findByCompanyId_Last(long companyId,
                                                         OrderByComparator orderByComparator)
                                                  throws SystemException,
                                                         NoSuchCategoryPropertyException
Returns the last asset category property in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category property
Throws:
NoSuchCategoryPropertyException - if a matching asset category property could not be found
SystemException - if a system exception occurred

fetchByCompanyId_Last

public static AssetCategoryProperty fetchByCompanyId_Last(long companyId,
                                                          OrderByComparator orderByComparator)
                                                   throws SystemException
Returns the last asset category property in the ordered set where companyId = ?.

Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category property, or null if a matching asset category property could not be found
Throws:
SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

public static AssetCategoryProperty[] findByCompanyId_PrevAndNext(long categoryPropertyId,
                                                                  long companyId,
                                                                  OrderByComparator orderByComparator)
                                                           throws SystemException,
                                                                  NoSuchCategoryPropertyException
Returns the asset category properties before and after the current asset category property in the ordered set where companyId = ?.

Parameters:
categoryPropertyId - the primary key of the current asset category property
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset category property
Throws:
NoSuchCategoryPropertyException - if a asset category property with the primary key could not be found
SystemException - if a system exception occurred

removeByCompanyId

public static void removeByCompanyId(long companyId)
                              throws SystemException
Removes all the asset category properties where companyId = ? from the database.

Parameters:
companyId - the company ID
Throws:
SystemException - if a system exception occurred

countByCompanyId

public static int countByCompanyId(long companyId)
                            throws SystemException
Returns the number of asset category properties where companyId = ?.

Parameters:
companyId - the company ID
Returns:
the number of matching asset category properties
Throws:
SystemException - if a system exception occurred

findByCategoryId

public static List<AssetCategoryProperty> findByCategoryId(long categoryId)
                                                    throws SystemException
Returns all the asset category properties where categoryId = ?.

Parameters:
categoryId - the category ID
Returns:
the matching asset category properties
Throws:
SystemException - if a system exception occurred

findByCategoryId

public static List<AssetCategoryProperty> findByCategoryId(long categoryId,
                                                           int start,
                                                           int end)
                                                    throws SystemException
Returns a range of all the asset category properties where categoryId = ?.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryPropertyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
categoryId - the category ID
start - the lower bound of the range of asset category properties
end - the upper bound of the range of asset category properties (not inclusive)
Returns:
the range of matching asset category properties
Throws:
SystemException - if a system exception occurred

findByCategoryId

public static List<AssetCategoryProperty> findByCategoryId(long categoryId,
                                                           int start,
                                                           int end,
                                                           OrderByComparator orderByComparator)
                                                    throws SystemException
Returns an ordered range of all the asset category properties where categoryId = ?.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryPropertyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
categoryId - the category ID
start - the lower bound of the range of asset category properties
end - the upper bound of the range of asset category properties (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset category properties
Throws:
SystemException - if a system exception occurred

findByCategoryId_First

public static AssetCategoryProperty findByCategoryId_First(long categoryId,
                                                           OrderByComparator orderByComparator)
                                                    throws SystemException,
                                                           NoSuchCategoryPropertyException
Returns the first asset category property in the ordered set where categoryId = ?.

Parameters:
categoryId - the category ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category property
Throws:
NoSuchCategoryPropertyException - if a matching asset category property could not be found
SystemException - if a system exception occurred

fetchByCategoryId_First

public static AssetCategoryProperty fetchByCategoryId_First(long categoryId,
                                                            OrderByComparator orderByComparator)
                                                     throws SystemException
Returns the first asset category property in the ordered set where categoryId = ?.

Parameters:
categoryId - the category ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category property, or null if a matching asset category property could not be found
Throws:
SystemException - if a system exception occurred

findByCategoryId_Last

public static AssetCategoryProperty findByCategoryId_Last(long categoryId,
                                                          OrderByComparator orderByComparator)
                                                   throws SystemException,
                                                          NoSuchCategoryPropertyException
Returns the last asset category property in the ordered set where categoryId = ?.

Parameters:
categoryId - the category ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category property
Throws:
NoSuchCategoryPropertyException - if a matching asset category property could not be found
SystemException - if a system exception occurred

fetchByCategoryId_Last

public static AssetCategoryProperty fetchByCategoryId_Last(long categoryId,
                                                           OrderByComparator orderByComparator)
                                                    throws SystemException
Returns the last asset category property in the ordered set where categoryId = ?.

Parameters:
categoryId - the category ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category property, or null if a matching asset category property could not be found
Throws:
SystemException - if a system exception occurred

findByCategoryId_PrevAndNext

public static AssetCategoryProperty[] findByCategoryId_PrevAndNext(long categoryPropertyId,
                                                                   long categoryId,
                                                                   OrderByComparator orderByComparator)
                                                            throws SystemException,
                                                                   NoSuchCategoryPropertyException
Returns the asset category properties before and after the current asset category property in the ordered set where categoryId = ?.

Parameters:
categoryPropertyId - the primary key of the current asset category property
categoryId - the category ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset category property
Throws:
NoSuchCategoryPropertyException - if a asset category property with the primary key could not be found
SystemException - if a system exception occurred

removeByCategoryId

public static void removeByCategoryId(long categoryId)
                               throws SystemException
Removes all the asset category properties where categoryId = ? from the database.

Parameters:
categoryId - the category ID
Throws:
SystemException - if a system exception occurred

countByCategoryId

public static int countByCategoryId(long categoryId)
                             throws SystemException
Returns the number of asset category properties where categoryId = ?.

Parameters:
categoryId - the category ID
Returns:
the number of matching asset category properties
Throws:
SystemException - if a system exception occurred

findByC_K

public static List<AssetCategoryProperty> findByC_K(long companyId,
                                                    String key)
                                             throws SystemException
Returns all the asset category properties where companyId = ? and key = ?.

Parameters:
companyId - the company ID
key - the key
Returns:
the matching asset category properties
Throws:
SystemException - if a system exception occurred

findByC_K

public static List<AssetCategoryProperty> findByC_K(long companyId,
                                                    String key,
                                                    int start,
                                                    int end)
                                             throws SystemException
Returns a range of all the asset category properties where companyId = ? and key = ?.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryPropertyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
key - the key
start - the lower bound of the range of asset category properties
end - the upper bound of the range of asset category properties (not inclusive)
Returns:
the range of matching asset category properties
Throws:
SystemException - if a system exception occurred

findByC_K

public static List<AssetCategoryProperty> findByC_K(long companyId,
                                                    String key,
                                                    int start,
                                                    int end,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException
Returns an ordered range of all the asset category properties where companyId = ? and key = ?.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryPropertyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
companyId - the company ID
key - the key
start - the lower bound of the range of asset category properties
end - the upper bound of the range of asset category properties (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset category properties
Throws:
SystemException - if a system exception occurred

findByC_K_First

public static AssetCategoryProperty findByC_K_First(long companyId,
                                                    String key,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException,
                                                    NoSuchCategoryPropertyException
Returns the first asset category property in the ordered set where companyId = ? and key = ?.

Parameters:
companyId - the company ID
key - the key
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category property
Throws:
NoSuchCategoryPropertyException - if a matching asset category property could not be found
SystemException - if a system exception occurred

fetchByC_K_First

public static AssetCategoryProperty fetchByC_K_First(long companyId,
                                                     String key,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException
Returns the first asset category property in the ordered set where companyId = ? and key = ?.

Parameters:
companyId - the company ID
key - the key
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset category property, or null if a matching asset category property could not be found
Throws:
SystemException - if a system exception occurred

findByC_K_Last

public static AssetCategoryProperty findByC_K_Last(long companyId,
                                                   String key,
                                                   OrderByComparator orderByComparator)
                                            throws SystemException,
                                                   NoSuchCategoryPropertyException
Returns the last asset category property in the ordered set where companyId = ? and key = ?.

Parameters:
companyId - the company ID
key - the key
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category property
Throws:
NoSuchCategoryPropertyException - if a matching asset category property could not be found
SystemException - if a system exception occurred

fetchByC_K_Last

public static AssetCategoryProperty fetchByC_K_Last(long companyId,
                                                    String key,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException
Returns the last asset category property in the ordered set where companyId = ? and key = ?.

Parameters:
companyId - the company ID
key - the key
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset category property, or null if a matching asset category property could not be found
Throws:
SystemException - if a system exception occurred

findByC_K_PrevAndNext

public static AssetCategoryProperty[] findByC_K_PrevAndNext(long categoryPropertyId,
                                                            long companyId,
                                                            String key,
                                                            OrderByComparator orderByComparator)
                                                     throws SystemException,
                                                            NoSuchCategoryPropertyException
Returns the asset category properties before and after the current asset category property in the ordered set where companyId = ? and key = ?.

Parameters:
categoryPropertyId - the primary key of the current asset category property
companyId - the company ID
key - the key
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset category property
Throws:
NoSuchCategoryPropertyException - if a asset category property with the primary key could not be found
SystemException - if a system exception occurred

removeByC_K

public static void removeByC_K(long companyId,
                               String key)
                        throws SystemException
Removes all the asset category properties where companyId = ? and key = ? from the database.

Parameters:
companyId - the company ID
key - the key
Throws:
SystemException - if a system exception occurred

countByC_K

public static int countByC_K(long companyId,
                             String key)
                      throws SystemException
Returns the number of asset category properties where companyId = ? and key = ?.

Parameters:
companyId - the company ID
key - the key
Returns:
the number of matching asset category properties
Throws:
SystemException - if a system exception occurred

findByCA_K

public static AssetCategoryProperty findByCA_K(long categoryId,
                                               String key)
                                        throws SystemException,
                                               NoSuchCategoryPropertyException
Returns the asset category property where categoryId = ? and key = ? or throws a NoSuchCategoryPropertyException if it could not be found.

Parameters:
categoryId - the category ID
key - the key
Returns:
the matching asset category property
Throws:
NoSuchCategoryPropertyException - if a matching asset category property could not be found
SystemException - if a system exception occurred

fetchByCA_K

public static AssetCategoryProperty fetchByCA_K(long categoryId,
                                                String key)
                                         throws SystemException
Returns the asset category property where categoryId = ? and key = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
categoryId - the category ID
key - the key
Returns:
the matching asset category property, or null if a matching asset category property could not be found
Throws:
SystemException - if a system exception occurred

fetchByCA_K

public static AssetCategoryProperty fetchByCA_K(long categoryId,
                                                String key,
                                                boolean retrieveFromCache)
                                         throws SystemException
Returns the asset category property where categoryId = ? and key = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
categoryId - the category ID
key - the key
retrieveFromCache - whether to use the finder cache
Returns:
the matching asset category property, or null if a matching asset category property could not be found
Throws:
SystemException - if a system exception occurred

removeByCA_K

public static AssetCategoryProperty removeByCA_K(long categoryId,
                                                 String key)
                                          throws SystemException,
                                                 NoSuchCategoryPropertyException
Removes the asset category property where categoryId = ? and key = ? from the database.

Parameters:
categoryId - the category ID
key - the key
Returns:
the asset category property that was removed
Throws:
SystemException - if a system exception occurred
NoSuchCategoryPropertyException

countByCA_K

public static int countByCA_K(long categoryId,
                              String key)
                       throws SystemException
Returns the number of asset category properties where categoryId = ? and key = ?.

Parameters:
categoryId - the category ID
key - the key
Returns:
the number of matching asset category properties
Throws:
SystemException - if a system exception occurred

cacheResult

public static void cacheResult(AssetCategoryProperty assetCategoryProperty)
Caches the asset category property in the entity cache if it is enabled.

Parameters:
assetCategoryProperty - the asset category property

cacheResult

public static void cacheResult(List<AssetCategoryProperty> assetCategoryProperties)
Caches the asset category properties in the entity cache if it is enabled.

Parameters:
assetCategoryProperties - the asset category properties

create

public static AssetCategoryProperty create(long categoryPropertyId)
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 SystemException,
                                           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
Throws:
NoSuchCategoryPropertyException - if a asset category property with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

public static AssetCategoryProperty updateImpl(AssetCategoryProperty assetCategoryProperty)
                                        throws SystemException
Throws:
SystemException

findByPrimaryKey

public static AssetCategoryProperty findByPrimaryKey(long categoryPropertyId)
                                              throws SystemException,
                                                     NoSuchCategoryPropertyException
Returns the asset category property with the primary key or throws a NoSuchCategoryPropertyException if it could not be found.

Parameters:
categoryPropertyId - the primary key of the asset category property
Returns:
the asset category property
Throws:
NoSuchCategoryPropertyException - if a asset category property with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public static AssetCategoryProperty fetchByPrimaryKey(long categoryPropertyId)
                                               throws SystemException
Returns the asset category property with the primary key or returns null if it could not be found.

Parameters:
categoryPropertyId - the primary key of the asset category property
Returns:
the asset category property, or null if a asset category property with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findAll

public static List<AssetCategoryProperty> findAll()
                                           throws SystemException
Returns all the asset category properties.

Returns:
the asset category properties
Throws:
SystemException - if a system exception occurred

findAll

public static List<AssetCategoryProperty> findAll(int start,
                                                  int end)
                                           throws SystemException
Returns a range of all the asset category properties.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryPropertyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of asset category properties
end - the upper bound of the range of asset category properties (not inclusive)
Returns:
the range of asset category properties
Throws:
SystemException - if a system exception occurred

findAll

public static List<AssetCategoryProperty> findAll(int start,
                                                  int end,
                                                  OrderByComparator orderByComparator)
                                           throws SystemException
Returns an ordered range of all the asset category properties.

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 and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryPropertyModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of asset category properties
end - the upper bound of the range of asset category properties (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of asset category properties
Throws:
SystemException - if a system exception occurred

removeAll

public static void removeAll()
                      throws SystemException
Removes all the asset category properties from the database.

Throws:
SystemException - if a system exception occurred

countAll

public static int countAll()
                    throws SystemException
Returns the number of asset category properties.

Returns:
the number of asset category properties
Throws:
SystemException - if a system exception occurred

getPersistence

public static AssetCategoryPropertyPersistence getPersistence()

setPersistence

public void setPersistence(AssetCategoryPropertyPersistence persistence)
Deprecated. As of 6.2.0


Liferay 6.2-ce-ga5