public class DDMStructureVersionUtil
extends java.lang.Object
com.liferay.dynamic.data.mapping.service.persistence.impl.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
Constructor and Description |
---|
DDMStructureVersionUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(DDMStructureVersion ddmStructureVersion)
Caches the ddm structure version in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<DDMStructureVersion> ddmStructureVersions)
Caches the ddm 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 ddm structure versions.
|
static int |
countByS_S(long structureId,
int status)
Returns the number of ddm structure versions where structureId = ? and status = ?.
|
static int |
countByS_V(long structureId,
java.lang.String version)
Returns the number of ddm structure versions where structureId = ? and version = ?.
|
static int |
countByStructureId(long structureId)
Returns the number of ddm structure versions where structureId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static DDMStructureVersion |
create(long structureVersionId)
Creates a new ddm structure version with the primary key.
|
static DDMStructureVersion |
fetchByPrimaryKey(long structureVersionId)
Returns the ddm structure version with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,DDMStructureVersion> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static DDMStructureVersion |
fetchByS_S_First(long structureId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator)
Returns the first ddm structure version in the ordered set where structureId = ? and status = ?.
|
static DDMStructureVersion |
fetchByS_S_Last(long structureId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator)
Returns the last ddm structure version in the ordered set where structureId = ? and status = ?.
|
static DDMStructureVersion |
fetchByS_V(long structureId,
java.lang.String version)
Returns the ddm structure version where structureId = ? and version = ? or returns
null if it could not be found. |
static DDMStructureVersion |
fetchByS_V(long structureId,
java.lang.String version,
boolean useFinderCache)
Returns the ddm 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,
com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator)
Returns the first ddm structure version in the ordered set where structureId = ?.
|
static DDMStructureVersion |
fetchByStructureId_Last(long structureId,
com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator)
Returns the last ddm structure version in the ordered set where structureId = ?.
|
static java.util.List<DDMStructureVersion> |
findAll()
Returns all the ddm structure versions.
|
static java.util.List<DDMStructureVersion> |
findAll(int start,
int end)
Returns a range of all the ddm structure versions.
|
static java.util.List<DDMStructureVersion> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator)
Returns an ordered range of all the ddm structure versions.
|
static java.util.List<DDMStructureVersion> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ddm structure versions.
|
static DDMStructureVersion |
findByPrimaryKey(long structureVersionId)
Returns the ddm structure version with the primary key or throws a
NoSuchStructureVersionException if it could not be found. |
static DDMStructureVersion |
findByS_S_First(long structureId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator)
Returns the first ddm structure version in the ordered set where structureId = ? and status = ?.
|
static DDMStructureVersion |
findByS_S_Last(long structureId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator)
Returns the last ddm structure version in the ordered set where structureId = ? and status = ?.
|
static DDMStructureVersion[] |
findByS_S_PrevAndNext(long structureVersionId,
long structureId,
int status,
com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator)
Returns the ddm structure versions before and after the current ddm structure version in the ordered set where structureId = ? and status = ?.
|
static java.util.List<DDMStructureVersion> |
findByS_S(long structureId,
int status)
Returns all the ddm structure versions where structureId = ? and status = ?.
|
static java.util.List<DDMStructureVersion> |
findByS_S(long structureId,
int status,
int start,
int end)
Returns a range of all the ddm structure versions where structureId = ? and status = ?.
|
static java.util.List<DDMStructureVersion> |
findByS_S(long structureId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator)
Returns an ordered range of all the ddm structure versions where structureId = ? and status = ?.
|
static java.util.List<DDMStructureVersion> |
findByS_S(long structureId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ddm structure versions where structureId = ? and status = ?.
|
static DDMStructureVersion |
findByS_V(long structureId,
java.lang.String version)
Returns the ddm structure version where structureId = ? and version = ? or throws a
NoSuchStructureVersionException if it could not be found. |
static DDMStructureVersion |
findByStructureId_First(long structureId,
com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator)
Returns the first ddm structure version in the ordered set where structureId = ?.
|
static DDMStructureVersion |
findByStructureId_Last(long structureId,
com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator)
Returns the last ddm structure version in the ordered set where structureId = ?.
|
static DDMStructureVersion[] |
findByStructureId_PrevAndNext(long structureVersionId,
long structureId,
com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator)
Returns the ddm structure versions before and after the current ddm structure version in the ordered set where structureId = ?.
|
static java.util.List<DDMStructureVersion> |
findByStructureId(long structureId)
Returns all the ddm structure versions where structureId = ?.
|
static java.util.List<DDMStructureVersion> |
findByStructureId(long structureId,
int start,
int end)
Returns a range of all the ddm structure versions where structureId = ?.
|
static java.util.List<DDMStructureVersion> |
findByStructureId(long structureId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator)
Returns an ordered range of all the ddm structure versions where structureId = ?.
|
static java.util.List<DDMStructureVersion> |
findByStructureId(long structureId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ddm structure versions where structureId = ?.
|
static java.util.List<DDMStructureVersion> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<DDMStructureVersion> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<DDMStructureVersion> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator) |
static DDMStructureVersionPersistence |
getPersistence() |
static DDMStructureVersion |
remove(long structureVersionId)
Removes the ddm structure version with the primary key from the database.
|
static void |
removeAll()
Removes all the ddm structure versions from the database.
|
static void |
removeByS_S(long structureId,
int status)
Removes all the ddm structure versions where structureId = ? and status = ? from the database.
|
static DDMStructureVersion |
removeByS_V(long structureId,
java.lang.String version)
Removes the ddm structure version where structureId = ? and version = ? from the database.
|
static void |
removeByStructureId(long structureId)
Removes all the ddm structure versions where structureId = ? from the database.
|
static DDMStructureVersion |
update(DDMStructureVersion ddmStructureVersion) |
static DDMStructureVersion |
update(DDMStructureVersion ddmStructureVersion,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static DDMStructureVersion |
updateImpl(DDMStructureVersion ddmStructureVersion) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(DDMStructureVersion ddmStructureVersion)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,DDMStructureVersion> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<DDMStructureVersion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<DDMStructureVersion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<DDMStructureVersion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static DDMStructureVersion update(DDMStructureVersion ddmStructureVersion)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static DDMStructureVersion update(DDMStructureVersion ddmStructureVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<DDMStructureVersion> findByStructureId(long structureId)
structureId
- the structure IDpublic static java.util.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, then the query will include the default ORDER BY logic from DDMStructureVersionModelImpl
.
structureId
- the structure IDstart
- the lower bound of the range of ddm structure versionsend
- the upper bound of the range of ddm structure versions (not inclusive)public static java.util.List<DDMStructureVersion> findByStructureId(long structureId, int start, int end, com.liferay.portal.kernel.util.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, then the query will include the default ORDER BY logic from DDMStructureVersionModelImpl
.
structureId
- the structure IDstart
- the lower bound of the range of ddm structure versionsend
- the upper bound of the range of ddm structure versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<DDMStructureVersion> findByStructureId(long structureId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> 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, then the query will include the default ORDER BY logic from DDMStructureVersionModelImpl
.
structureId
- the structure IDstart
- the lower bound of the range of ddm structure versionsend
- the upper bound of the range of ddm structure versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static DDMStructureVersion findByStructureId_First(long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator) throws NoSuchStructureVersionException
structureId
- the structure IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchStructureVersionException
- if a matching ddm structure version could not be foundpublic static DDMStructureVersion fetchByStructureId_First(long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator)
structureId
- the structure IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm structure version could not be foundpublic static DDMStructureVersion findByStructureId_Last(long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator) throws NoSuchStructureVersionException
structureId
- the structure IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchStructureVersionException
- if a matching ddm structure version could not be foundpublic static DDMStructureVersion fetchByStructureId_Last(long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator)
structureId
- the structure IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm structure version could not be foundpublic static DDMStructureVersion[] findByStructureId_PrevAndNext(long structureVersionId, long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator) throws NoSuchStructureVersionException
structureVersionId
- the primary key of the current ddm structure versionstructureId
- the structure IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchStructureVersionException
- if a ddm 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 IDpublic static DDMStructureVersion findByS_V(long structureId, java.lang.String version) throws NoSuchStructureVersionException
NoSuchStructureVersionException
if it could not be found.structureId
- the structure IDversion
- the versionNoSuchStructureVersionException
- if a matching ddm structure version could not be foundpublic static DDMStructureVersion fetchByS_V(long structureId, java.lang.String version)
null
if it could not be found. Uses the finder cache.structureId
- the structure IDversion
- the versionnull
if a matching ddm structure version could not be foundpublic static DDMStructureVersion fetchByS_V(long structureId, java.lang.String version, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.structureId
- the structure IDversion
- the versionuseFinderCache
- whether to use the finder cachenull
if a matching ddm structure version could not be foundpublic static DDMStructureVersion removeByS_V(long structureId, java.lang.String version) throws NoSuchStructureVersionException
structureId
- the structure IDversion
- the versionNoSuchStructureVersionException
public static int countByS_V(long structureId, java.lang.String version)
structureId
- the structure IDversion
- the versionpublic static java.util.List<DDMStructureVersion> findByS_S(long structureId, int status)
structureId
- the structure IDstatus
- the statuspublic static java.util.List<DDMStructureVersion> findByS_S(long structureId, 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, then the query will include the default ORDER BY logic from DDMStructureVersionModelImpl
.
structureId
- the structure IDstatus
- the statusstart
- the lower bound of the range of ddm structure versionsend
- the upper bound of the range of ddm structure versions (not inclusive)public static java.util.List<DDMStructureVersion> findByS_S(long structureId, int status, int start, int end, com.liferay.portal.kernel.util.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, then the query will include the default ORDER BY logic from DDMStructureVersionModelImpl
.
structureId
- the structure IDstatus
- the statusstart
- the lower bound of the range of ddm structure versionsend
- the upper bound of the range of ddm structure versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<DDMStructureVersion> findByS_S(long structureId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> 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, then the query will include the default ORDER BY logic from DDMStructureVersionModelImpl
.
structureId
- the structure IDstatus
- the statusstart
- the lower bound of the range of ddm structure versionsend
- the upper bound of the range of ddm structure versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static DDMStructureVersion findByS_S_First(long structureId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator) throws NoSuchStructureVersionException
structureId
- the structure IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchStructureVersionException
- if a matching ddm structure version could not be foundpublic static DDMStructureVersion fetchByS_S_First(long structureId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator)
structureId
- the structure IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm structure version could not be foundpublic static DDMStructureVersion findByS_S_Last(long structureId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator) throws NoSuchStructureVersionException
structureId
- the structure IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchStructureVersionException
- if a matching ddm structure version could not be foundpublic static DDMStructureVersion fetchByS_S_Last(long structureId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator)
structureId
- the structure IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm structure version could not be foundpublic static DDMStructureVersion[] findByS_S_PrevAndNext(long structureVersionId, long structureId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator) throws NoSuchStructureVersionException
structureVersionId
- the primary key of the current ddm structure versionstructureId
- the structure IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchStructureVersionException
- if a ddm structure version with the primary key could not be foundpublic static void removeByS_S(long structureId, int status)
structureId
- the structure IDstatus
- the statuspublic static int countByS_S(long structureId, int status)
structureId
- the structure IDstatus
- the statuspublic static void cacheResult(DDMStructureVersion ddmStructureVersion)
ddmStructureVersion
- the ddm structure versionpublic static void cacheResult(java.util.List<DDMStructureVersion> ddmStructureVersions)
ddmStructureVersions
- the ddm structure versionspublic static DDMStructureVersion create(long structureVersionId)
structureVersionId
- the primary key for the new ddm structure versionpublic static DDMStructureVersion remove(long structureVersionId) throws NoSuchStructureVersionException
structureVersionId
- the primary key of the ddm structure versionNoSuchStructureVersionException
- if a ddm 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 ddm structure versionNoSuchStructureVersionException
- if a ddm 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 ddm structure versionnull
if a ddm structure version with the primary key could not be foundpublic static java.util.List<DDMStructureVersion> findAll()
public static java.util.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, then the query will include the default ORDER BY logic from DDMStructureVersionModelImpl
.
start
- the lower bound of the range of ddm structure versionsend
- the upper bound of the range of ddm structure versions (not inclusive)public static java.util.List<DDMStructureVersion> findAll(int start, int end, com.liferay.portal.kernel.util.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, then the query will include the default ORDER BY logic from DDMStructureVersionModelImpl
.
start
- the lower bound of the range of ddm structure versionsend
- the upper bound of the range of ddm structure versions (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<DDMStructureVersion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> 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, then the query will include the default ORDER BY logic from DDMStructureVersionModelImpl
.
start
- the lower bound of the range of ddm structure versionsend
- the upper bound of the range of ddm structure versions (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 DDMStructureVersionPersistence getPersistence()