Liferay 6.0.3

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

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()
           
 void cacheResult(AssetTagStats assetTagStats)
           
 void cacheResult(List<AssetTagStats> assetTagStatses)
           
 void clearCache()
          Clears the cache for all instances of this model.
 void clearCache(AssetTagStats assetTagStats)
          Clears the cache for one instance of this model.
 int countAll()
           
 int countByClassNameId(long classNameId)
           
 int countByT_C(long tagId, long classNameId)
           
 int countByTagId(long tagId)
           
 AssetTagStats create(long tagStatsId)
           
 AssetTagStats fetchByPrimaryKey(long tagStatsId)
           
 AssetTagStats fetchByPrimaryKey(Serializable primaryKey)
          Finds an instance of this model by its primary key, or return null if it could not be found.
 AssetTagStats fetchByT_C(long tagId, long classNameId)
           
 AssetTagStats fetchByT_C(long tagId, long classNameId, boolean retrieveFromCache)
           
 List<AssetTagStats> findAll()
           
 List<AssetTagStats> findAll(int start, int end)
           
 List<AssetTagStats> findAll(int start, int end, OrderByComparator orderByComparator)
           
 AssetTagStats findByClassNameId_First(long classNameId, OrderByComparator orderByComparator)
           
 AssetTagStats findByClassNameId_Last(long classNameId, OrderByComparator orderByComparator)
           
 AssetTagStats[] findByClassNameId_PrevAndNext(long tagStatsId, long classNameId, OrderByComparator orderByComparator)
           
 List<AssetTagStats> findByClassNameId(long classNameId)
           
 List<AssetTagStats> findByClassNameId(long classNameId, int start, int end)
           
 List<AssetTagStats> findByClassNameId(long classNameId, int start, int end, OrderByComparator orderByComparator)
           
 AssetTagStats findByPrimaryKey(long tagStatsId)
           
 AssetTagStats findByPrimaryKey(Serializable primaryKey)
          Finds an instance of this model by its primary key, or throw an exception if it could not be found.
 AssetTagStats findByT_C(long tagId, long classNameId)
           
 AssetTagStats findByTagId_First(long tagId, OrderByComparator orderByComparator)
           
 AssetTagStats findByTagId_Last(long tagId, OrderByComparator orderByComparator)
           
 AssetTagStats[] findByTagId_PrevAndNext(long tagStatsId, long tagId, OrderByComparator orderByComparator)
           
 List<AssetTagStats> findByTagId(long tagId)
           
 List<AssetTagStats> findByTagId(long tagId, int start, int end)
           
 List<AssetTagStats> findByTagId(long tagId, int start, int end, OrderByComparator orderByComparator)
           
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)
           
 AssetTagStats remove(Serializable primaryKey)
          Removes the model instance identified by the primary key from the database, and notifies the appropriate model listeners.
 void removeAll()
           
 void removeByClassNameId(long classNameId)
           
 void removeByT_C(long tagId, long classNameId)
           
 void removeByTagId(long tagId)
           
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)
Specified by:
cacheResult in interface AssetTagStatsPersistence

cacheResult

public void cacheResult(List<AssetTagStats> assetTagStatses)
Specified by:
cacheResult in interface AssetTagStatsPersistence

clearCache

public void clearCache()
Description copied from interface: BasePersistence
Clears the cache for all instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Caching information and settings can be found in portal.properties

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

clearCache

public void clearCache(AssetTagStats assetTagStats)
Description copied from interface: BasePersistence
Clears the cache for one instance of this model.

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)
Specified by:
create in interface AssetTagStatsPersistence

remove

public AssetTagStats remove(Serializable primaryKey)
                     throws NoSuchModelException,
                            SystemException
Description copied from interface: BasePersistence
Removes the model instance identified by the primary key from the database, and 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 model instance to remove
Returns:
the model instance that was removed
Throws:
NoSuchModelException - if an instance of this model with the primary key does not exist
SystemException - if a system exception occurred

remove

public AssetTagStats remove(long tagStatsId)
                     throws NoSuchTagStatsException,
                            SystemException
Specified by:
remove in interface AssetTagStatsPersistence
Throws:
NoSuchTagStatsException
SystemException

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
Description copied from interface: BasePersistence
Finds an instance of this model by its primary key, or throw an exception 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 model instance to find
Returns:
the model instance
Throws:
NoSuchModelException - if an instance of this model with the primary key does not exist
SystemException - if the primary key is null, or if a system exception occurred

findByPrimaryKey

public AssetTagStats findByPrimaryKey(long tagStatsId)
                               throws NoSuchTagStatsException,
                                      SystemException
Specified by:
findByPrimaryKey in interface AssetTagStatsPersistence
Throws:
NoSuchTagStatsException
SystemException

fetchByPrimaryKey

public AssetTagStats fetchByPrimaryKey(Serializable primaryKey)
                                throws SystemException
Description copied from interface: BasePersistence
Finds an instance of this model by its primary key, or return 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 model instance to find
Returns:
the model instance, or null if an instance of this model with the primary key does not exist
Throws:
SystemException - if the primary key is null, or if a system exception occurred

fetchByPrimaryKey

public AssetTagStats fetchByPrimaryKey(long tagStatsId)
                                throws SystemException
Specified by:
fetchByPrimaryKey in interface AssetTagStatsPersistence
Throws:
SystemException

findByTagId

public List<AssetTagStats> findByTagId(long tagId)
                                throws SystemException
Specified by:
findByTagId in interface AssetTagStatsPersistence
Throws:
SystemException

findByTagId

public List<AssetTagStats> findByTagId(long tagId,
                                       int start,
                                       int end)
                                throws SystemException
Specified by:
findByTagId in interface AssetTagStatsPersistence
Throws:
SystemException

findByTagId

public List<AssetTagStats> findByTagId(long tagId,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Specified by:
findByTagId in interface AssetTagStatsPersistence
Throws:
SystemException

findByTagId_First

public AssetTagStats findByTagId_First(long tagId,
                                       OrderByComparator orderByComparator)
                                throws NoSuchTagStatsException,
                                       SystemException
Specified by:
findByTagId_First in interface AssetTagStatsPersistence
Throws:
NoSuchTagStatsException
SystemException

findByTagId_Last

public AssetTagStats findByTagId_Last(long tagId,
                                      OrderByComparator orderByComparator)
                               throws NoSuchTagStatsException,
                                      SystemException
Specified by:
findByTagId_Last in interface AssetTagStatsPersistence
Throws:
NoSuchTagStatsException
SystemException

findByTagId_PrevAndNext

public AssetTagStats[] findByTagId_PrevAndNext(long tagStatsId,
                                               long tagId,
                                               OrderByComparator orderByComparator)
                                        throws NoSuchTagStatsException,
                                               SystemException
Specified by:
findByTagId_PrevAndNext in interface AssetTagStatsPersistence
Throws:
NoSuchTagStatsException
SystemException

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
Specified by:
findByClassNameId in interface AssetTagStatsPersistence
Throws:
SystemException

findByClassNameId

public List<AssetTagStats> findByClassNameId(long classNameId,
                                             int start,
                                             int end)
                                      throws SystemException
Specified by:
findByClassNameId in interface AssetTagStatsPersistence
Throws:
SystemException

findByClassNameId

public List<AssetTagStats> findByClassNameId(long classNameId,
                                             int start,
                                             int end,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Specified by:
findByClassNameId in interface AssetTagStatsPersistence
Throws:
SystemException

findByClassNameId_First

public AssetTagStats findByClassNameId_First(long classNameId,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchTagStatsException,
                                             SystemException
Specified by:
findByClassNameId_First in interface AssetTagStatsPersistence
Throws:
NoSuchTagStatsException
SystemException

findByClassNameId_Last

public AssetTagStats findByClassNameId_Last(long classNameId,
                                            OrderByComparator orderByComparator)
                                     throws NoSuchTagStatsException,
                                            SystemException
Specified by:
findByClassNameId_Last in interface AssetTagStatsPersistence
Throws:
NoSuchTagStatsException
SystemException

findByClassNameId_PrevAndNext

public AssetTagStats[] findByClassNameId_PrevAndNext(long tagStatsId,
                                                     long classNameId,
                                                     OrderByComparator orderByComparator)
                                              throws NoSuchTagStatsException,
                                                     SystemException
Specified by:
findByClassNameId_PrevAndNext in interface AssetTagStatsPersistence
Throws:
NoSuchTagStatsException
SystemException

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
Specified by:
findByT_C in interface AssetTagStatsPersistence
Throws:
NoSuchTagStatsException
SystemException

fetchByT_C

public AssetTagStats fetchByT_C(long tagId,
                                long classNameId)
                         throws SystemException
Specified by:
fetchByT_C in interface AssetTagStatsPersistence
Throws:
SystemException

fetchByT_C

public AssetTagStats fetchByT_C(long tagId,
                                long classNameId,
                                boolean retrieveFromCache)
                         throws SystemException
Specified by:
fetchByT_C in interface AssetTagStatsPersistence
Throws:
SystemException

findAll

public List<AssetTagStats> findAll()
                            throws SystemException
Specified by:
findAll in interface AssetTagStatsPersistence
Throws:
SystemException

findAll

public List<AssetTagStats> findAll(int start,
                                   int end)
                            throws SystemException
Specified by:
findAll in interface AssetTagStatsPersistence
Throws:
SystemException

findAll

public List<AssetTagStats> findAll(int start,
                                   int end,
                                   OrderByComparator orderByComparator)
                            throws SystemException
Specified by:
findAll in interface AssetTagStatsPersistence
Throws:
SystemException

removeByTagId

public void removeByTagId(long tagId)
                   throws SystemException
Specified by:
removeByTagId in interface AssetTagStatsPersistence
Throws:
SystemException

removeByClassNameId

public void removeByClassNameId(long classNameId)
                         throws SystemException
Specified by:
removeByClassNameId in interface AssetTagStatsPersistence
Throws:
SystemException

removeByT_C

public void removeByT_C(long tagId,
                        long classNameId)
                 throws NoSuchTagStatsException,
                        SystemException
Specified by:
removeByT_C in interface AssetTagStatsPersistence
Throws:
NoSuchTagStatsException
SystemException

removeAll

public void removeAll()
               throws SystemException
Specified by:
removeAll in interface AssetTagStatsPersistence
Throws:
SystemException

countByTagId

public int countByTagId(long tagId)
                 throws SystemException
Specified by:
countByTagId in interface AssetTagStatsPersistence
Throws:
SystemException

countByClassNameId

public int countByClassNameId(long classNameId)
                       throws SystemException
Specified by:
countByClassNameId in interface AssetTagStatsPersistence
Throws:
SystemException

countByT_C

public int countByT_C(long tagId,
                      long classNameId)
               throws SystemException
Specified by:
countByT_C in interface AssetTagStatsPersistence
Throws:
SystemException

countAll

public int countAll()
             throws SystemException
Specified by:
countAll in interface AssetTagStatsPersistence
Throws:
SystemException

afterPropertiesSet

public void afterPropertiesSet()

Liferay 6.0.3