Liferay 6.0.5

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

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

public class AssetTagStatsPersistenceImpl
extends BasePersistenceImpl<AssetTagStats>
implements AssetTagStatsPersistence

The persistence implementation for the asset tag stats service.

Never modify or reference this class directly. Always use AssetTagStatsUtil to access the asset tag stats persistence. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

See Also:
AssetTagStatsPersistence, AssetTagStatsUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time 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
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_CLASSNAMEID
           
static FinderPath FINDER_PATH_COUNT_BY_T_C
           
static FinderPath FINDER_PATH_COUNT_BY_TAGID
           
static FinderPath FINDER_PATH_FETCH_BY_T_C
           
static FinderPath FINDER_PATH_FIND_ALL
           
static FinderPath FINDER_PATH_FIND_BY_CLASSNAMEID
           
static FinderPath FINDER_PATH_FIND_BY_TAGID
           
protected  ResourcePersistence resourcePersistence
           
protected  UserPersistence userPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, 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
AssetTagStatsPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the asset tag stats persistence.
 void cacheResult(AssetTagStats assetTagStats)
          Caches the asset tag stats in the entity cache if it is enabled.
 void cacheResult(List<AssetTagStats> assetTagStatses)
          Caches the asset tag statses in the entity cache if it is enabled.
 void clearCache()
          Clears the cache for all asset tag statses.
 void clearCache(AssetTagStats assetTagStats)
          Clears the cache for the asset tag stats.
 int countAll()
          Counts all the asset tag statses.
 int countByClassNameId(long classNameId)
          Counts all the asset tag statses where classNameId = ?.
 int countByT_C(long tagId, long classNameId)
          Counts all the asset tag statses where tagId = ? and classNameId = ?.
 int countByTagId(long tagId)
          Counts all the asset tag statses where tagId = ?.
 AssetTagStats create(long tagStatsId)
          Creates a new asset tag stats with the primary key.
 AssetTagStats fetchByPrimaryKey(long tagStatsId)
          Finds the asset tag stats with the primary key or returns null if it could not be found.
 AssetTagStats fetchByPrimaryKey(Serializable primaryKey)
          Finds the asset tag stats with the primary key or returns null if it could not be found.
 AssetTagStats fetchByT_C(long tagId, long classNameId)
          Finds the asset tag stats where tagId = ? and classNameId = ? or returns null if it could not be found.
 AssetTagStats fetchByT_C(long tagId, long classNameId, boolean retrieveFromCache)
          Finds the asset tag stats where tagId = ? and classNameId = ? or returns null if it could not be found, optionally using the finder cache.
 List<AssetTagStats> findAll()
          Finds all the asset tag statses.
 List<AssetTagStats> findAll(int start, int end)
          Finds a range of all the asset tag statses.
 List<AssetTagStats> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset tag statses.
 AssetTagStats findByClassNameId_First(long classNameId, OrderByComparator orderByComparator)
          Finds the first asset tag stats in the ordered set where classNameId = ?.
 AssetTagStats findByClassNameId_Last(long classNameId, OrderByComparator orderByComparator)
          Finds the last asset tag stats in the ordered set where classNameId = ?.
 AssetTagStats[] findByClassNameId_PrevAndNext(long tagStatsId, long classNameId, OrderByComparator orderByComparator)
          Finds the asset tag statses before and after the current asset tag stats in the ordered set where classNameId = ?.
 List<AssetTagStats> findByClassNameId(long classNameId)
          Finds all the asset tag statses where classNameId = ?.
 List<AssetTagStats> findByClassNameId(long classNameId, int start, int end)
          Finds a range of all the asset tag statses where classNameId = ?.
 List<AssetTagStats> findByClassNameId(long classNameId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset tag statses where classNameId = ?.
 AssetTagStats findByPrimaryKey(long tagStatsId)
          Finds the asset tag stats with the primary key or throws a NoSuchTagStatsException if it could not be found.
 AssetTagStats findByPrimaryKey(Serializable primaryKey)
          Finds the asset tag stats with the primary key or throws a NoSuchModelException if it could not be found.
 AssetTagStats findByT_C(long tagId, long classNameId)
          Finds the asset tag stats where tagId = ? and classNameId = ? or throws a NoSuchTagStatsException if it could not be found.
 AssetTagStats findByTagId_First(long tagId, OrderByComparator orderByComparator)
          Finds the first asset tag stats in the ordered set where tagId = ?.
 AssetTagStats findByTagId_Last(long tagId, OrderByComparator orderByComparator)
          Finds the last asset tag stats in the ordered set where tagId = ?.
 AssetTagStats[] findByTagId_PrevAndNext(long tagStatsId, long tagId, OrderByComparator orderByComparator)
          Finds the asset tag statses before and after the current asset tag stats in the ordered set where tagId = ?.
 List<AssetTagStats> findByTagId(long tagId)
          Finds all the asset tag statses where tagId = ?.
 List<AssetTagStats> findByTagId(long tagId, int start, int end)
          Finds a range of all the asset tag statses where tagId = ?.
 List<AssetTagStats> findByTagId(long tagId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset tag statses where tagId = ?.
protected  AssetTagStats getByClassNameId_PrevAndNext(Session session, AssetTagStats assetTagStats, long classNameId, OrderByComparator orderByComparator, boolean previous)
           
protected  AssetTagStats getByTagId_PrevAndNext(Session session, AssetTagStats assetTagStats, long tagId, OrderByComparator orderByComparator, boolean previous)
           
 AssetTagStats remove(long tagStatsId)
          Removes the asset tag stats with the primary key from the database.
 AssetTagStats remove(Serializable primaryKey)
          Removes the asset tag stats with the primary key from the database.
 void removeAll()
          Removes all the asset tag statses from the database.
 void removeByClassNameId(long classNameId)
          Removes all the asset tag statses where classNameId = ? from the database.
 void removeByT_C(long tagId, long classNameId)
          Removes the asset tag stats where tagId = ? and classNameId = ? from the database.
 void removeByTagId(long tagId)
          Removes all the asset tag statses where tagId = ? from the database.
protected  AssetTagStats removeImpl(AssetTagStats assetTagStats)
          Removes the model instance from the database.
protected  AssetTagStats toUnwrappedModel(AssetTagStats assetTagStats)
           
 AssetTagStats updateImpl(AssetTagStats assetTagStats, 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, getDataSource, 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
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST

public static final String FINDER_CLASS_NAME_LIST

FINDER_PATH_FIND_BY_TAGID

public static final FinderPath FINDER_PATH_FIND_BY_TAGID

FINDER_PATH_COUNT_BY_TAGID

public static final FinderPath FINDER_PATH_COUNT_BY_TAGID

FINDER_PATH_FIND_BY_CLASSNAMEID

public static final FinderPath FINDER_PATH_FIND_BY_CLASSNAMEID

FINDER_PATH_COUNT_BY_CLASSNAMEID

public static final FinderPath FINDER_PATH_COUNT_BY_CLASSNAMEID

FINDER_PATH_FETCH_BY_T_C

public static final FinderPath FINDER_PATH_FETCH_BY_T_C

FINDER_PATH_COUNT_BY_T_C

public static final FinderPath FINDER_PATH_COUNT_BY_T_C

FINDER_PATH_FIND_ALL

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

AssetTagStatsPersistenceImpl

public AssetTagStatsPersistenceImpl()
Method Detail

cacheResult

public void cacheResult(AssetTagStats assetTagStats)
Caches the asset tag stats in the entity cache if it is enabled.

Specified by:
cacheResult in interface AssetTagStatsPersistence
Parameters:
assetTagStats - the asset tag stats to cache

cacheResult

public void cacheResult(List<AssetTagStats> assetTagStatses)
Caches the asset tag statses in the entity cache if it is enabled.

Specified by:
cacheResult in interface AssetTagStatsPersistence
Parameters:
assetTagStatses - the asset tag statses to cache

clearCache

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

The EntityCache and FinderCache are both cleared by this method.

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

clearCache

public void clearCache(AssetTagStats assetTagStats)
Clears the cache for the asset tag stats.

The EntityCache and FinderCache are both cleared by this method.

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

create

public AssetTagStats create(long tagStatsId)
Creates a new asset tag stats with the primary key. Does not add the asset tag stats to the database.

Specified by:
create in interface AssetTagStatsPersistence
Parameters:
tagStatsId - the primary key for the new asset tag stats
Returns:
the new asset tag stats

remove

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

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

remove

public AssetTagStats remove(long tagStatsId)
                     throws NoSuchTagStatsException,
                            SystemException
Removes the asset tag stats with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface AssetTagStatsPersistence
Parameters:
tagStatsId - the primary key of the asset tag stats to remove
Returns:
the asset tag stats that was removed
Throws:
NoSuchTagStatsException - if a asset tag stats with the primary key could not be found
SystemException - if a system exception occurred

removeImpl

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

updateImpl

public AssetTagStats updateImpl(AssetTagStats assetTagStats,
                                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 AssetTagStatsPersistence
Overrides:
updateImpl in class BasePersistenceImpl<AssetTagStats>
Parameters:
assetTagStats - 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 AssetTagStats toUnwrappedModel(AssetTagStats assetTagStats)

findByPrimaryKey

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

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

findByPrimaryKey

public AssetTagStats findByPrimaryKey(long tagStatsId)
                               throws NoSuchTagStatsException,
                                      SystemException
Finds the asset tag stats with the primary key or throws a NoSuchTagStatsException if it could not be found.

Specified by:
findByPrimaryKey in interface AssetTagStatsPersistence
Parameters:
tagStatsId - the primary key of the asset tag stats to find
Returns:
the asset tag stats
Throws:
NoSuchTagStatsException - if a asset tag stats with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

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

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

fetchByPrimaryKey

public AssetTagStats fetchByPrimaryKey(long tagStatsId)
                                throws SystemException
Finds the asset tag stats with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface AssetTagStatsPersistence
Parameters:
tagStatsId - the primary key of the asset tag stats to find
Returns:
the asset tag stats, or null if a asset tag stats with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByTagId

public List<AssetTagStats> findByTagId(long tagId)
                                throws SystemException
Finds all the asset tag statses where tagId = ?.

Specified by:
findByTagId in interface AssetTagStatsPersistence
Parameters:
tagId - the tag id to search with
Returns:
the matching asset tag statses
Throws:
SystemException - if a system exception occurred

findByTagId

public List<AssetTagStats> findByTagId(long tagId,
                                       int start,
                                       int end)
                                throws SystemException
Finds a range of all the asset tag statses 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 AssetTagStatsPersistence
Parameters:
tagId - the tag id to search with
start - the lower bound of the range of asset tag statses to return
end - the upper bound of the range of asset tag statses to return (not inclusive)
Returns:
the range of matching asset tag statses
Throws:
SystemException - if a system exception occurred

findByTagId

public List<AssetTagStats> findByTagId(long tagId,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Finds an ordered range of all the asset tag statses 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 AssetTagStatsPersistence
Parameters:
tagId - the tag id to search with
start - the lower bound of the range of asset tag statses to return
end - the upper bound of the range of asset tag statses to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching asset tag statses
Throws:
SystemException - if a system exception occurred

findByTagId_First

public AssetTagStats findByTagId_First(long tagId,
                                       OrderByComparator orderByComparator)
                                throws NoSuchTagStatsException,
                                       SystemException
Finds the first asset tag stats in the ordered set 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_First in interface AssetTagStatsPersistence
Parameters:
tagId - the tag id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching asset tag stats
Throws:
NoSuchTagStatsException - if a matching asset tag stats could not be found
SystemException - if a system exception occurred

findByTagId_Last

public AssetTagStats findByTagId_Last(long tagId,
                                      OrderByComparator orderByComparator)
                               throws NoSuchTagStatsException,
                                      SystemException
Finds the last asset tag stats in the ordered set 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_Last in interface AssetTagStatsPersistence
Parameters:
tagId - the tag id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching asset tag stats
Throws:
NoSuchTagStatsException - if a matching asset tag stats could not be found
SystemException - if a system exception occurred

findByTagId_PrevAndNext

public AssetTagStats[] findByTagId_PrevAndNext(long tagStatsId,
                                               long tagId,
                                               OrderByComparator orderByComparator)
                                        throws NoSuchTagStatsException,
                                               SystemException
Finds the asset tag statses before and after the current asset tag stats in the ordered set 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_PrevAndNext in interface AssetTagStatsPersistence
Parameters:
tagStatsId - the primary key of the current asset tag stats
tagId - the tag id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next asset tag stats
Throws:
NoSuchTagStatsException - if a asset tag stats with the primary key could not be found
SystemException - if a system exception occurred

getByTagId_PrevAndNext

protected AssetTagStats getByTagId_PrevAndNext(Session session,
                                               AssetTagStats assetTagStats,
                                               long tagId,
                                               OrderByComparator orderByComparator,
                                               boolean previous)

findByClassNameId

public List<AssetTagStats> findByClassNameId(long classNameId)
                                      throws SystemException
Finds all the asset tag statses where classNameId = ?.

Specified by:
findByClassNameId in interface AssetTagStatsPersistence
Parameters:
classNameId - the class name id to search with
Returns:
the matching asset tag statses
Throws:
SystemException - if a system exception occurred

findByClassNameId

public List<AssetTagStats> findByClassNameId(long classNameId,
                                             int start,
                                             int end)
                                      throws SystemException
Finds a range of all the asset tag statses where classNameId = ?.

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:
findByClassNameId in interface AssetTagStatsPersistence
Parameters:
classNameId - the class name id to search with
start - the lower bound of the range of asset tag statses to return
end - the upper bound of the range of asset tag statses to return (not inclusive)
Returns:
the range of matching asset tag statses
Throws:
SystemException - if a system exception occurred

findByClassNameId

public List<AssetTagStats> findByClassNameId(long classNameId,
                                             int start,
                                             int end,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Finds an ordered range of all the asset tag statses where classNameId = ?.

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:
findByClassNameId in interface AssetTagStatsPersistence
Parameters:
classNameId - the class name id to search with
start - the lower bound of the range of asset tag statses to return
end - the upper bound of the range of asset tag statses to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching asset tag statses
Throws:
SystemException - if a system exception occurred

findByClassNameId_First

public AssetTagStats findByClassNameId_First(long classNameId,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchTagStatsException,
                                             SystemException
Finds the first asset tag stats in the ordered set where classNameId = ?.

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:
findByClassNameId_First in interface AssetTagStatsPersistence
Parameters:
classNameId - the class name id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching asset tag stats
Throws:
NoSuchTagStatsException - if a matching asset tag stats could not be found
SystemException - if a system exception occurred

findByClassNameId_Last

public AssetTagStats findByClassNameId_Last(long classNameId,
                                            OrderByComparator orderByComparator)
                                     throws NoSuchTagStatsException,
                                            SystemException
Finds the last asset tag stats in the ordered set where classNameId = ?.

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:
findByClassNameId_Last in interface AssetTagStatsPersistence
Parameters:
classNameId - the class name id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching asset tag stats
Throws:
NoSuchTagStatsException - if a matching asset tag stats could not be found
SystemException - if a system exception occurred

findByClassNameId_PrevAndNext

public AssetTagStats[] findByClassNameId_PrevAndNext(long tagStatsId,
                                                     long classNameId,
                                                     OrderByComparator orderByComparator)
                                              throws NoSuchTagStatsException,
                                                     SystemException
Finds the asset tag statses before and after the current asset tag stats in the ordered set where classNameId = ?.

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:
findByClassNameId_PrevAndNext in interface AssetTagStatsPersistence
Parameters:
tagStatsId - the primary key of the current asset tag stats
classNameId - the class name id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next asset tag stats
Throws:
NoSuchTagStatsException - if a asset tag stats with the primary key could not be found
SystemException - if a system exception occurred

getByClassNameId_PrevAndNext

protected AssetTagStats getByClassNameId_PrevAndNext(Session session,
                                                     AssetTagStats assetTagStats,
                                                     long classNameId,
                                                     OrderByComparator orderByComparator,
                                                     boolean previous)

findByT_C

public AssetTagStats findByT_C(long tagId,
                               long classNameId)
                        throws NoSuchTagStatsException,
                               SystemException
Finds the asset tag stats where tagId = ? and classNameId = ? or throws a NoSuchTagStatsException if it could not be found.

Specified by:
findByT_C in interface AssetTagStatsPersistence
Parameters:
tagId - the tag id to search with
classNameId - the class name id to search with
Returns:
the matching asset tag stats
Throws:
NoSuchTagStatsException - if a matching asset tag stats could not be found
SystemException - if a system exception occurred

fetchByT_C

public AssetTagStats fetchByT_C(long tagId,
                                long classNameId)
                         throws SystemException
Finds the asset tag stats where tagId = ? and classNameId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByT_C in interface AssetTagStatsPersistence
Parameters:
tagId - the tag id to search with
classNameId - the class name id to search with
Returns:
the matching asset tag stats, or null if a matching asset tag stats could not be found
Throws:
SystemException - if a system exception occurred

fetchByT_C

public AssetTagStats fetchByT_C(long tagId,
                                long classNameId,
                                boolean retrieveFromCache)
                         throws SystemException
Finds the asset tag stats where tagId = ? and classNameId = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByT_C in interface AssetTagStatsPersistence
Parameters:
tagId - the tag id to search with
classNameId - the class name id to search with
Returns:
the matching asset tag stats, or null if a matching asset tag stats could not be found
Throws:
SystemException - if a system exception occurred

findAll

public List<AssetTagStats> findAll()
                            throws SystemException
Finds all the asset tag statses.

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

findAll

public List<AssetTagStats> findAll(int start,
                                   int end)
                            throws SystemException
Finds a range of all the asset tag statses.

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 AssetTagStatsPersistence
Parameters:
start - the lower bound of the range of asset tag statses to return
end - the upper bound of the range of asset tag statses to return (not inclusive)
Returns:
the range of asset tag statses
Throws:
SystemException - if a system exception occurred

findAll

public List<AssetTagStats> findAll(int start,
                                   int end,
                                   OrderByComparator orderByComparator)
                            throws SystemException
Finds an ordered range of all the asset tag statses.

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 AssetTagStatsPersistence
Parameters:
start - the lower bound of the range of asset tag statses to return
end - the upper bound of the range of asset tag statses to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of asset tag statses
Throws:
SystemException - if a system exception occurred

removeByTagId

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

Specified by:
removeByTagId in interface AssetTagStatsPersistence
Parameters:
tagId - the tag id to search with
Throws:
SystemException - if a system exception occurred

removeByClassNameId

public void removeByClassNameId(long classNameId)
                         throws SystemException
Removes all the asset tag statses where classNameId = ? from the database.

Specified by:
removeByClassNameId in interface AssetTagStatsPersistence
Parameters:
classNameId - the class name id to search with
Throws:
SystemException - if a system exception occurred

removeByT_C

public void removeByT_C(long tagId,
                        long classNameId)
                 throws NoSuchTagStatsException,
                        SystemException
Removes the asset tag stats where tagId = ? and classNameId = ? from the database.

Specified by:
removeByT_C in interface AssetTagStatsPersistence
Parameters:
tagId - the tag id to search with
classNameId - the class name id to search with
Throws:
SystemException - if a system exception occurred
NoSuchTagStatsException

removeAll

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

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

countByTagId

public int countByTagId(long tagId)
                 throws SystemException
Counts all the asset tag statses where tagId = ?.

Specified by:
countByTagId in interface AssetTagStatsPersistence
Parameters:
tagId - the tag id to search with
Returns:
the number of matching asset tag statses
Throws:
SystemException - if a system exception occurred

countByClassNameId

public int countByClassNameId(long classNameId)
                       throws SystemException
Counts all the asset tag statses where classNameId = ?.

Specified by:
countByClassNameId in interface AssetTagStatsPersistence
Parameters:
classNameId - the class name id to search with
Returns:
the number of matching asset tag statses
Throws:
SystemException - if a system exception occurred

countByT_C

public int countByT_C(long tagId,
                      long classNameId)
               throws SystemException
Counts all the asset tag statses where tagId = ? and classNameId = ?.

Specified by:
countByT_C in interface AssetTagStatsPersistence
Parameters:
tagId - the tag id to search with
classNameId - the class name id to search with
Returns:
the number of matching asset tag statses
Throws:
SystemException - if a system exception occurred

countAll

public int countAll()
             throws SystemException
Counts all the asset tag statses.

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

afterPropertiesSet

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


Liferay 6.0.5