com.liferay.asset.tag.stats.model.impl.AssetTagStatsImpl
@Deprecated
public class AssetTagStatsUtil
extends Object
com.liferay.portlet.asset.service.persistence.impl.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.
Caching information and settings can be found in portal.properties
AssetTagStatsPersistence
Constructor and Description |
---|
AssetTagStatsUtil()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(AssetTagStats assetTagStats)
Deprecated.
Caches the asset tag stats in the entity cache if it is enabled.
|
static void |
cacheResult(List<AssetTagStats> assetTagStatses)
Deprecated.
Caches the asset tag statses in the entity cache if it is enabled.
|
static void |
clearCache()
Deprecated.
|
static void |
clearCache(AssetTagStats assetTagStats)
Deprecated.
|
static int |
countAll()
Deprecated.
Returns the number of asset tag statses.
|
static int |
countByClassNameId(long classNameId)
Deprecated.
Returns the number of asset tag statses where classNameId = ?.
|
static int |
countByT_C(long tagId,
long classNameId)
Deprecated.
Returns the number of asset tag statses where tagId = ? and classNameId = ?.
|
static int |
countByTagId(long tagId)
Deprecated.
Returns the number of asset tag statses where tagId = ?.
|
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
Deprecated.
|
static AssetTagStats |
create(long tagStatsId)
Deprecated.
Creates a new asset tag stats with the primary key.
|
static AssetTagStats |
fetchByClassNameId_First(long classNameId,
OrderByComparator<AssetTagStats> orderByComparator)
Deprecated.
Returns the first asset tag stats in the ordered set where classNameId = ?.
|
static AssetTagStats |
fetchByClassNameId_Last(long classNameId,
OrderByComparator<AssetTagStats> orderByComparator)
Deprecated.
Returns the last asset tag stats in the ordered set where classNameId = ?.
|
static AssetTagStats |
fetchByPrimaryKey(long tagStatsId)
Deprecated.
Returns the asset tag stats with the primary key or returns
null if it could not be found. |
static Map<Serializable,AssetTagStats> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
Deprecated.
|
static AssetTagStats |
fetchByT_C(long tagId,
long classNameId)
Deprecated.
Returns 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 useFinderCache)
Deprecated.
Returns the asset tag stats where tagId = ? and classNameId = ? or returns
null if it could not be found, optionally using the finder cache. |
static AssetTagStats |
fetchByTagId_First(long tagId,
OrderByComparator<AssetTagStats> orderByComparator)
Deprecated.
Returns the first asset tag stats in the ordered set where tagId = ?.
|
static AssetTagStats |
fetchByTagId_Last(long tagId,
OrderByComparator<AssetTagStats> orderByComparator)
Deprecated.
Returns the last asset tag stats in the ordered set where tagId = ?.
|
static List<AssetTagStats> |
findAll()
Deprecated.
Returns all the asset tag statses.
|
static List<AssetTagStats> |
findAll(int start,
int end)
Deprecated.
Returns a range of all the asset tag statses.
|
static List<AssetTagStats> |
findAll(int start,
int end,
OrderByComparator<AssetTagStats> orderByComparator)
Deprecated.
Returns an ordered range of all the asset tag statses.
|
static List<AssetTagStats> |
findAll(int start,
int end,
OrderByComparator<AssetTagStats> orderByComparator,
boolean useFinderCache)
Deprecated.
Returns an ordered range of all the asset tag statses.
|
static AssetTagStats |
findByClassNameId_First(long classNameId,
OrderByComparator<AssetTagStats> orderByComparator)
Deprecated.
Returns the first asset tag stats in the ordered set where classNameId = ?.
|
static AssetTagStats |
findByClassNameId_Last(long classNameId,
OrderByComparator<AssetTagStats> orderByComparator)
Deprecated.
Returns the last asset tag stats in the ordered set where classNameId = ?.
|
static AssetTagStats[] |
findByClassNameId_PrevAndNext(long tagStatsId,
long classNameId,
OrderByComparator<AssetTagStats> orderByComparator)
Deprecated.
Returns the asset tag statses before and after the current asset tag stats in the ordered set where classNameId = ?.
|
static List<AssetTagStats> |
findByClassNameId(long classNameId)
Deprecated.
Returns all the asset tag statses where classNameId = ?.
|
static List<AssetTagStats> |
findByClassNameId(long classNameId,
int start,
int end)
Deprecated.
Returns a range of all the asset tag statses where classNameId = ?.
|
static List<AssetTagStats> |
findByClassNameId(long classNameId,
int start,
int end,
OrderByComparator<AssetTagStats> orderByComparator)
Deprecated.
Returns an ordered range of all the asset tag statses where classNameId = ?.
|
static List<AssetTagStats> |
findByClassNameId(long classNameId,
int start,
int end,
OrderByComparator<AssetTagStats> orderByComparator,
boolean useFinderCache)
Deprecated.
Returns an ordered range of all the asset tag statses where classNameId = ?.
|
static AssetTagStats |
findByPrimaryKey(long tagStatsId)
Deprecated.
Returns 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)
Deprecated.
Returns 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<AssetTagStats> orderByComparator)
Deprecated.
Returns the first asset tag stats in the ordered set where tagId = ?.
|
static AssetTagStats |
findByTagId_Last(long tagId,
OrderByComparator<AssetTagStats> orderByComparator)
Deprecated.
Returns the last asset tag stats in the ordered set where tagId = ?.
|
static AssetTagStats[] |
findByTagId_PrevAndNext(long tagStatsId,
long tagId,
OrderByComparator<AssetTagStats> orderByComparator)
Deprecated.
Returns the asset tag statses before and after the current asset tag stats in the ordered set where tagId = ?.
|
static List<AssetTagStats> |
findByTagId(long tagId)
Deprecated.
Returns all the asset tag statses where tagId = ?.
|
static List<AssetTagStats> |
findByTagId(long tagId,
int start,
int end)
Deprecated.
Returns a range of all the asset tag statses where tagId = ?.
|
static List<AssetTagStats> |
findByTagId(long tagId,
int start,
int end,
OrderByComparator<AssetTagStats> orderByComparator)
Deprecated.
Returns an ordered range of all the asset tag statses where tagId = ?.
|
static List<AssetTagStats> |
findByTagId(long tagId,
int start,
int end,
OrderByComparator<AssetTagStats> orderByComparator,
boolean useFinderCache)
Deprecated.
Returns an ordered range of all the asset tag statses where tagId = ?.
|
static List<AssetTagStats> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
Deprecated.
|
static List<AssetTagStats> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Deprecated.
|
static List<AssetTagStats> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<AssetTagStats> orderByComparator)
Deprecated.
|
static AssetTagStatsPersistence |
getPersistence()
Deprecated.
|
static AssetTagStats |
remove(long tagStatsId)
Deprecated.
Removes the asset tag stats with the primary key from the database.
|
static void |
removeAll()
Deprecated.
Removes all the asset tag statses from the database.
|
static void |
removeByClassNameId(long classNameId)
Deprecated.
Removes all the asset tag statses where classNameId = ? from the database.
|
static AssetTagStats |
removeByT_C(long tagId,
long classNameId)
Deprecated.
Removes the asset tag stats where tagId = ? and classNameId = ? from the database.
|
static void |
removeByTagId(long tagId)
Deprecated.
Removes all the asset tag statses where tagId = ? from the database.
|
static AssetTagStats |
update(AssetTagStats assetTagStats)
Deprecated.
|
static AssetTagStats |
update(AssetTagStats assetTagStats,
ServiceContext serviceContext)
Deprecated.
|
static AssetTagStats |
updateImpl(AssetTagStats assetTagStats)
Deprecated.
|
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(AssetTagStats assetTagStats)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
public static Map<Serializable,AssetTagStats> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static List<AssetTagStats> findWithDynamicQuery(DynamicQuery dynamicQuery)
public static List<AssetTagStats> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
public static List<AssetTagStats> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<AssetTagStats> orderByComparator)
public static AssetTagStats update(AssetTagStats assetTagStats)
public static AssetTagStats update(AssetTagStats assetTagStats, ServiceContext serviceContext)
public static List<AssetTagStats> findByTagId(long tagId)
tagId
- the tag IDpublic static List<AssetTagStats> findByTagId(long tagId, int start, int end)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AssetTagStatsModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
tagId
- the tag IDstart
- the lower bound of the range of asset tag statsesend
- the upper bound of the range of asset tag statses (not inclusive)public static List<AssetTagStats> findByTagId(long tagId, int start, int end, OrderByComparator<AssetTagStats> orderByComparator)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AssetTagStatsModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
tagId
- the tag IDstart
- the lower bound of the range of asset tag statsesend
- the upper bound of the range of asset tag statses (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<AssetTagStats> findByTagId(long tagId, int start, int end, OrderByComparator<AssetTagStats> orderByComparator, boolean useFinderCache)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AssetTagStatsModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
tagId
- the tag IDstart
- the lower bound of the range of asset tag statsesend
- the upper bound of the range of asset tag statses (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static AssetTagStats findByTagId_First(long tagId, OrderByComparator<AssetTagStats> orderByComparator) throws NoSuchTagStatsException
tagId
- the tag IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTagStatsException
- if a matching asset tag stats could not be foundpublic static AssetTagStats fetchByTagId_First(long tagId, OrderByComparator<AssetTagStats> orderByComparator)
tagId
- the tag IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching asset tag stats could not be foundpublic static AssetTagStats findByTagId_Last(long tagId, OrderByComparator<AssetTagStats> orderByComparator) throws NoSuchTagStatsException
tagId
- the tag IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTagStatsException
- if a matching asset tag stats could not be foundpublic static AssetTagStats fetchByTagId_Last(long tagId, OrderByComparator<AssetTagStats> orderByComparator)
tagId
- the tag IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching asset tag stats could not be foundpublic static AssetTagStats[] findByTagId_PrevAndNext(long tagStatsId, long tagId, OrderByComparator<AssetTagStats> orderByComparator) throws NoSuchTagStatsException
tagStatsId
- the primary key of the current asset tag statstagId
- the tag IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTagStatsException
- if a asset tag stats with the primary key could not be foundpublic static void removeByTagId(long tagId)
tagId
- the tag IDpublic static int countByTagId(long tagId)
tagId
- the tag IDpublic static List<AssetTagStats> findByClassNameId(long classNameId)
classNameId
- the class name IDpublic static List<AssetTagStats> findByClassNameId(long classNameId, int start, int end)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AssetTagStatsModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
classNameId
- the class name IDstart
- the lower bound of the range of asset tag statsesend
- the upper bound of the range of asset tag statses (not inclusive)public static List<AssetTagStats> findByClassNameId(long classNameId, int start, int end, OrderByComparator<AssetTagStats> orderByComparator)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AssetTagStatsModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
classNameId
- the class name IDstart
- the lower bound of the range of asset tag statsesend
- the upper bound of the range of asset tag statses (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<AssetTagStats> findByClassNameId(long classNameId, int start, int end, OrderByComparator<AssetTagStats> orderByComparator, boolean useFinderCache)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AssetTagStatsModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
classNameId
- the class name IDstart
- the lower bound of the range of asset tag statsesend
- the upper bound of the range of asset tag statses (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static AssetTagStats findByClassNameId_First(long classNameId, OrderByComparator<AssetTagStats> orderByComparator) throws NoSuchTagStatsException
classNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTagStatsException
- if a matching asset tag stats could not be foundpublic static AssetTagStats fetchByClassNameId_First(long classNameId, OrderByComparator<AssetTagStats> orderByComparator)
classNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching asset tag stats could not be foundpublic static AssetTagStats findByClassNameId_Last(long classNameId, OrderByComparator<AssetTagStats> orderByComparator) throws NoSuchTagStatsException
classNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTagStatsException
- if a matching asset tag stats could not be foundpublic static AssetTagStats fetchByClassNameId_Last(long classNameId, OrderByComparator<AssetTagStats> orderByComparator)
classNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching asset tag stats could not be foundpublic static AssetTagStats[] findByClassNameId_PrevAndNext(long tagStatsId, long classNameId, OrderByComparator<AssetTagStats> orderByComparator) throws NoSuchTagStatsException
tagStatsId
- the primary key of the current asset tag statsclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchTagStatsException
- if a asset tag stats with the primary key could not be foundpublic static void removeByClassNameId(long classNameId)
classNameId
- the class name IDpublic static int countByClassNameId(long classNameId)
classNameId
- the class name IDpublic static AssetTagStats findByT_C(long tagId, long classNameId) throws NoSuchTagStatsException
NoSuchTagStatsException
if it could not be found.tagId
- the tag IDclassNameId
- the class name IDNoSuchTagStatsException
- if a matching asset tag stats could not be foundpublic static AssetTagStats fetchByT_C(long tagId, long classNameId)
null
if it could not be found. Uses the finder cache.tagId
- the tag IDclassNameId
- the class name IDnull
if a matching asset tag stats could not be foundpublic static AssetTagStats fetchByT_C(long tagId, long classNameId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.tagId
- the tag IDclassNameId
- the class name IDuseFinderCache
- whether to use the finder cachenull
if a matching asset tag stats could not be foundpublic static AssetTagStats removeByT_C(long tagId, long classNameId) throws NoSuchTagStatsException
tagId
- the tag IDclassNameId
- the class name IDNoSuchTagStatsException
public static int countByT_C(long tagId, long classNameId)
tagId
- the tag IDclassNameId
- the class name IDpublic static void cacheResult(AssetTagStats assetTagStats)
assetTagStats
- the asset tag statspublic static void cacheResult(List<AssetTagStats> assetTagStatses)
assetTagStatses
- the asset tag statsespublic static AssetTagStats create(long tagStatsId)
tagStatsId
- the primary key for the new asset tag statspublic static AssetTagStats remove(long tagStatsId) throws NoSuchTagStatsException
tagStatsId
- the primary key of the asset tag statsNoSuchTagStatsException
- if a asset tag stats with the primary key could not be foundpublic static AssetTagStats updateImpl(AssetTagStats assetTagStats)
public static AssetTagStats findByPrimaryKey(long tagStatsId) throws NoSuchTagStatsException
NoSuchTagStatsException
if it could not be found.tagStatsId
- the primary key of the asset tag statsNoSuchTagStatsException
- if a asset tag stats with the primary key could not be foundpublic static AssetTagStats fetchByPrimaryKey(long tagStatsId)
null
if it could not be found.tagStatsId
- the primary key of the asset tag statsnull
if a asset tag stats with the primary key could not be foundpublic static List<AssetTagStats> findAll()
public static List<AssetTagStats> findAll(int start, int end)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AssetTagStatsModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of asset tag statsesend
- the upper bound of the range of asset tag statses (not inclusive)public static List<AssetTagStats> findAll(int start, int end, OrderByComparator<AssetTagStats> orderByComparator)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AssetTagStatsModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of asset tag statsesend
- the upper bound of the range of asset tag statses (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<AssetTagStats> findAll(int start, int end, OrderByComparator<AssetTagStats> orderByComparator, boolean useFinderCache)
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AssetTagStatsModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of asset tag statsesend
- the upper bound of the range of asset tag statses (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static AssetTagStatsPersistence getPersistence()