Liferay 6.1.2-ce-ga3

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

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<AssetCategoryProperty>
      extended by com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<AssetCategoryProperty>, AssetCategoryPropertyPersistence

public class AssetCategoryPropertyPersistenceImpl
extends BasePersistenceImpl<AssetCategoryProperty>
implements AssetCategoryPropertyPersistence

The persistence implementation for the asset category property service.

Caching information and settings can be found in portal.properties

See Also:
AssetCategoryPropertyPersistence, AssetCategoryPropertyUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
protected  AssetCategoryPersistence assetCategoryPersistence
           
protected  AssetCategoryPropertyPersistence assetCategoryPropertyPersistence
           
protected  AssetEntryPersistence assetEntryPersistence
           
protected  AssetLinkPersistence assetLinkPersistence
           
protected  AssetTagPersistence assetTagPersistence
           
protected  AssetTagPropertyPersistence assetTagPropertyPersistence
           
protected  AssetTagStatsPersistence assetTagStatsPersistence
           
protected  AssetVocabularyPersistence assetVocabularyPersistence
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_C_K
           
static FinderPath FINDER_PATH_COUNT_BY_CA_K
           
static FinderPath FINDER_PATH_COUNT_BY_CATEGORYID
           
static FinderPath FINDER_PATH_COUNT_BY_COMPANYID
           
static FinderPath FINDER_PATH_FETCH_BY_CA_K
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_K
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_CATEGORYID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_K
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CATEGORYID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
           
protected  ResourcePersistence resourcePersistence
           
protected  UserPersistence userPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
AssetCategoryPropertyPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the asset category property persistence.
 void cacheResult(AssetCategoryProperty assetCategoryProperty)
          Caches the asset category property in the entity cache if it is enabled.
 void cacheResult(List<AssetCategoryProperty> assetCategoryProperties)
          Caches the asset category properties in the entity cache if it is enabled.
protected  void cacheUniqueFindersCache(AssetCategoryProperty assetCategoryProperty)
           
 void clearCache()
          Clears the cache for all asset category properties.
 void clearCache(AssetCategoryProperty assetCategoryProperty)
          Clears the cache for the asset category property.
 void clearCache(List<AssetCategoryProperty> assetCategoryProperties)
          Clears the cache for a List instances of this model.
protected  void clearUniqueFindersCache(AssetCategoryProperty assetCategoryProperty)
           
 int countAll()
          Returns the number of asset category properties.
 int countByC_K(long companyId, String key)
          Returns the number of asset category properties where companyId = ? and key = ?.
 int countByCA_K(long categoryId, String key)
          Returns the number of asset category properties where categoryId = ? and key = ?.
 int countByCategoryId(long categoryId)
          Returns the number of asset category properties where categoryId = ?.
 int countByCompanyId(long companyId)
          Returns the number of asset category properties where companyId = ?.
 AssetCategoryProperty create(long categoryPropertyId)
          Creates a new asset category property with the primary key.
 void destroy()
           
 AssetCategoryProperty fetchByC_K_First(long companyId, String key, OrderByComparator orderByComparator)
          Returns the first asset category property in the ordered set where companyId = ? and key = ?.
 AssetCategoryProperty fetchByC_K_Last(long companyId, String key, OrderByComparator orderByComparator)
          Returns the last asset category property in the ordered set where companyId = ? and key = ?.
 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.
 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.
 AssetCategoryProperty fetchByCategoryId_First(long categoryId, OrderByComparator orderByComparator)
          Returns the first asset category property in the ordered set where categoryId = ?.
 AssetCategoryProperty fetchByCategoryId_Last(long categoryId, OrderByComparator orderByComparator)
          Returns the last asset category property in the ordered set where categoryId = ?.
 AssetCategoryProperty fetchByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first asset category property in the ordered set where companyId = ?.
 AssetCategoryProperty fetchByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last asset category property in the ordered set where companyId = ?.
 AssetCategoryProperty fetchByPrimaryKey(long categoryPropertyId)
          Returns the asset category property with the primary key or returns null if it could not be found.
 AssetCategoryProperty fetchByPrimaryKey(Serializable primaryKey)
          Returns the asset category property with the primary key or returns null if it could not be found.
 List<AssetCategoryProperty> findAll()
          Returns all the asset category properties.
 List<AssetCategoryProperty> findAll(int start, int end)
          Returns a range of all the asset category properties.
 List<AssetCategoryProperty> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the asset category properties.
 AssetCategoryProperty findByC_K_First(long companyId, String key, OrderByComparator orderByComparator)
          Returns the first asset category property in the ordered set where companyId = ? and key = ?.
 AssetCategoryProperty findByC_K_Last(long companyId, String key, OrderByComparator orderByComparator)
          Returns the last asset category property in the ordered set where companyId = ? and key = ?.
 AssetCategoryProperty[] findByC_K_PrevAndNext(long categoryPropertyId, long companyId, String key, OrderByComparator orderByComparator)
          Returns the asset category properties before and after the current asset category property in the ordered set where companyId = ? and key = ?.
 List<AssetCategoryProperty> findByC_K(long companyId, String key)
          Returns all the asset category properties where companyId = ? and key = ?.
 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 = ?.
 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 = ?.
 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.
 AssetCategoryProperty findByCategoryId_First(long categoryId, OrderByComparator orderByComparator)
          Returns the first asset category property in the ordered set where categoryId = ?.
 AssetCategoryProperty findByCategoryId_Last(long categoryId, OrderByComparator orderByComparator)
          Returns the last asset category property in the ordered set where categoryId = ?.
 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 = ?.
 List<AssetCategoryProperty> findByCategoryId(long categoryId)
          Returns all the asset category properties where categoryId = ?.
 List<AssetCategoryProperty> findByCategoryId(long categoryId, int start, int end)
          Returns a range of all the asset category properties where categoryId = ?.
 List<AssetCategoryProperty> findByCategoryId(long categoryId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the asset category properties where categoryId = ?.
 AssetCategoryProperty findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first asset category property in the ordered set where companyId = ?.
 AssetCategoryProperty findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last asset category property in the ordered set where companyId = ?.
 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 = ?.
 List<AssetCategoryProperty> findByCompanyId(long companyId)
          Returns all the asset category properties where companyId = ?.
 List<AssetCategoryProperty> findByCompanyId(long companyId, int start, int end)
          Returns a range of all the asset category properties where companyId = ?.
 List<AssetCategoryProperty> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the asset category properties where companyId = ?.
 AssetCategoryProperty findByPrimaryKey(long categoryPropertyId)
          Returns the asset category property with the primary key or throws a NoSuchCategoryPropertyException if it could not be found.
 AssetCategoryProperty findByPrimaryKey(Serializable primaryKey)
          Returns the asset category property with the primary key or throws a NoSuchModelException if it could not be found.
protected  AssetCategoryProperty getByC_K_PrevAndNext(Session session, AssetCategoryProperty assetCategoryProperty, long companyId, String key, OrderByComparator orderByComparator, boolean previous)
           
protected  AssetCategoryProperty getByCategoryId_PrevAndNext(Session session, AssetCategoryProperty assetCategoryProperty, long categoryId, OrderByComparator orderByComparator, boolean previous)
           
protected  AssetCategoryProperty getByCompanyId_PrevAndNext(Session session, AssetCategoryProperty assetCategoryProperty, long companyId, OrderByComparator orderByComparator, boolean previous)
           
 AssetCategoryProperty remove(long categoryPropertyId)
          Removes the asset category property with the primary key from the database.
 AssetCategoryProperty remove(Serializable primaryKey)
          Removes the asset category property with the primary key from the database.
 void removeAll()
          Removes all the asset category properties from the database.
 void removeByC_K(long companyId, String key)
          Removes all the asset category properties where companyId = ? and key = ? from the database.
 AssetCategoryProperty removeByCA_K(long categoryId, String key)
          Removes the asset category property where categoryId = ? and key = ? from the database.
 void removeByCategoryId(long categoryId)
          Removes all the asset category properties where categoryId = ? from the database.
 void removeByCompanyId(long companyId)
          Removes all the asset category properties where companyId = ? from the database.
protected  AssetCategoryProperty removeImpl(AssetCategoryProperty assetCategoryProperty)
          Removes the model instance from the database.
protected  AssetCategoryProperty toUnwrappedModel(AssetCategoryProperty assetCategoryProperty)
           
 AssetCategoryProperty updateImpl(AssetCategoryProperty assetCategoryProperty, boolean merge)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getClassLoader, getDataSource, getDB, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_COUNT_BY_COMPANYID

public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID

FINDER_PATH_WITH_PAGINATION_FIND_BY_CATEGORYID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_CATEGORYID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CATEGORYID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CATEGORYID

FINDER_PATH_COUNT_BY_CATEGORYID

public static final FinderPath FINDER_PATH_COUNT_BY_CATEGORYID

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_K

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_K

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_K

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_K

FINDER_PATH_COUNT_BY_C_K

public static final FinderPath FINDER_PATH_COUNT_BY_C_K

FINDER_PATH_FETCH_BY_CA_K

public static final FinderPath FINDER_PATH_FETCH_BY_CA_K

FINDER_PATH_COUNT_BY_CA_K

public static final FinderPath FINDER_PATH_COUNT_BY_CA_K

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

assetCategoryPersistence

@BeanReference(type=AssetCategoryPersistence.class)
protected AssetCategoryPersistence assetCategoryPersistence

assetCategoryPropertyPersistence

@BeanReference(type=AssetCategoryPropertyPersistence.class)
protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence

assetEntryPersistence

@BeanReference(type=AssetEntryPersistence.class)
protected AssetEntryPersistence assetEntryPersistence

assetLinkPersistence

@BeanReference(type=AssetLinkPersistence.class)
protected AssetLinkPersistence assetLinkPersistence

assetTagPersistence

@BeanReference(type=AssetTagPersistence.class)
protected AssetTagPersistence assetTagPersistence

assetTagPropertyPersistence

@BeanReference(type=AssetTagPropertyPersistence.class)
protected AssetTagPropertyPersistence assetTagPropertyPersistence

assetTagStatsPersistence

@BeanReference(type=AssetTagStatsPersistence.class)
protected AssetTagStatsPersistence assetTagStatsPersistence

assetVocabularyPersistence

@BeanReference(type=AssetVocabularyPersistence.class)
protected AssetVocabularyPersistence assetVocabularyPersistence

resourcePersistence

@BeanReference(type=ResourcePersistence.class)
protected ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence
Constructor Detail

AssetCategoryPropertyPersistenceImpl

public AssetCategoryPropertyPersistenceImpl()
Method Detail

cacheResult

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

Specified by:
cacheResult in interface AssetCategoryPropertyPersistence
Parameters:
assetCategoryProperty - the asset category property

cacheResult

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

Specified by:
cacheResult in interface AssetCategoryPropertyPersistence
Parameters:
assetCategoryProperties - the asset category properties

clearCache

public void clearCache()
Clears the cache for all asset category properties.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<AssetCategoryProperty>
Overrides:
clearCache in class BasePersistenceImpl<AssetCategoryProperty>

clearCache

public void clearCache(AssetCategoryProperty assetCategoryProperty)
Clears the cache for the asset category property.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<AssetCategoryProperty>
Overrides:
clearCache in class BasePersistenceImpl<AssetCategoryProperty>
Parameters:
assetCategoryProperty - the instance of this model to clear the cache for

clearCache

public void clearCache(List<AssetCategoryProperty> assetCategoryProperties)
Description copied from interface: BasePersistence
Clears the cache for a List instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<AssetCategoryProperty>
Overrides:
clearCache in class BasePersistenceImpl<AssetCategoryProperty>
Parameters:
assetCategoryProperties - the List instances of this model to clear the cache for

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(AssetCategoryProperty assetCategoryProperty)

clearUniqueFindersCache

protected void clearUniqueFindersCache(AssetCategoryProperty assetCategoryProperty)

create

public AssetCategoryProperty create(long categoryPropertyId)
Creates a new asset category property with the primary key. Does not add the asset category property to the database.

Specified by:
create in interface AssetCategoryPropertyPersistence
Parameters:
categoryPropertyId - the primary key for the new asset category property
Returns:
the new asset category property

remove

public AssetCategoryProperty remove(long categoryPropertyId)
                             throws NoSuchCategoryPropertyException,
                                    SystemException
Removes the asset category property with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface AssetCategoryPropertyPersistence
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

remove

public AssetCategoryProperty remove(Serializable primaryKey)
                             throws NoSuchCategoryPropertyException,
                                    SystemException
Removes the asset category property with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<AssetCategoryProperty>
Overrides:
remove in class BasePersistenceImpl<AssetCategoryProperty>
Parameters:
primaryKey - 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

removeImpl

protected AssetCategoryProperty removeImpl(AssetCategoryProperty assetCategoryProperty)
                                    throws SystemException
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<AssetCategoryProperty>
Parameters:
assetCategoryProperty - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public AssetCategoryProperty updateImpl(AssetCategoryProperty assetCategoryProperty,
                                        boolean merge)
                                 throws SystemException
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface AssetCategoryPropertyPersistence
Overrides:
updateImpl in class BasePersistenceImpl<AssetCategoryProperty>
Parameters:
assetCategoryProperty - the model instance to update
merge - whether to merge the model instance with the current session. See BatchSession.update( com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean) for an explanation.
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected AssetCategoryProperty toUnwrappedModel(AssetCategoryProperty assetCategoryProperty)

findByPrimaryKey

public AssetCategoryProperty findByPrimaryKey(Serializable primaryKey)
                                       throws NoSuchModelException,
                                              SystemException
Returns the asset category property with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<AssetCategoryProperty>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<AssetCategoryProperty>
Parameters:
primaryKey - the primary key of the asset category property
Returns:
the asset category property
Throws:
NoSuchModelException - if a asset category property with the primary key could not be found
SystemException - if a system exception occurred

findByPrimaryKey

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

Specified by:
findByPrimaryKey in interface AssetCategoryPropertyPersistence
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 AssetCategoryProperty fetchByPrimaryKey(Serializable primaryKey)
                                        throws SystemException
Returns the asset category property with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<AssetCategoryProperty>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<AssetCategoryProperty>
Parameters:
primaryKey - 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

fetchByPrimaryKey

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

Specified by:
fetchByPrimaryKey in interface AssetCategoryPropertyPersistence
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

findByCompanyId

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

Specified by:
findByCompanyId in interface AssetCategoryPropertyPersistence
Parameters:
companyId - the company ID
Returns:
the matching asset category properties
Throws:
SystemException - if a system exception occurred

findByCompanyId

public 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.

Specified by:
findByCompanyId in interface AssetCategoryPropertyPersistence
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 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.

Specified by:
findByCompanyId in interface AssetCategoryPropertyPersistence
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 AssetCategoryProperty findByCompanyId_First(long companyId,
                                                   OrderByComparator orderByComparator)
                                            throws NoSuchCategoryPropertyException,
                                                   SystemException
Returns the first asset category property in the ordered set where companyId = ?.

Specified by:
findByCompanyId_First in interface AssetCategoryPropertyPersistence
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 AssetCategoryProperty fetchByCompanyId_First(long companyId,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException
Returns the first asset category property in the ordered set where companyId = ?.

Specified by:
fetchByCompanyId_First in interface AssetCategoryPropertyPersistence
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 AssetCategoryProperty findByCompanyId_Last(long companyId,
                                                  OrderByComparator orderByComparator)
                                           throws NoSuchCategoryPropertyException,
                                                  SystemException
Returns the last asset category property in the ordered set where companyId = ?.

Specified by:
findByCompanyId_Last in interface AssetCategoryPropertyPersistence
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 AssetCategoryProperty fetchByCompanyId_Last(long companyId,
                                                   OrderByComparator orderByComparator)
                                            throws SystemException
Returns the last asset category property in the ordered set where companyId = ?.

Specified by:
fetchByCompanyId_Last in interface AssetCategoryPropertyPersistence
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 AssetCategoryProperty[] findByCompanyId_PrevAndNext(long categoryPropertyId,
                                                           long companyId,
                                                           OrderByComparator orderByComparator)
                                                    throws NoSuchCategoryPropertyException,
                                                           SystemException
Returns the asset category properties before and after the current asset category property in the ordered set where companyId = ?.

Specified by:
findByCompanyId_PrevAndNext in interface AssetCategoryPropertyPersistence
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

getByCompanyId_PrevAndNext

protected AssetCategoryProperty getByCompanyId_PrevAndNext(Session session,
                                                           AssetCategoryProperty assetCategoryProperty,
                                                           long companyId,
                                                           OrderByComparator orderByComparator,
                                                           boolean previous)

findByCategoryId

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

Specified by:
findByCategoryId in interface AssetCategoryPropertyPersistence
Parameters:
categoryId - the category ID
Returns:
the matching asset category properties
Throws:
SystemException - if a system exception occurred

findByCategoryId

public 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.

Specified by:
findByCategoryId in interface AssetCategoryPropertyPersistence
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 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.

Specified by:
findByCategoryId in interface AssetCategoryPropertyPersistence
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 AssetCategoryProperty findByCategoryId_First(long categoryId,
                                                    OrderByComparator orderByComparator)
                                             throws NoSuchCategoryPropertyException,
                                                    SystemException
Returns the first asset category property in the ordered set where categoryId = ?.

Specified by:
findByCategoryId_First in interface AssetCategoryPropertyPersistence
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 AssetCategoryProperty fetchByCategoryId_First(long categoryId,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException
Returns the first asset category property in the ordered set where categoryId = ?.

Specified by:
fetchByCategoryId_First in interface AssetCategoryPropertyPersistence
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 AssetCategoryProperty findByCategoryId_Last(long categoryId,
                                                   OrderByComparator orderByComparator)
                                            throws NoSuchCategoryPropertyException,
                                                   SystemException
Returns the last asset category property in the ordered set where categoryId = ?.

Specified by:
findByCategoryId_Last in interface AssetCategoryPropertyPersistence
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 AssetCategoryProperty fetchByCategoryId_Last(long categoryId,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException
Returns the last asset category property in the ordered set where categoryId = ?.

Specified by:
fetchByCategoryId_Last in interface AssetCategoryPropertyPersistence
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 AssetCategoryProperty[] findByCategoryId_PrevAndNext(long categoryPropertyId,
                                                            long categoryId,
                                                            OrderByComparator orderByComparator)
                                                     throws NoSuchCategoryPropertyException,
                                                            SystemException
Returns the asset category properties before and after the current asset category property in the ordered set where categoryId = ?.

Specified by:
findByCategoryId_PrevAndNext in interface AssetCategoryPropertyPersistence
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

getByCategoryId_PrevAndNext

protected AssetCategoryProperty getByCategoryId_PrevAndNext(Session session,
                                                            AssetCategoryProperty assetCategoryProperty,
                                                            long categoryId,
                                                            OrderByComparator orderByComparator,
                                                            boolean previous)

findByC_K

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

Specified by:
findByC_K in interface AssetCategoryPropertyPersistence
Parameters:
companyId - the company ID
key - the key
Returns:
the matching asset category properties
Throws:
SystemException - if a system exception occurred

findByC_K

public 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.

Specified by:
findByC_K in interface AssetCategoryPropertyPersistence
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 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.

Specified by:
findByC_K in interface AssetCategoryPropertyPersistence
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 AssetCategoryProperty findByC_K_First(long companyId,
                                             String key,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchCategoryPropertyException,
                                             SystemException
Returns the first asset category property in the ordered set where companyId = ? and key = ?.

Specified by:
findByC_K_First in interface AssetCategoryPropertyPersistence
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 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 = ?.

Specified by:
fetchByC_K_First in interface AssetCategoryPropertyPersistence
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 AssetCategoryProperty findByC_K_Last(long companyId,
                                            String key,
                                            OrderByComparator orderByComparator)
                                     throws NoSuchCategoryPropertyException,
                                            SystemException
Returns the last asset category property in the ordered set where companyId = ? and key = ?.

Specified by:
findByC_K_Last in interface AssetCategoryPropertyPersistence
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 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 = ?.

Specified by:
fetchByC_K_Last in interface AssetCategoryPropertyPersistence
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 AssetCategoryProperty[] findByC_K_PrevAndNext(long categoryPropertyId,
                                                     long companyId,
                                                     String key,
                                                     OrderByComparator orderByComparator)
                                              throws NoSuchCategoryPropertyException,
                                                     SystemException
Returns the asset category properties before and after the current asset category property in the ordered set where companyId = ? and key = ?.

Specified by:
findByC_K_PrevAndNext in interface AssetCategoryPropertyPersistence
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

getByC_K_PrevAndNext

protected AssetCategoryProperty getByC_K_PrevAndNext(Session session,
                                                     AssetCategoryProperty assetCategoryProperty,
                                                     long companyId,
                                                     String key,
                                                     OrderByComparator orderByComparator,
                                                     boolean previous)

findByCA_K

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

Specified by:
findByCA_K in interface AssetCategoryPropertyPersistence
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 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.

Specified by:
fetchByCA_K in interface AssetCategoryPropertyPersistence
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 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.

Specified by:
fetchByCA_K in interface AssetCategoryPropertyPersistence
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

findAll

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

Specified by:
findAll in interface AssetCategoryPropertyPersistence
Returns:
the asset category properties
Throws:
SystemException - if a system exception occurred

findAll

public 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.

Specified by:
findAll in interface AssetCategoryPropertyPersistence
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 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.

Specified by:
findAll in interface AssetCategoryPropertyPersistence
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

removeByCompanyId

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

Specified by:
removeByCompanyId in interface AssetCategoryPropertyPersistence
Parameters:
companyId - the company ID
Throws:
SystemException - if a system exception occurred

removeByCategoryId

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

Specified by:
removeByCategoryId in interface AssetCategoryPropertyPersistence
Parameters:
categoryId - the category ID
Throws:
SystemException - if a system exception occurred

removeByC_K

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

Specified by:
removeByC_K in interface AssetCategoryPropertyPersistence
Parameters:
companyId - the company ID
key - the key
Throws:
SystemException - if a system exception occurred

removeByCA_K

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

Specified by:
removeByCA_K in interface AssetCategoryPropertyPersistence
Parameters:
categoryId - the category ID
key - the key
Returns:
the asset category property that was removed
Throws:
SystemException - if a system exception occurred
NoSuchCategoryPropertyException

removeAll

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

Specified by:
removeAll in interface AssetCategoryPropertyPersistence
Throws:
SystemException - if a system exception occurred

countByCompanyId

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

Specified by:
countByCompanyId in interface AssetCategoryPropertyPersistence
Parameters:
companyId - the company ID
Returns:
the number of matching asset category properties
Throws:
SystemException - if a system exception occurred

countByCategoryId

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

Specified by:
countByCategoryId in interface AssetCategoryPropertyPersistence
Parameters:
categoryId - the category ID
Returns:
the number of matching asset category properties
Throws:
SystemException - if a system exception occurred

countByC_K

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

Specified by:
countByC_K in interface AssetCategoryPropertyPersistence
Parameters:
companyId - the company ID
key - the key
Returns:
the number of matching asset category properties
Throws:
SystemException - if a system exception occurred

countByCA_K

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

Specified by:
countByCA_K in interface AssetCategoryPropertyPersistence
Parameters:
categoryId - the category ID
key - the key
Returns:
the number of matching asset category properties
Throws:
SystemException - if a system exception occurred

countAll

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

Specified by:
countAll in interface AssetCategoryPropertyPersistence
Returns:
the number of asset category properties
Throws:
SystemException - if a system exception occurred

afterPropertiesSet

public void afterPropertiesSet()
Initializes the asset category property persistence.


destroy

public void destroy()

Liferay 6.1.2-ce-ga3