Liferay 6.0.5

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

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

public class AssetTagStatsUtil
extends Object

The persistence utility for the asset tag stats service. This utility wraps AssetTagStatsPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

See Also:
AssetTagStatsPersistence, AssetTagStatsPersistenceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
AssetTagStatsUtil()
           
 
Method Summary
static void cacheResult(AssetTagStats assetTagStats)
          Caches the asset tag stats in the entity cache if it is enabled.
static void cacheResult(List<AssetTagStats> assetTagStatses)
          Caches the asset tag statses in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(AssetTagStats assetTagStats)
           
static int countAll()
          Counts all the asset tag statses.
static int countByClassNameId(long classNameId)
          Counts all the asset tag statses where classNameId = ?.
static int countByT_C(long tagId, long classNameId)
          Counts all the asset tag statses where tagId = ? and classNameId = ?.
static int countByTagId(long tagId)
          Counts all the asset tag statses where tagId = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static AssetTagStats create(long tagStatsId)
          Creates a new asset tag stats with the primary key.
static AssetTagStats fetchByPrimaryKey(long tagStatsId)
          Finds the asset tag stats with the primary key or returns null if it could not be found.
static 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.
static 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.
static List<AssetTagStats> findAll()
          Finds all the asset tag statses.
static List<AssetTagStats> findAll(int start, int end)
          Finds a range of all the asset tag statses.
static List<AssetTagStats> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset tag statses.
static AssetTagStats findByClassNameId_First(long classNameId, OrderByComparator orderByComparator)
          Finds the first asset tag stats in the ordered set where classNameId = ?.
static AssetTagStats findByClassNameId_Last(long classNameId, OrderByComparator orderByComparator)
          Finds the last asset tag stats in the ordered set where classNameId = ?.
static 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 = ?.
static List<AssetTagStats> findByClassNameId(long classNameId)
          Finds all the asset tag statses where classNameId = ?.
static List<AssetTagStats> findByClassNameId(long classNameId, int start, int end)
          Finds a range of all the asset tag statses where classNameId = ?.
static List<AssetTagStats> findByClassNameId(long classNameId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset tag statses where classNameId = ?.
static AssetTagStats findByPrimaryKey(long tagStatsId)
          Finds the asset tag stats with the primary key or throws a NoSuchTagStatsException if it could not be found.
static 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.
static AssetTagStats findByTagId_First(long tagId, OrderByComparator orderByComparator)
          Finds the first asset tag stats in the ordered set where tagId = ?.
static AssetTagStats findByTagId_Last(long tagId, OrderByComparator orderByComparator)
          Finds the last asset tag stats in the ordered set where tagId = ?.
static 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 = ?.
static List<AssetTagStats> findByTagId(long tagId)
          Finds all the asset tag statses where tagId = ?.
static List<AssetTagStats> findByTagId(long tagId, int start, int end)
          Finds a range of all the asset tag statses where tagId = ?.
static List<AssetTagStats> findByTagId(long tagId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the asset tag statses where tagId = ?.
static List<AssetTagStats> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<AssetTagStats> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<AssetTagStats> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static AssetTagStatsPersistence getPersistence()
           
static AssetTagStats remove(AssetTagStats assetTagStats)
           
static AssetTagStats remove(long tagStatsId)
          Removes the asset tag stats with the primary key from the database.
static void removeAll()
          Removes all the asset tag statses from the database.
static void removeByClassNameId(long classNameId)
          Removes all the asset tag statses where classNameId = ? from the database.
static void removeByT_C(long tagId, long classNameId)
          Removes the asset tag stats where tagId = ? and classNameId = ? from the database.
static void removeByTagId(long tagId)
          Removes all the asset tag statses where tagId = ? from the database.
 void setPersistence(AssetTagStatsPersistence persistence)
           
static AssetTagStats update(AssetTagStats assetTagStats, boolean merge)
           
static AssetTagStats update(AssetTagStats assetTagStats, boolean merge, ServiceContext serviceContext)
           
static AssetTagStats updateImpl(AssetTagStats assetTagStats, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetTagStatsUtil

public AssetTagStatsUtil()
Method Detail

clearCache

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

clearCache

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

countWithDynamicQuery

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

findWithDynamicQuery

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

findWithDynamicQuery

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

findWithDynamicQuery

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

remove

public static AssetTagStats remove(AssetTagStats assetTagStats)
                            throws SystemException
Throws:
SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

public static AssetTagStats update(AssetTagStats assetTagStats,
                                   boolean merge)
                            throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

public static AssetTagStats update(AssetTagStats assetTagStats,
                                   boolean merge,
                                   ServiceContext serviceContext)
                            throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)

cacheResult

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

Parameters:
assetTagStats - the asset tag stats to cache

cacheResult

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

Parameters:
assetTagStatses - the asset tag statses to cache

create

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

Parameters:
tagStatsId - the primary key for the new asset tag stats
Returns:
the new asset tag stats

remove

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

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

updateImpl

public static AssetTagStats updateImpl(AssetTagStats assetTagStats,
                                       boolean merge)
                                throws SystemException
Throws:
SystemException

findByPrimaryKey

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

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 static AssetTagStats fetchByPrimaryKey(long tagStatsId)
                                       throws SystemException
Finds the asset tag stats with the primary key or returns null if it could not be found.

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 static List<AssetTagStats> findByTagId(long tagId)
                                       throws SystemException
Finds all the asset tag statses where tagId = ?.

Parameters:
tagId - the tag id to search with
Returns:
the matching asset tag statses
Throws:
SystemException - if a system exception occurred

findByTagId

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

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

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 static AssetTagStats findByTagId_First(long tagId,
                                              OrderByComparator orderByComparator)
                                       throws SystemException,
                                              NoSuchTagStatsException
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.

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 static AssetTagStats findByTagId_Last(long tagId,
                                             OrderByComparator orderByComparator)
                                      throws SystemException,
                                             NoSuchTagStatsException
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.

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 static AssetTagStats[] findByTagId_PrevAndNext(long tagStatsId,
                                                      long tagId,
                                                      OrderByComparator orderByComparator)
                                               throws SystemException,
                                                      NoSuchTagStatsException
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.

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

findByClassNameId

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

Parameters:
classNameId - the class name id to search with
Returns:
the matching asset tag statses
Throws:
SystemException - if a system exception occurred

findByClassNameId

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

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

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 static AssetTagStats findByClassNameId_First(long classNameId,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException,
                                                    NoSuchTagStatsException
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.

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 static AssetTagStats findByClassNameId_Last(long classNameId,
                                                   OrderByComparator orderByComparator)
                                            throws SystemException,
                                                   NoSuchTagStatsException
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.

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 static AssetTagStats[] findByClassNameId_PrevAndNext(long tagStatsId,
                                                            long classNameId,
                                                            OrderByComparator orderByComparator)
                                                     throws SystemException,
                                                            NoSuchTagStatsException
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.

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

findByT_C

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

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

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

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 static List<AssetTagStats> findAll()
                                   throws SystemException
Finds all the asset tag statses.

Returns:
the asset tag statses
Throws:
SystemException - if a system exception occurred

findAll

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

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

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 static void removeByTagId(long tagId)
                          throws SystemException
Removes all the asset tag statses where tagId = ? from the database.

Parameters:
tagId - the tag id to search with
Throws:
SystemException - if a system exception occurred

removeByClassNameId

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

Parameters:
classNameId - the class name id to search with
Throws:
SystemException - if a system exception occurred

removeByT_C

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

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 static void removeAll()
                      throws SystemException
Removes all the asset tag statses from the database.

Throws:
SystemException - if a system exception occurred

countByTagId

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

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 static int countByClassNameId(long classNameId)
                              throws SystemException
Counts all the asset tag statses where classNameId = ?.

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 static int countByT_C(long tagId,
                             long classNameId)
                      throws SystemException
Counts all the asset tag statses where tagId = ? and classNameId = ?.

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 static int countAll()
                    throws SystemException
Counts all the asset tag statses.

Returns:
the number of asset tag statses
Throws:
SystemException - if a system exception occurred

getPersistence

public static AssetTagStatsPersistence getPersistence()

setPersistence

public void setPersistence(AssetTagStatsPersistence persistence)

Liferay 6.0.5