|
Liferay 7.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureVersionUtil
@ProviderType public class DDMStructureVersionUtil
The persistence utility for the d d m structure version service. This utility wraps DDMStructureVersionPersistenceImpl 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
DDMStructureVersionPersistence,
DDMStructureVersionPersistenceImpl| Constructor Summary | |
|---|---|
DDMStructureVersionUtil()
|
|
| Method Summary | |
|---|---|
static void |
cacheResult(DDMStructureVersion ddmStructureVersion)
Caches the d d m structure version in the entity cache if it is enabled. |
static void |
cacheResult(List<DDMStructureVersion> ddmStructureVersions)
Caches the d d m structure versions in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(DDMStructureVersion ddmStructureVersion)
|
static int |
countAll()
Returns the number of d d m structure versions. |
static int |
countByS_V(long structureId,
String version)
Returns the number of d d m structure versions where structureId = ? and version = ?. |
static int |
countByStructureId(long structureId)
Returns the number of d d m structure versions where structureId = ?. |
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static DDMStructureVersion |
create(long structureVersionId)
Creates a new d d m structure version with the primary key. |
static DDMStructureVersion |
fetchByPrimaryKey(long structureVersionId)
Returns the d d m structure version with the primary key or returns null if it could not be found. |
static Map<Serializable,DDMStructureVersion> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
|
static DDMStructureVersion |
fetchByS_V(long structureId,
String version)
Returns the d d m structure version where structureId = ? and version = ? or returns null if it could not be found. |
static DDMStructureVersion |
fetchByS_V(long structureId,
String version,
boolean retrieveFromCache)
Returns the d d m structure version where structureId = ? and version = ? or returns null if it could not be found, optionally using the finder cache. |
static DDMStructureVersion |
fetchByStructureId_First(long structureId,
OrderByComparator<DDMStructureVersion> orderByComparator)
Returns the first d d m structure version in the ordered set where structureId = ?. |
static DDMStructureVersion |
fetchByStructureId_Last(long structureId,
OrderByComparator<DDMStructureVersion> orderByComparator)
Returns the last d d m structure version in the ordered set where structureId = ?. |
static List<DDMStructureVersion> |
findAll()
Returns all the d d m structure versions. |
static List<DDMStructureVersion> |
findAll(int start,
int end)
Returns a range of all the d d m structure versions. |
static List<DDMStructureVersion> |
findAll(int start,
int end,
OrderByComparator<DDMStructureVersion> orderByComparator)
Returns an ordered range of all the d d m structure versions. |
static DDMStructureVersion |
findByPrimaryKey(long structureVersionId)
Returns the d d m structure version with the primary key or throws a NoSuchStructureVersionException if it could not be found. |
static DDMStructureVersion |
findByS_V(long structureId,
String version)
Returns the d d m structure version where structureId = ? and version = ? or throws a NoSuchStructureVersionException if it could not be found. |
static DDMStructureVersion |
findByStructureId_First(long structureId,
OrderByComparator<DDMStructureVersion> orderByComparator)
Returns the first d d m structure version in the ordered set where structureId = ?. |
static DDMStructureVersion |
findByStructureId_Last(long structureId,
OrderByComparator<DDMStructureVersion> orderByComparator)
Returns the last d d m structure version in the ordered set where structureId = ?. |
static DDMStructureVersion[] |
findByStructureId_PrevAndNext(long structureVersionId,
long structureId,
OrderByComparator<DDMStructureVersion> orderByComparator)
Returns the d d m structure versions before and after the current d d m structure version in the ordered set where structureId = ?. |
static List<DDMStructureVersion> |
findByStructureId(long structureId)
Returns all the d d m structure versions where structureId = ?. |
static List<DDMStructureVersion> |
findByStructureId(long structureId,
int start,
int end)
Returns a range of all the d d m structure versions where structureId = ?. |
static List<DDMStructureVersion> |
findByStructureId(long structureId,
int start,
int end,
OrderByComparator<DDMStructureVersion> orderByComparator)
Returns an ordered range of all the d d m structure versions where structureId = ?. |
static List<DDMStructureVersion> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<DDMStructureVersion> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<DDMStructureVersion> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<DDMStructureVersion> orderByComparator)
|
static DDMStructureVersionPersistence |
getPersistence()
|
static DDMStructureVersion |
remove(long structureVersionId)
Removes the d d m structure version with the primary key from the database. |
static void |
removeAll()
Removes all the d d m structure versions from the database. |
static DDMStructureVersion |
removeByS_V(long structureId,
String version)
Removes the d d m structure version where structureId = ? and version = ? from the database. |
static void |
removeByStructureId(long structureId)
Removes all the d d m structure versions where structureId = ? from the database. |
void |
setPersistence(DDMStructureVersionPersistence persistence)
Deprecated. As of 6.2.0 |
static DDMStructureVersion |
update(DDMStructureVersion ddmStructureVersion)
|
static DDMStructureVersion |
update(DDMStructureVersion ddmStructureVersion,
ServiceContext serviceContext)
|
static DDMStructureVersion |
updateImpl(DDMStructureVersion ddmStructureVersion)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DDMStructureVersionUtil()
| Method Detail |
|---|
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(DDMStructureVersion ddmStructureVersion)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)public static List<DDMStructureVersion> findWithDynamicQuery(DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<DDMStructureVersion> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<DDMStructureVersion> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<DDMStructureVersion> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static DDMStructureVersion update(DDMStructureVersion ddmStructureVersion)
BasePersistence.update(com.liferay.portal.model.BaseModel)
public static DDMStructureVersion update(DDMStructureVersion ddmStructureVersion,
ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)public static List<DDMStructureVersion> findByStructureId(long structureId)
structureId - the structure ID
public static List<DDMStructureVersion> findByStructureId(long structureId,
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 com.liferay.portlet.dynamicdatamapping.model.impl.DDMStructureVersionModelImpl. 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.
structureId - the structure IDstart - the lower bound of the range of d d m structure versionsend - the upper bound of the range of d d m structure versions (not inclusive)
public static List<DDMStructureVersion> findByStructureId(long structureId,
int start,
int end,
OrderByComparator<DDMStructureVersion> 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 com.liferay.portlet.dynamicdatamapping.model.impl.DDMStructureVersionModelImpl. 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.
structureId - the structure IDstart - the lower bound of the range of d d m structure versionsend - the upper bound of the range of d d m structure versions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static DDMStructureVersion findByStructureId_First(long structureId,
OrderByComparator<DDMStructureVersion> orderByComparator)
throws NoSuchStructureVersionException
structureId - the structure IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchStructureVersionException - if a matching d d m structure version could not be found
public static DDMStructureVersion fetchByStructureId_First(long structureId,
OrderByComparator<DDMStructureVersion> orderByComparator)
structureId - the structure IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d m structure version could not be found
public static DDMStructureVersion findByStructureId_Last(long structureId,
OrderByComparator<DDMStructureVersion> orderByComparator)
throws NoSuchStructureVersionException
structureId - the structure IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchStructureVersionException - if a matching d d m structure version could not be found
public static DDMStructureVersion fetchByStructureId_Last(long structureId,
OrderByComparator<DDMStructureVersion> orderByComparator)
structureId - the structure IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching d d m structure version could not be found
public static DDMStructureVersion[] findByStructureId_PrevAndNext(long structureVersionId,
long structureId,
OrderByComparator<DDMStructureVersion> orderByComparator)
throws NoSuchStructureVersionException
structureVersionId - the primary key of the current d d m structure versionstructureId - the structure IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchStructureVersionException - if a d d m structure version with the primary key could not be foundpublic static void removeByStructureId(long structureId)
structureId - the structure IDpublic static int countByStructureId(long structureId)
structureId - the structure ID
public static DDMStructureVersion findByS_V(long structureId,
String version)
throws NoSuchStructureVersionException
NoSuchStructureVersionException if it could not be found.
structureId - the structure IDversion - the version
NoSuchStructureVersionException - if a matching d d m structure version could not be found
public static DDMStructureVersion fetchByS_V(long structureId,
String version)
null if it could not be found. Uses the finder cache.
structureId - the structure IDversion - the version
null if a matching d d m structure version could not be found
public static DDMStructureVersion fetchByS_V(long structureId,
String version,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
structureId - the structure IDversion - the versionretrieveFromCache - whether to use the finder cache
null if a matching d d m structure version could not be found
public static DDMStructureVersion removeByS_V(long structureId,
String version)
throws NoSuchStructureVersionException
structureId - the structure IDversion - the version
NoSuchStructureVersionException
public static int countByS_V(long structureId,
String version)
structureId - the structure IDversion - the version
public static void cacheResult(DDMStructureVersion ddmStructureVersion)
ddmStructureVersion - the d d m structure versionpublic static void cacheResult(List<DDMStructureVersion> ddmStructureVersions)
ddmStructureVersions - the d d m structure versionspublic static DDMStructureVersion create(long structureVersionId)
structureVersionId - the primary key for the new d d m structure version
public static DDMStructureVersion remove(long structureVersionId)
throws NoSuchStructureVersionException
structureVersionId - the primary key of the d d m structure version
NoSuchStructureVersionException - if a d d m structure version with the primary key could not be foundpublic static DDMStructureVersion updateImpl(DDMStructureVersion ddmStructureVersion)
public static DDMStructureVersion findByPrimaryKey(long structureVersionId)
throws NoSuchStructureVersionException
NoSuchStructureVersionException if it could not be found.
structureVersionId - the primary key of the d d m structure version
NoSuchStructureVersionException - if a d d m structure version with the primary key could not be foundpublic static DDMStructureVersion fetchByPrimaryKey(long structureVersionId)
null if it could not be found.
structureVersionId - the primary key of the d d m structure version
null if a d d m structure version with the primary key could not be foundpublic static Map<Serializable,DDMStructureVersion> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
public static List<DDMStructureVersion> findAll()
public static List<DDMStructureVersion> 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 com.liferay.portlet.dynamicdatamapping.model.impl.DDMStructureVersionModelImpl. 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 structure versionsend - the upper bound of the range of d d m structure versions (not inclusive)
public static List<DDMStructureVersion> findAll(int start,
int end,
OrderByComparator<DDMStructureVersion> 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 com.liferay.portlet.dynamicdatamapping.model.impl.DDMStructureVersionModelImpl. 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 structure versionsend - the upper bound of the range of d d m structure versions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public static void removeAll()
public static int countAll()
public static DDMStructureVersionPersistence getPersistence()
@Deprecated public void setPersistence(DDMStructureVersionPersistence persistence)
|
Liferay 7.0-ce-m3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||