com.liferay.trash.model.impl.TrashVersionImpl
@Deprecated
public class TrashVersionUtil
extends Object
TrashVersionPersistenceImpl
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
TrashVersionPersistence
,
TrashVersionPersistenceImpl
Constructor and Description |
---|
TrashVersionUtil()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(List<TrashVersion> trashVersions)
Deprecated.
Caches the trash versions in the entity cache if it is enabled.
|
static void |
cacheResult(TrashVersion trashVersion)
Deprecated.
Caches the trash version in the entity cache if it is enabled.
|
static void |
clearCache()
Deprecated.
|
static void |
clearCache(TrashVersion trashVersion)
Deprecated.
|
static int |
countAll()
Deprecated.
Returns the number of trash versions.
|
static int |
countByC_C(long classNameId,
long classPK)
Deprecated.
Returns the number of trash versions where classNameId = ? and classPK = ?.
|
static int |
countByE_C(long entryId,
long classNameId)
Deprecated.
Returns the number of trash versions where entryId = ? and classNameId = ?.
|
static int |
countByEntryId(long entryId)
Deprecated.
Returns the number of trash versions where entryId = ?.
|
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
Deprecated.
|
static TrashVersion |
create(long versionId)
Deprecated.
Creates a new trash version with the primary key.
|
static TrashVersion |
fetchByC_C(long classNameId,
long classPK)
Deprecated.
Returns the trash version where classNameId = ? and classPK = ? or returns
null if it could not be found. |
static TrashVersion |
fetchByC_C(long classNameId,
long classPK,
boolean retrieveFromCache)
Deprecated.
Returns the trash version where classNameId = ? and classPK = ? or returns
null if it could not be found, optionally using the finder cache. |
static TrashVersion |
fetchByE_C_First(long entryId,
long classNameId,
OrderByComparator<TrashVersion> orderByComparator)
Deprecated.
Returns the first trash version in the ordered set where entryId = ? and classNameId = ?.
|
static TrashVersion |
fetchByE_C_Last(long entryId,
long classNameId,
OrderByComparator<TrashVersion> orderByComparator)
Deprecated.
Returns the last trash version in the ordered set where entryId = ? and classNameId = ?.
|
static TrashVersion |
fetchByEntryId_First(long entryId,
OrderByComparator<TrashVersion> orderByComparator)
Deprecated.
Returns the first trash version in the ordered set where entryId = ?.
|
static TrashVersion |
fetchByEntryId_Last(long entryId,
OrderByComparator<TrashVersion> orderByComparator)
Deprecated.
Returns the last trash version in the ordered set where entryId = ?.
|
static TrashVersion |
fetchByPrimaryKey(long versionId)
Deprecated.
Returns the trash version with the primary key or returns
null if it could not be found. |
static Map<Serializable,TrashVersion> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
Deprecated.
|
static List<TrashVersion> |
findAll()
Deprecated.
Returns all the trash versions.
|
static List<TrashVersion> |
findAll(int start,
int end)
Deprecated.
Returns a range of all the trash versions.
|
static List<TrashVersion> |
findAll(int start,
int end,
OrderByComparator<TrashVersion> orderByComparator)
Deprecated.
Returns an ordered range of all the trash versions.
|
static List<TrashVersion> |
findAll(int start,
int end,
OrderByComparator<TrashVersion> orderByComparator,
boolean retrieveFromCache)
Deprecated.
Returns an ordered range of all the trash versions.
|
static TrashVersion |
findByC_C(long classNameId,
long classPK)
Deprecated.
Returns the trash version where classNameId = ? and classPK = ? or throws a
NoSuchVersionException if it could not be found. |
static TrashVersion |
findByE_C_First(long entryId,
long classNameId,
OrderByComparator<TrashVersion> orderByComparator)
Deprecated.
Returns the first trash version in the ordered set where entryId = ? and classNameId = ?.
|
static TrashVersion |
findByE_C_Last(long entryId,
long classNameId,
OrderByComparator<TrashVersion> orderByComparator)
Deprecated.
Returns the last trash version in the ordered set where entryId = ? and classNameId = ?.
|
static TrashVersion[] |
findByE_C_PrevAndNext(long versionId,
long entryId,
long classNameId,
OrderByComparator<TrashVersion> orderByComparator)
Deprecated.
Returns the trash versions before and after the current trash version in the ordered set where entryId = ? and classNameId = ?.
|
static List<TrashVersion> |
findByE_C(long entryId,
long classNameId)
Deprecated.
Returns all the trash versions where entryId = ? and classNameId = ?.
|
static List<TrashVersion> |
findByE_C(long entryId,
long classNameId,
int start,
int end)
Deprecated.
Returns a range of all the trash versions where entryId = ? and classNameId = ?.
|
static List<TrashVersion> |
findByE_C(long entryId,
long classNameId,
int start,
int end,
OrderByComparator<TrashVersion> orderByComparator)
Deprecated.
Returns an ordered range of all the trash versions where entryId = ? and classNameId = ?.
|
static List<TrashVersion> |
findByE_C(long entryId,
long classNameId,
int start,
int end,
OrderByComparator<TrashVersion> orderByComparator,
boolean retrieveFromCache)
Deprecated.
Returns an ordered range of all the trash versions where entryId = ? and classNameId = ?.
|
static TrashVersion |
findByEntryId_First(long entryId,
OrderByComparator<TrashVersion> orderByComparator)
Deprecated.
Returns the first trash version in the ordered set where entryId = ?.
|
static TrashVersion |
findByEntryId_Last(long entryId,
OrderByComparator<TrashVersion> orderByComparator)
Deprecated.
Returns the last trash version in the ordered set where entryId = ?.
|
static TrashVersion[] |
findByEntryId_PrevAndNext(long versionId,
long entryId,
OrderByComparator<TrashVersion> orderByComparator)
Deprecated.
Returns the trash versions before and after the current trash version in the ordered set where entryId = ?.
|
static List<TrashVersion> |
findByEntryId(long entryId)
Deprecated.
Returns all the trash versions where entryId = ?.
|
static List<TrashVersion> |
findByEntryId(long entryId,
int start,
int end)
Deprecated.
Returns a range of all the trash versions where entryId = ?.
|
static List<TrashVersion> |
findByEntryId(long entryId,
int start,
int end,
OrderByComparator<TrashVersion> orderByComparator)
Deprecated.
Returns an ordered range of all the trash versions where entryId = ?.
|
static List<TrashVersion> |
findByEntryId(long entryId,
int start,
int end,
OrderByComparator<TrashVersion> orderByComparator,
boolean retrieveFromCache)
Deprecated.
Returns an ordered range of all the trash versions where entryId = ?.
|
static TrashVersion |
findByPrimaryKey(long versionId)
Deprecated.
Returns the trash version with the primary key or throws a
NoSuchVersionException if it could not be found. |
static List<TrashVersion> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
Deprecated.
|
static List<TrashVersion> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Deprecated.
|
static List<TrashVersion> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<TrashVersion> orderByComparator)
Deprecated.
|
static TrashVersionPersistence |
getPersistence()
Deprecated.
|
static TrashVersion |
remove(long versionId)
Deprecated.
Removes the trash version with the primary key from the database.
|
static void |
removeAll()
Deprecated.
Removes all the trash versions from the database.
|
static TrashVersion |
removeByC_C(long classNameId,
long classPK)
Deprecated.
Removes the trash version where classNameId = ? and classPK = ? from the database.
|
static void |
removeByE_C(long entryId,
long classNameId)
Deprecated.
Removes all the trash versions where entryId = ? and classNameId = ? from the database.
|
static void |
removeByEntryId(long entryId)
Deprecated.
Removes all the trash versions where entryId = ? from the database.
|
static TrashVersion |
update(TrashVersion trashVersion)
Deprecated.
|
static TrashVersion |
update(TrashVersion trashVersion,
ServiceContext serviceContext)
Deprecated.
|
static TrashVersion |
updateImpl(TrashVersion trashVersion)
Deprecated.
|
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(TrashVersion trashVersion)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
public static List<TrashVersion> findWithDynamicQuery(DynamicQuery dynamicQuery)
public static List<TrashVersion> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
public static List<TrashVersion> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<TrashVersion> orderByComparator)
public static TrashVersion update(TrashVersion trashVersion)
public static TrashVersion update(TrashVersion trashVersion, ServiceContext serviceContext)
public static List<TrashVersion> findByEntryId(long entryId)
entryId
- the entry IDpublic static List<TrashVersion> findByEntryId(long entryId, 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 TrashVersionModelImpl
. 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.
entryId
- the entry IDstart
- the lower bound of the range of trash versionsend
- the upper bound of the range of trash versions (not inclusive)public static List<TrashVersion> findByEntryId(long entryId, int start, int end, OrderByComparator<TrashVersion> 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 TrashVersionModelImpl
. 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.
entryId
- the entry IDstart
- the lower bound of the range of trash versionsend
- the upper bound of the range of trash versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<TrashVersion> findByEntryId(long entryId, int start, int end, OrderByComparator<TrashVersion> orderByComparator, boolean retrieveFromCache)
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 TrashVersionModelImpl
. 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.
entryId
- the entry IDstart
- the lower bound of the range of trash versionsend
- the upper bound of the range of trash versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static TrashVersion findByEntryId_First(long entryId, OrderByComparator<TrashVersion> orderByComparator) throws NoSuchVersionException
entryId
- the entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchVersionException
- if a matching trash version could not be foundpublic static TrashVersion fetchByEntryId_First(long entryId, OrderByComparator<TrashVersion> orderByComparator)
entryId
- the entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching trash version could not be foundpublic static TrashVersion findByEntryId_Last(long entryId, OrderByComparator<TrashVersion> orderByComparator) throws NoSuchVersionException
entryId
- the entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchVersionException
- if a matching trash version could not be foundpublic static TrashVersion fetchByEntryId_Last(long entryId, OrderByComparator<TrashVersion> orderByComparator)
entryId
- the entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching trash version could not be foundpublic static TrashVersion[] findByEntryId_PrevAndNext(long versionId, long entryId, OrderByComparator<TrashVersion> orderByComparator) throws NoSuchVersionException
versionId
- the primary key of the current trash versionentryId
- the entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchVersionException
- if a trash version with the primary key could not be foundpublic static void removeByEntryId(long entryId)
entryId
- the entry IDpublic static int countByEntryId(long entryId)
entryId
- the entry IDpublic static List<TrashVersion> findByE_C(long entryId, long classNameId)
entryId
- the entry IDclassNameId
- the class name IDpublic static List<TrashVersion> findByE_C(long entryId, 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 TrashVersionModelImpl
. 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.
entryId
- the entry IDclassNameId
- the class name IDstart
- the lower bound of the range of trash versionsend
- the upper bound of the range of trash versions (not inclusive)public static List<TrashVersion> findByE_C(long entryId, long classNameId, int start, int end, OrderByComparator<TrashVersion> 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 TrashVersionModelImpl
. 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.
entryId
- the entry IDclassNameId
- the class name IDstart
- the lower bound of the range of trash versionsend
- the upper bound of the range of trash versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<TrashVersion> findByE_C(long entryId, long classNameId, int start, int end, OrderByComparator<TrashVersion> orderByComparator, boolean retrieveFromCache)
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 TrashVersionModelImpl
. 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.
entryId
- the entry IDclassNameId
- the class name IDstart
- the lower bound of the range of trash versionsend
- the upper bound of the range of trash versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static TrashVersion findByE_C_First(long entryId, long classNameId, OrderByComparator<TrashVersion> orderByComparator) throws NoSuchVersionException
entryId
- the entry IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchVersionException
- if a matching trash version could not be foundpublic static TrashVersion fetchByE_C_First(long entryId, long classNameId, OrderByComparator<TrashVersion> orderByComparator)
entryId
- the entry IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching trash version could not be foundpublic static TrashVersion findByE_C_Last(long entryId, long classNameId, OrderByComparator<TrashVersion> orderByComparator) throws NoSuchVersionException
entryId
- the entry IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchVersionException
- if a matching trash version could not be foundpublic static TrashVersion fetchByE_C_Last(long entryId, long classNameId, OrderByComparator<TrashVersion> orderByComparator)
entryId
- the entry IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching trash version could not be foundpublic static TrashVersion[] findByE_C_PrevAndNext(long versionId, long entryId, long classNameId, OrderByComparator<TrashVersion> orderByComparator) throws NoSuchVersionException
versionId
- the primary key of the current trash versionentryId
- the entry IDclassNameId
- the class name IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchVersionException
- if a trash version with the primary key could not be foundpublic static void removeByE_C(long entryId, long classNameId)
entryId
- the entry IDclassNameId
- the class name IDpublic static int countByE_C(long entryId, long classNameId)
entryId
- the entry IDclassNameId
- the class name IDpublic static TrashVersion findByC_C(long classNameId, long classPK) throws NoSuchVersionException
NoSuchVersionException
if it could not be found.classNameId
- the class name IDclassPK
- the class pkNoSuchVersionException
- if a matching trash version could not be foundpublic static TrashVersion fetchByC_C(long classNameId, long classPK)
null
if it could not be found. Uses the finder cache.classNameId
- the class name IDclassPK
- the class pknull
if a matching trash version could not be foundpublic static TrashVersion fetchByC_C(long classNameId, long classPK, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.classNameId
- the class name IDclassPK
- the class pkretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching trash version could not be foundpublic static TrashVersion removeByC_C(long classNameId, long classPK) throws NoSuchVersionException
classNameId
- the class name IDclassPK
- the class pkNoSuchVersionException
public static int countByC_C(long classNameId, long classPK)
classNameId
- the class name IDclassPK
- the class pkpublic static void cacheResult(TrashVersion trashVersion)
trashVersion
- the trash versionpublic static void cacheResult(List<TrashVersion> trashVersions)
trashVersions
- the trash versionspublic static TrashVersion create(long versionId)
versionId
- the primary key for the new trash versionpublic static TrashVersion remove(long versionId) throws NoSuchVersionException
versionId
- the primary key of the trash versionNoSuchVersionException
- if a trash version with the primary key could not be foundpublic static TrashVersion updateImpl(TrashVersion trashVersion)
public static TrashVersion findByPrimaryKey(long versionId) throws NoSuchVersionException
NoSuchVersionException
if it could not be found.versionId
- the primary key of the trash versionNoSuchVersionException
- if a trash version with the primary key could not be foundpublic static TrashVersion fetchByPrimaryKey(long versionId)
null
if it could not be found.versionId
- the primary key of the trash versionnull
if a trash version with the primary key could not be foundpublic static Map<Serializable,TrashVersion> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
public static List<TrashVersion> findAll()
public static List<TrashVersion> 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 TrashVersionModelImpl
. 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 trash versionsend
- the upper bound of the range of trash versions (not inclusive)public static List<TrashVersion> findAll(int start, int end, OrderByComparator<TrashVersion> 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 TrashVersionModelImpl
. 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 trash versionsend
- the upper bound of the range of trash versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<TrashVersion> findAll(int start, int end, OrderByComparator<TrashVersion> orderByComparator, boolean retrieveFromCache)
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 TrashVersionModelImpl
. 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 trash versionsend
- the upper bound of the range of trash versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static TrashVersionPersistence getPersistence()