Liferay 6.1.2-ce-ga3

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

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

public class AssetTagPropertyPersistenceImpl
extends BasePersistenceImpl<AssetTagProperty>
implements AssetTagPropertyPersistence

The persistence implementation for the asset tag property service.

Caching information and settings can be found in portal.properties

See Also:
AssetTagPropertyPersistence, AssetTagPropertyUtil
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_COMPANYID
           
static FinderPath FINDER_PATH_COUNT_BY_T_K
           
static FinderPath FINDER_PATH_COUNT_BY_TAGID
           
static FinderPath FINDER_PATH_FETCH_BY_T_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_COMPANYID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_TAGID
           
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_COMPANYID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TAGID
           
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
AssetTagPropertyPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the asset tag property persistence.
 void cacheResult(AssetTagProperty assetTagProperty)
          Caches the asset tag property in the entity cache if it is enabled.
 void cacheResult(List<AssetTagProperty> assetTagProperties)
          Caches the asset tag properties in the entity cache if it is enabled.
protected  void cacheUniqueFindersCache(AssetTagProperty assetTagProperty)
           
 void clearCache()
          Clears the cache for all asset tag properties.
 void clearCache(AssetTagProperty assetTagProperty)
          Clears the cache for the asset tag property.
 void clearCache(List<AssetTagProperty> assetTagProperties)
          Clears the cache for a List instances of this model.
protected  void clearUniqueFindersCache(AssetTagProperty assetTagProperty)
           
 int countAll()
          Returns the number of asset tag properties.
 int countByC_K(long companyId, String key)
          Returns the number of asset tag properties where companyId = ? and key = ?.
 int countByCompanyId(long companyId)
          Returns the number of asset tag properties where companyId = ?.
 int countByT_K(long tagId, String key)
          Returns the number of asset tag properties where tagId = ? and key = ?.
 int countByTagId(long tagId)
          Returns the number of asset tag properties where tagId = ?.
 AssetTagProperty create(long tagPropertyId)
          Creates a new asset tag property with the primary key.
 void destroy()
           
 AssetTagProperty fetchByC_K_First(long companyId, String key, OrderByComparator orderByComparator)
          Returns the first asset tag property in the ordered set where companyId = ? and key = ?.
 AssetTagProperty fetchByC_K_Last(long companyId, String key, OrderByComparator orderByComparator)
          Returns the last asset tag property in the ordered set where companyId = ? and key = ?.
 AssetTagProperty fetchByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first asset tag property in the ordered set where companyId = ?.
 AssetTagProperty fetchByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last asset tag property in the ordered set where companyId = ?.
 AssetTagProperty fetchByPrimaryKey(long tagPropertyId)
          Returns the asset tag property with the primary key or returns null if it could not be found.
 AssetTagProperty fetchByPrimaryKey(Serializable primaryKey)
          Returns the asset tag property with the primary key or returns null if it could not be found.
 AssetTagProperty fetchByT_K(long tagId, String key)
          Returns the asset tag property where tagId = ? and key = ? or returns null if it could not be found.
 AssetTagProperty fetchByT_K(long tagId, String key, boolean retrieveFromCache)
          Returns the asset tag property where tagId = ? and key = ? or returns null if it could not be found, optionally using the finder cache.
 AssetTagProperty fetchByTagId_First(long tagId, OrderByComparator orderByComparator)
          Returns the first asset tag property in the ordered set where tagId = ?.
 AssetTagProperty fetchByTagId_Last(long tagId, OrderByComparator orderByComparator)
          Returns the last asset tag property in the ordered set where tagId = ?.
 List<AssetTagProperty> findAll()
          Returns all the asset tag properties.
 List<AssetTagProperty> findAll(int start, int end)
          Returns a range of all the asset tag properties.
 List<AssetTagProperty> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the asset tag properties.
 AssetTagProperty findByC_K_First(long companyId, String key, OrderByComparator orderByComparator)
          Returns the first asset tag property in the ordered set where companyId = ? and key = ?.
 AssetTagProperty findByC_K_Last(long companyId, String key, OrderByComparator orderByComparator)
          Returns the last asset tag property in the ordered set where companyId = ? and key = ?.
 AssetTagProperty[] findByC_K_PrevAndNext(long tagPropertyId, long companyId, String key, OrderByComparator orderByComparator)
          Returns the asset tag properties before and after the current asset tag property in the ordered set where companyId = ? and key = ?.
 List<AssetTagProperty> findByC_K(long companyId, String key)
          Returns all the asset tag properties where companyId = ? and key = ?.
 List<AssetTagProperty> findByC_K(long companyId, String key, int start, int end)
          Returns a range of all the asset tag properties where companyId = ? and key = ?.
 List<AssetTagProperty> findByC_K(long companyId, String key, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the asset tag properties where companyId = ? and key = ?.
 AssetTagProperty findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Returns the first asset tag property in the ordered set where companyId = ?.
 AssetTagProperty findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Returns the last asset tag property in the ordered set where companyId = ?.
 AssetTagProperty[] findByCompanyId_PrevAndNext(long tagPropertyId, long companyId, OrderByComparator orderByComparator)
          Returns the asset tag properties before and after the current asset tag property in the ordered set where companyId = ?.
 List<AssetTagProperty> findByCompanyId(long companyId)
          Returns all the asset tag properties where companyId = ?.
 List<AssetTagProperty> findByCompanyId(long companyId, int start, int end)
          Returns a range of all the asset tag properties where companyId = ?.
 List<AssetTagProperty> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the asset tag properties where companyId = ?.
 AssetTagProperty findByPrimaryKey(long tagPropertyId)
          Returns the asset tag property with the primary key or throws a NoSuchTagPropertyException if it could not be found.
 AssetTagProperty findByPrimaryKey(Serializable primaryKey)
          Returns the asset tag property with the primary key or throws a NoSuchModelException if it could not be found.
 AssetTagProperty findByT_K(long tagId, String key)
          Returns the asset tag property where tagId = ? and key = ? or throws a NoSuchTagPropertyException if it could not be found.
 AssetTagProperty findByTagId_First(long tagId, OrderByComparator orderByComparator)
          Returns the first asset tag property in the ordered set where tagId = ?.
 AssetTagProperty findByTagId_Last(long tagId, OrderByComparator orderByComparator)
          Returns the last asset tag property in the ordered set where tagId = ?.
 AssetTagProperty[] findByTagId_PrevAndNext(long tagPropertyId, long tagId, OrderByComparator orderByComparator)
          Returns the asset tag properties before and after the current asset tag property in the ordered set where tagId = ?.
 List<AssetTagProperty> findByTagId(long tagId)
          Returns all the asset tag properties where tagId = ?.
 List<AssetTagProperty> findByTagId(long tagId, int start, int end)
          Returns a range of all the asset tag properties where tagId = ?.
 List<AssetTagProperty> findByTagId(long tagId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the asset tag properties where tagId = ?.
protected  AssetTagProperty getByC_K_PrevAndNext(Session session, AssetTagProperty assetTagProperty, long companyId, String key, OrderByComparator orderByComparator, boolean previous)
           
protected  AssetTagProperty getByCompanyId_PrevAndNext(Session session, AssetTagProperty assetTagProperty, long companyId, OrderByComparator orderByComparator, boolean previous)
           
protected  AssetTagProperty getByTagId_PrevAndNext(Session session, AssetTagProperty assetTagProperty, long tagId, OrderByComparator orderByComparator, boolean previous)
           
 AssetTagProperty remove(long tagPropertyId)
          Removes the asset tag property with the primary key from the database.
 AssetTagProperty remove(Serializable primaryKey)
          Removes the asset tag property with the primary key from the database.
 void removeAll()
          Removes all the asset tag properties from the database.
 void removeByC_K(long companyId, String key)
          Removes all the asset tag properties where companyId = ? and key = ? from the database.
 void removeByCompanyId(long companyId)
          Removes all the asset tag properties where companyId = ? from the database.
 AssetTagProperty removeByT_K(long tagId, String key)
          Removes the asset tag property where tagId = ? and key = ? from the database.
 void removeByTagId(long tagId)
          Removes all the asset tag properties where tagId = ? from the database.
protected  AssetTagProperty removeImpl(AssetTagProperty assetTagProperty)
          Removes the model instance from the database.
protected  AssetTagProperty toUnwrappedModel(AssetTagProperty assetTagProperty)
           
 AssetTagProperty updateImpl(AssetTagProperty assetTagProperty, 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_TAGID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_TAGID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TAGID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TAGID

FINDER_PATH_COUNT_BY_TAGID

public static final FinderPath FINDER_PATH_COUNT_BY_TAGID

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_T_K

public static final FinderPath FINDER_PATH_FETCH_BY_T_K

FINDER_PATH_COUNT_BY_T_K

public static final FinderPath FINDER_PATH_COUNT_BY_T_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

AssetTagPropertyPersistenceImpl

public AssetTagPropertyPersistenceImpl()
Method Detail

cacheResult

public void cacheResult(AssetTagProperty assetTagProperty)
Caches the asset tag property in the entity cache if it is enabled.

Specified by:
cacheResult in interface AssetTagPropertyPersistence
Parameters:
assetTagProperty - the asset tag property

cacheResult

public void cacheResult(List<AssetTagProperty> assetTagProperties)
Caches the asset tag properties in the entity cache if it is enabled.

Specified by:
cacheResult in interface AssetTagPropertyPersistence
Parameters:
assetTagProperties - the asset tag properties

clearCache

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

The EntityCache and FinderCache are both cleared by this method.

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

clearCache

public void clearCache(AssetTagProperty assetTagProperty)
Clears the cache for the asset tag property.

The EntityCache and FinderCache are both cleared by this method.

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

clearCache

public void clearCache(List<AssetTagProperty> assetTagProperties)
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<AssetTagProperty>
Overrides:
clearCache in class BasePersistenceImpl<AssetTagProperty>
Parameters:
assetTagProperties - the List instances of this model to clear the cache for

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(AssetTagProperty assetTagProperty)

clearUniqueFindersCache

protected void clearUniqueFindersCache(AssetTagProperty assetTagProperty)

create

public AssetTagProperty create(long tagPropertyId)
Creates a new asset tag property with the primary key. Does not add the asset tag property to the database.

Specified by:
create in interface AssetTagPropertyPersistence
Parameters:
tagPropertyId - the primary key for the new asset tag property
Returns:
the new asset tag property

remove

public AssetTagProperty remove(long tagPropertyId)
                        throws NoSuchTagPropertyException,
                               SystemException
Removes the asset tag property with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface AssetTagPropertyPersistence
Parameters:
tagPropertyId - the primary key of the asset tag property
Returns:
the asset tag property that was removed
Throws:
NoSuchTagPropertyException - if a asset tag property with the primary key could not be found
SystemException - if a system exception occurred

remove

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

Specified by:
remove in interface BasePersistence<AssetTagProperty>
Overrides:
remove in class BasePersistenceImpl<AssetTagProperty>
Parameters:
primaryKey - the primary key of the asset tag property
Returns:
the asset tag property that was removed
Throws:
NoSuchTagPropertyException - if a asset tag property with the primary key could not be found
SystemException - if a system exception occurred

removeImpl

protected AssetTagProperty removeImpl(AssetTagProperty assetTagProperty)
                               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<AssetTagProperty>
Parameters:
assetTagProperty - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public AssetTagProperty updateImpl(AssetTagProperty assetTagProperty,
                                   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 AssetTagPropertyPersistence
Overrides:
updateImpl in class BasePersistenceImpl<AssetTagProperty>
Parameters:
assetTagProperty - 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 AssetTagProperty toUnwrappedModel(AssetTagProperty assetTagProperty)

findByPrimaryKey

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

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

findByPrimaryKey

public AssetTagProperty findByPrimaryKey(long tagPropertyId)
                                  throws NoSuchTagPropertyException,
                                         SystemException
Returns the asset tag property with the primary key or throws a NoSuchTagPropertyException if it could not be found.

Specified by:
findByPrimaryKey in interface AssetTagPropertyPersistence
Parameters:
tagPropertyId - the primary key of the asset tag property
Returns:
the asset tag property
Throws:
NoSuchTagPropertyException - if a asset tag property with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public AssetTagProperty fetchByPrimaryKey(Serializable primaryKey)
                                   throws SystemException
Returns the asset tag property with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<AssetTagProperty>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<AssetTagProperty>
Parameters:
primaryKey - the primary key of the asset tag property
Returns:
the asset tag property, or null if a asset tag property with the primary key could not be found
Throws:
SystemException - if a system exception occurred

fetchByPrimaryKey

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

Specified by:
fetchByPrimaryKey in interface AssetTagPropertyPersistence
Parameters:
tagPropertyId - the primary key of the asset tag property
Returns:
the asset tag property, or null if a asset tag property with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByCompanyId

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

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

findByCompanyId

public List<AssetTagProperty> findByCompanyId(long companyId,
                                              int start,
                                              int end)
                                       throws SystemException
Returns a range of all the asset tag 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 AssetTagPropertyPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of asset tag properties
end - the upper bound of the range of asset tag properties (not inclusive)
Returns:
the range of matching asset tag properties
Throws:
SystemException - if a system exception occurred

findByCompanyId

public List<AssetTagProperty> findByCompanyId(long companyId,
                                              int start,
                                              int end,
                                              OrderByComparator orderByComparator)
                                       throws SystemException
Returns an ordered range of all the asset tag 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 AssetTagPropertyPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of asset tag properties
end - the upper bound of the range of asset tag properties (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset tag properties
Throws:
SystemException - if a system exception occurred

findByCompanyId_First

public AssetTagProperty findByCompanyId_First(long companyId,
                                              OrderByComparator orderByComparator)
                                       throws NoSuchTagPropertyException,
                                              SystemException
Returns the first asset tag property in the ordered set where companyId = ?.

Specified by:
findByCompanyId_First in interface AssetTagPropertyPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset tag property
Throws:
NoSuchTagPropertyException - if a matching asset tag property could not be found
SystemException - if a system exception occurred

fetchByCompanyId_First

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

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

findByCompanyId_Last

public AssetTagProperty findByCompanyId_Last(long companyId,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchTagPropertyException,
                                             SystemException
Returns the last asset tag property in the ordered set where companyId = ?.

Specified by:
findByCompanyId_Last in interface AssetTagPropertyPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset tag property
Throws:
NoSuchTagPropertyException - if a matching asset tag property could not be found
SystemException - if a system exception occurred

fetchByCompanyId_Last

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

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

findByCompanyId_PrevAndNext

public AssetTagProperty[] findByCompanyId_PrevAndNext(long tagPropertyId,
                                                      long companyId,
                                                      OrderByComparator orderByComparator)
                                               throws NoSuchTagPropertyException,
                                                      SystemException
Returns the asset tag properties before and after the current asset tag property in the ordered set where companyId = ?.

Specified by:
findByCompanyId_PrevAndNext in interface AssetTagPropertyPersistence
Parameters:
tagPropertyId - the primary key of the current asset tag property
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset tag property
Throws:
NoSuchTagPropertyException - if a asset tag property with the primary key could not be found
SystemException - if a system exception occurred

getByCompanyId_PrevAndNext

protected AssetTagProperty getByCompanyId_PrevAndNext(Session session,
                                                      AssetTagProperty assetTagProperty,
                                                      long companyId,
                                                      OrderByComparator orderByComparator,
                                                      boolean previous)

findByTagId

public List<AssetTagProperty> findByTagId(long tagId)
                                   throws SystemException
Returns all the asset tag properties where tagId = ?.

Specified by:
findByTagId in interface AssetTagPropertyPersistence
Parameters:
tagId - the tag ID
Returns:
the matching asset tag properties
Throws:
SystemException - if a system exception occurred

findByTagId

public List<AssetTagProperty> findByTagId(long tagId,
                                          int start,
                                          int end)
                                   throws SystemException
Returns a range of all the asset tag properties where tagId = ?.

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:
findByTagId in interface AssetTagPropertyPersistence
Parameters:
tagId - the tag ID
start - the lower bound of the range of asset tag properties
end - the upper bound of the range of asset tag properties (not inclusive)
Returns:
the range of matching asset tag properties
Throws:
SystemException - if a system exception occurred

findByTagId

public List<AssetTagProperty> findByTagId(long tagId,
                                          int start,
                                          int end,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Returns an ordered range of all the asset tag properties where tagId = ?.

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:
findByTagId in interface AssetTagPropertyPersistence
Parameters:
tagId - the tag ID
start - the lower bound of the range of asset tag properties
end - the upper bound of the range of asset tag properties (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset tag properties
Throws:
SystemException - if a system exception occurred

findByTagId_First

public AssetTagProperty findByTagId_First(long tagId,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchTagPropertyException,
                                          SystemException
Returns the first asset tag property in the ordered set where tagId = ?.

Specified by:
findByTagId_First in interface AssetTagPropertyPersistence
Parameters:
tagId - the tag ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset tag property
Throws:
NoSuchTagPropertyException - if a matching asset tag property could not be found
SystemException - if a system exception occurred

fetchByTagId_First

public AssetTagProperty fetchByTagId_First(long tagId,
                                           OrderByComparator orderByComparator)
                                    throws SystemException
Returns the first asset tag property in the ordered set where tagId = ?.

Specified by:
fetchByTagId_First in interface AssetTagPropertyPersistence
Parameters:
tagId - the tag ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset tag property, or null if a matching asset tag property could not be found
Throws:
SystemException - if a system exception occurred

findByTagId_Last

public AssetTagProperty findByTagId_Last(long tagId,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchTagPropertyException,
                                         SystemException
Returns the last asset tag property in the ordered set where tagId = ?.

Specified by:
findByTagId_Last in interface AssetTagPropertyPersistence
Parameters:
tagId - the tag ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset tag property
Throws:
NoSuchTagPropertyException - if a matching asset tag property could not be found
SystemException - if a system exception occurred

fetchByTagId_Last

public AssetTagProperty fetchByTagId_Last(long tagId,
                                          OrderByComparator orderByComparator)
                                   throws SystemException
Returns the last asset tag property in the ordered set where tagId = ?.

Specified by:
fetchByTagId_Last in interface AssetTagPropertyPersistence
Parameters:
tagId - the tag ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset tag property, or null if a matching asset tag property could not be found
Throws:
SystemException - if a system exception occurred

findByTagId_PrevAndNext

public AssetTagProperty[] findByTagId_PrevAndNext(long tagPropertyId,
                                                  long tagId,
                                                  OrderByComparator orderByComparator)
                                           throws NoSuchTagPropertyException,
                                                  SystemException
Returns the asset tag properties before and after the current asset tag property in the ordered set where tagId = ?.

Specified by:
findByTagId_PrevAndNext in interface AssetTagPropertyPersistence
Parameters:
tagPropertyId - the primary key of the current asset tag property
tagId - the tag ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next asset tag property
Throws:
NoSuchTagPropertyException - if a asset tag property with the primary key could not be found
SystemException - if a system exception occurred

getByTagId_PrevAndNext

protected AssetTagProperty getByTagId_PrevAndNext(Session session,
                                                  AssetTagProperty assetTagProperty,
                                                  long tagId,
                                                  OrderByComparator orderByComparator,
                                                  boolean previous)

findByC_K

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

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

findByC_K

public List<AssetTagProperty> findByC_K(long companyId,
                                        String key,
                                        int start,
                                        int end)
                                 throws SystemException
Returns a range of all the asset tag 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 AssetTagPropertyPersistence
Parameters:
companyId - the company ID
key - the key
start - the lower bound of the range of asset tag properties
end - the upper bound of the range of asset tag properties (not inclusive)
Returns:
the range of matching asset tag properties
Throws:
SystemException - if a system exception occurred

findByC_K

public List<AssetTagProperty> findByC_K(long companyId,
                                        String key,
                                        int start,
                                        int end,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Returns an ordered range of all the asset tag 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 AssetTagPropertyPersistence
Parameters:
companyId - the company ID
key - the key
start - the lower bound of the range of asset tag properties
end - the upper bound of the range of asset tag properties (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching asset tag properties
Throws:
SystemException - if a system exception occurred

findByC_K_First

public AssetTagProperty findByC_K_First(long companyId,
                                        String key,
                                        OrderByComparator orderByComparator)
                                 throws NoSuchTagPropertyException,
                                        SystemException
Returns the first asset tag property in the ordered set where companyId = ? and key = ?.

Specified by:
findByC_K_First in interface AssetTagPropertyPersistence
Parameters:
companyId - the company ID
key - the key
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching asset tag property
Throws:
NoSuchTagPropertyException - if a matching asset tag property could not be found
SystemException - if a system exception occurred

fetchByC_K_First

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

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

findByC_K_Last

public AssetTagProperty findByC_K_Last(long companyId,
                                       String key,
                                       OrderByComparator orderByComparator)
                                throws NoSuchTagPropertyException,
                                       SystemException
Returns the last asset tag property in the ordered set where companyId = ? and key = ?.

Specified by:
findByC_K_Last in interface AssetTagPropertyPersistence
Parameters:
companyId - the company ID
key - the key
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching asset tag property
Throws:
NoSuchTagPropertyException - if a matching asset tag property could not be found
SystemException - if a system exception occurred

fetchByC_K_Last

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

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

findByC_K_PrevAndNext

public AssetTagProperty[] findByC_K_PrevAndNext(long tagPropertyId,
                                                long companyId,
                                                String key,
                                                OrderByComparator orderByComparator)
                                         throws NoSuchTagPropertyException,
                                                SystemException
Returns the asset tag properties before and after the current asset tag property in the ordered set where companyId = ? and key = ?.

Specified by:
findByC_K_PrevAndNext in interface AssetTagPropertyPersistence
Parameters:
tagPropertyId - the primary key of the current asset tag 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 tag property
Throws:
NoSuchTagPropertyException - if a asset tag property with the primary key could not be found
SystemException - if a system exception occurred

getByC_K_PrevAndNext

protected AssetTagProperty getByC_K_PrevAndNext(Session session,
                                                AssetTagProperty assetTagProperty,
                                                long companyId,
                                                String key,
                                                OrderByComparator orderByComparator,
                                                boolean previous)

findByT_K

public AssetTagProperty findByT_K(long tagId,
                                  String key)
                           throws NoSuchTagPropertyException,
                                  SystemException
Returns the asset tag property where tagId = ? and key = ? or throws a NoSuchTagPropertyException if it could not be found.

Specified by:
findByT_K in interface AssetTagPropertyPersistence
Parameters:
tagId - the tag ID
key - the key
Returns:
the matching asset tag property
Throws:
NoSuchTagPropertyException - if a matching asset tag property could not be found
SystemException - if a system exception occurred

fetchByT_K

public AssetTagProperty fetchByT_K(long tagId,
                                   String key)
                            throws SystemException
Returns the asset tag property where tagId = ? and key = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByT_K in interface AssetTagPropertyPersistence
Parameters:
tagId - the tag ID
key - the key
Returns:
the matching asset tag property, or null if a matching asset tag property could not be found
Throws:
SystemException - if a system exception occurred

fetchByT_K

public AssetTagProperty fetchByT_K(long tagId,
                                   String key,
                                   boolean retrieveFromCache)
                            throws SystemException
Returns the asset tag property where tagId = ? and key = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByT_K in interface AssetTagPropertyPersistence
Parameters:
tagId - the tag ID
key - the key
retrieveFromCache - whether to use the finder cache
Returns:
the matching asset tag property, or null if a matching asset tag property could not be found
Throws:
SystemException - if a system exception occurred

findAll

public List<AssetTagProperty> findAll()
                               throws SystemException
Returns all the asset tag properties.

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

findAll

public List<AssetTagProperty> findAll(int start,
                                      int end)
                               throws SystemException
Returns a range of all the asset tag 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 AssetTagPropertyPersistence
Parameters:
start - the lower bound of the range of asset tag properties
end - the upper bound of the range of asset tag properties (not inclusive)
Returns:
the range of asset tag properties
Throws:
SystemException - if a system exception occurred

findAll

public List<AssetTagProperty> findAll(int start,
                                      int end,
                                      OrderByComparator orderByComparator)
                               throws SystemException
Returns an ordered range of all the asset tag 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 AssetTagPropertyPersistence
Parameters:
start - the lower bound of the range of asset tag properties
end - the upper bound of the range of asset tag properties (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of asset tag properties
Throws:
SystemException - if a system exception occurred

removeByCompanyId

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

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

removeByTagId

public void removeByTagId(long tagId)
                   throws SystemException
Removes all the asset tag properties where tagId = ? from the database.

Specified by:
removeByTagId in interface AssetTagPropertyPersistence
Parameters:
tagId - the tag ID
Throws:
SystemException - if a system exception occurred

removeByC_K

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

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

removeByT_K

public AssetTagProperty removeByT_K(long tagId,
                                    String key)
                             throws NoSuchTagPropertyException,
                                    SystemException
Removes the asset tag property where tagId = ? and key = ? from the database.

Specified by:
removeByT_K in interface AssetTagPropertyPersistence
Parameters:
tagId - the tag ID
key - the key
Returns:
the asset tag property that was removed
Throws:
SystemException - if a system exception occurred
NoSuchTagPropertyException

removeAll

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

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

countByCompanyId

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

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

countByTagId

public int countByTagId(long tagId)
                 throws SystemException
Returns the number of asset tag properties where tagId = ?.

Specified by:
countByTagId in interface AssetTagPropertyPersistence
Parameters:
tagId - the tag ID
Returns:
the number of matching asset tag 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 tag properties where companyId = ? and key = ?.

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

countByT_K

public int countByT_K(long tagId,
                      String key)
               throws SystemException
Returns the number of asset tag properties where tagId = ? and key = ?.

Specified by:
countByT_K in interface AssetTagPropertyPersistence
Parameters:
tagId - the tag ID
key - the key
Returns:
the number of matching asset tag properties
Throws:
SystemException - if a system exception occurred

countAll

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

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

afterPropertiesSet

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


destroy

public void destroy()

Liferay 6.1.2-ce-ga3