|
Liferay 7.0-ce-m6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.dynamicdatamapping.service.persistence.DDMTemplateVersionUtil
@ProviderType public class DDMTemplateVersionUtil
The persistence utility for the d d m template version service. This utility wraps DDMTemplateVersionPersistenceImpl 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
DDMTemplateVersionPersistence,
DDMTemplateVersionPersistenceImpl| Constructor Summary | |
|---|---|
DDMTemplateVersionUtil()
|
|
| Method Summary | |
|---|---|
static void |
cacheResult(DDMTemplateVersion ddmTemplateVersion)
Caches the d d m template version in the entity cache if it is enabled. |
static void |
cacheResult(List<DDMTemplateVersion> ddmTemplateVersions)
Caches the d d m template versions in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(DDMTemplateVersion ddmTemplateVersion)
|
static int |
countAll()
Returns the number of d d m template versions. |
static int |
countByT_S(long templateId,
int status)
Returns the number of d d m template versions where templateId = ? and status = ?. |
static int |
countByT_V(long templateId,
String version)
Returns the number of d d m template versions where templateId = ? and version = ?. |
static int |
countByTemplateId(long templateId)
Returns the number of d d m template versions where templateId = ?. |
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static DDMTemplateVersion |
create(long templateVersionId)
Creates a new d d m template version with the primary key. |
static DDMTemplateVersion |
fetchByPrimaryKey(long templateVersionId)
Returns the d d m template version with the primary key or returns null if it could not be found. |
static Map<Serializable,DDMTemplateVersion> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
|
static DDMTemplateVersion |
fetchByT_S_First(long templateId,
int status,
OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns the first d d m template version in the ordered set where templateId = ? and status = ?. |
static DDMTemplateVersion |
fetchByT_S_Last(long templateId,
int status,
OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns the last d d m template version in the ordered set where templateId = ? and status = ?. |
static DDMTemplateVersion |
fetchByT_V(long templateId,
String version)
Returns the d d m template version where templateId = ? and version = ? or returns null if it could not be found. |
static DDMTemplateVersion |
fetchByT_V(long templateId,
String version,
boolean retrieveFromCache)
Returns the d d m template version where templateId = ? and version = ? or returns null if it could not be found, optionally using the finder cache. |
static DDMTemplateVersion |
fetchByTemplateId_First(long templateId,
OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns the first d d m template version in the ordered set where templateId = ?. |
static DDMTemplateVersion |
fetchByTemplateId_Last(long templateId,
OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns the last d d m template version in the ordered set where templateId = ?. |
static List<DDMTemplateVersion> |
findAll()
Returns all the d d m template versions. |
static List<DDMTemplateVersion> |
findAll(int start,
int end)
Returns a range of all the d d m template versions. |
static List<DDMTemplateVersion> |
findAll(int start,
int end,
OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns an ordered range of all the d d m template versions. |
static DDMTemplateVersion |
findByPrimaryKey(long templateVersionId)
Returns the d d m template version with the primary key or throws a NoSuchTemplateVersionException if it could not be found. |
static DDMTemplateVersion |
findByT_S_First(long templateId,
int status,
OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns the first d d m template version in the ordered set where templateId = ? and status = ?. |
static DDMTemplateVersion |
findByT_S_Last(long templateId,
int status,
OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns the last d d m template version in the ordered set where templateId = ? and status = ?. |
static DDMTemplateVersion[] |
findByT_S_PrevAndNext(long templateVersionId,
long templateId,
int status,
OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns the d d m template versions before and after the current d d m template version in the ordered set where templateId = ? and status = ?. |
static List<DDMTemplateVersion> |
findByT_S(long templateId,
int status)
Returns all the d d m template versions where templateId = ? and status = ?. |
static List<DDMTemplateVersion> |
findByT_S(long templateId,
int status,
int start,
int end)
Returns a range of all the d d m template versions where templateId = ? and status = ?. |
static List<DDMTemplateVersion> |
findByT_S(long templateId,
int status,
int start,
int end,
OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns an ordered range of all the d d m template versions where templateId = ? and status = ?. |
static DDMTemplateVersion |
findByT_V(long templateId,
String version)
Returns the d d m template version where templateId = ? and version = ? or throws a NoSuchTemplateVersionException if it could not be found. |
static DDMTemplateVersion |
findByTemplateId_First(long templateId,
OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns the first d d m template version in the ordered set where templateId = ?. |
static DDMTemplateVersion |
findByTemplateId_Last(long templateId,
OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns the last d d m template version in the ordered set where templateId = ?. |
static DDMTemplateVersion[] |
findByTemplateId_PrevAndNext(long templateVersionId,
long templateId,
OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns the d d m template versions before and after the current d d m template version in the ordered set where templateId = ?. |
static List<DDMTemplateVersion> |
findByTemplateId(long templateId)
Returns all the d d m template versions where templateId = ?. |
static List<DDMTemplateVersion> |
findByTemplateId(long templateId,
int start,
int end)
Returns a range of all the d d m template versions where templateId = ?. |
static List<DDMTemplateVersion> |
findByTemplateId(long templateId,
int start,
int end,
OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns an ordered range of all the d d m template versions where templateId = ?. |
static List<DDMTemplateVersion> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<DDMTemplateVersion> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<DDMTemplateVersion> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<DDMTemplateVersion> orderByComparator)
|
static DDMTemplateVersionPersistence |
getPersistence()
|
static DDMTemplateVersion |
remove(long templateVersionId)
Removes the d d m template version with the primary key from the database. |
static void |
removeAll()
Removes all the d d m template versions from the database. |
static void |
removeByT_S(long templateId,
int status)
Removes all the d d m template versions where templateId = ? and status = ? from the database. |
static DDMTemplateVersion |
removeByT_V(long templateId,
String version)
Removes the d d m template version where templateId = ? and version = ? from the database. |
static void |
removeByTemplateId(long templateId)
Removes all the d d m template versions where templateId = ? from the database. |
void |
setPersistence(DDMTemplateVersionPersistence persistence)
Deprecated. As of 6.2.0 |
static DDMTemplateVersion |
update(DDMTemplateVersion ddmTemplateVersion)
|
static DDMTemplateVersion |
update(DDMTemplateVersion ddmTemplateVersion,
ServiceContext serviceContext)
|
static DDMTemplateVersion |
updateImpl(DDMTemplateVersion ddmTemplateVersion)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DDMTemplateVersionUtil()
| Method Detail |
|---|
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(DDMTemplateVersion ddmTemplateVersion)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)public static List<DDMTemplateVersion> findWithDynamicQuery(DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<DDMTemplateVersion> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<DDMTemplateVersion> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<DDMTemplateVersion> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static DDMTemplateVersion update(DDMTemplateVersion ddmTemplateVersion)
BasePersistence.update(com.liferay.portal.model.BaseModel)
public static DDMTemplateVersion update(DDMTemplateVersion ddmTemplateVersion,
ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)public static List<DDMTemplateVersion> findByTemplateId(long templateId)
templateId - the template ID
public static List<DDMTemplateVersion> findByTemplateId(long templateId,
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 DDMTemplateVersionModelImpl. 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.
templateId - the template IDstart - the lower bound of the range of d d m template versionsend - the upper bound of the range of d d m template versions (not inclusive)
public static List<DDMTemplateVersion> findByTemplateId(long templateId,
int start,
int end,
OrderByComparator<DDMTemplateVersion> 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 DDMTemplateVersionModelImpl. 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.
templateId - the template IDstart - the lower bound of the range of d d m template versionsend - the upper bound of the range of d d m template versions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static DDMTemplateVersion findByTemplateId_First(long templateId,
OrderByComparator<DDMTemplateVersion> orderByComparator)
throws NoSuchTemplateVersionException
templateId - the template IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchTemplateVersionException - if a matching d d m template version could not be found
public static DDMTemplateVersion fetchByTemplateId_First(long templateId,
OrderByComparator<DDMTemplateVersion> orderByComparator)
templateId - the template IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d m template version could not be found
public static DDMTemplateVersion findByTemplateId_Last(long templateId,
OrderByComparator<DDMTemplateVersion> orderByComparator)
throws NoSuchTemplateVersionException
templateId - the template IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchTemplateVersionException - if a matching d d m template version could not be found
public static DDMTemplateVersion fetchByTemplateId_Last(long templateId,
OrderByComparator<DDMTemplateVersion> orderByComparator)
templateId - the template IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d m template version could not be found
public static DDMTemplateVersion[] findByTemplateId_PrevAndNext(long templateVersionId,
long templateId,
OrderByComparator<DDMTemplateVersion> orderByComparator)
throws NoSuchTemplateVersionException
templateVersionId - the primary key of the current d d m template versiontemplateId - the template IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchTemplateVersionException - if a d d m template version with the primary key could not be foundpublic static void removeByTemplateId(long templateId)
templateId - the template IDpublic static int countByTemplateId(long templateId)
templateId - the template ID
public static DDMTemplateVersion findByT_V(long templateId,
String version)
throws NoSuchTemplateVersionException
NoSuchTemplateVersionException if it could not be found.
templateId - the template IDversion - the version
NoSuchTemplateVersionException - if a matching d d m template version could not be found
public static DDMTemplateVersion fetchByT_V(long templateId,
String version)
null if it could not be found. Uses the finder cache.
templateId - the template IDversion - the version
null if a matching d d m template version could not be found
public static DDMTemplateVersion fetchByT_V(long templateId,
String version,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
templateId - the template IDversion - the versionretrieveFromCache - whether to use the finder cache
null if a matching d d m template version could not be found
public static DDMTemplateVersion removeByT_V(long templateId,
String version)
throws NoSuchTemplateVersionException
templateId - the template IDversion - the version
NoSuchTemplateVersionException
public static int countByT_V(long templateId,
String version)
templateId - the template IDversion - the version
public static List<DDMTemplateVersion> findByT_S(long templateId,
int status)
templateId - the template IDstatus - the status
public static List<DDMTemplateVersion> findByT_S(long templateId,
int status,
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 DDMTemplateVersionModelImpl. 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.
templateId - the template IDstatus - the statusstart - the lower bound of the range of d d m template versionsend - the upper bound of the range of d d m template versions (not inclusive)
public static List<DDMTemplateVersion> findByT_S(long templateId,
int status,
int start,
int end,
OrderByComparator<DDMTemplateVersion> 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 DDMTemplateVersionModelImpl. 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.
templateId - the template IDstatus - the statusstart - the lower bound of the range of d d m template versionsend - the upper bound of the range of d d m template versions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static DDMTemplateVersion findByT_S_First(long templateId,
int status,
OrderByComparator<DDMTemplateVersion> orderByComparator)
throws NoSuchTemplateVersionException
templateId - the template IDstatus - the statusorderByComparator - the comparator to order the set by (optionally null)
NoSuchTemplateVersionException - if a matching d d m template version could not be found
public static DDMTemplateVersion fetchByT_S_First(long templateId,
int status,
OrderByComparator<DDMTemplateVersion> orderByComparator)
templateId - the template IDstatus - the statusorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d m template version could not be found
public static DDMTemplateVersion findByT_S_Last(long templateId,
int status,
OrderByComparator<DDMTemplateVersion> orderByComparator)
throws NoSuchTemplateVersionException
templateId - the template IDstatus - the statusorderByComparator - the comparator to order the set by (optionally null)
NoSuchTemplateVersionException - if a matching d d m template version could not be found
public static DDMTemplateVersion fetchByT_S_Last(long templateId,
int status,
OrderByComparator<DDMTemplateVersion> orderByComparator)
templateId - the template IDstatus - the statusorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d m template version could not be found
public static DDMTemplateVersion[] findByT_S_PrevAndNext(long templateVersionId,
long templateId,
int status,
OrderByComparator<DDMTemplateVersion> orderByComparator)
throws NoSuchTemplateVersionException
templateVersionId - the primary key of the current d d m template versiontemplateId - the template IDstatus - the statusorderByComparator - the comparator to order the set by (optionally null)
NoSuchTemplateVersionException - if a d d m template version with the primary key could not be found
public static void removeByT_S(long templateId,
int status)
templateId - the template IDstatus - the status
public static int countByT_S(long templateId,
int status)
templateId - the template IDstatus - the status
public static void cacheResult(DDMTemplateVersion ddmTemplateVersion)
ddmTemplateVersion - the d d m template versionpublic static void cacheResult(List<DDMTemplateVersion> ddmTemplateVersions)
ddmTemplateVersions - the d d m template versionspublic static DDMTemplateVersion create(long templateVersionId)
templateVersionId - the primary key for the new d d m template version
public static DDMTemplateVersion remove(long templateVersionId)
throws NoSuchTemplateVersionException
templateVersionId - the primary key of the d d m template version
NoSuchTemplateVersionException - if a d d m template version with the primary key could not be foundpublic static DDMTemplateVersion updateImpl(DDMTemplateVersion ddmTemplateVersion)
public static DDMTemplateVersion findByPrimaryKey(long templateVersionId)
throws NoSuchTemplateVersionException
NoSuchTemplateVersionException if it could not be found.
templateVersionId - the primary key of the d d m template version
NoSuchTemplateVersionException - if a d d m template version with the primary key could not be foundpublic static DDMTemplateVersion fetchByPrimaryKey(long templateVersionId)
null if it could not be found.
templateVersionId - the primary key of the d d m template version
null if a d d m template version with the primary key could not be foundpublic static Map<Serializable,DDMTemplateVersion> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
public static List<DDMTemplateVersion> findAll()
public static List<DDMTemplateVersion> 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 DDMTemplateVersionModelImpl. 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 d d m template versionsend - the upper bound of the range of d d m template versions (not inclusive)
public static List<DDMTemplateVersion> findAll(int start,
int end,
OrderByComparator<DDMTemplateVersion> 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 DDMTemplateVersionModelImpl. 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 d d m template versionsend - the upper bound of the range of d d m template versions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static void removeAll()
public static int countAll()
public static DDMTemplateVersionPersistence getPersistence()
@Deprecated public void setPersistence(DDMTemplateVersionPersistence persistence)
|
Liferay 7.0-ce-m6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||