Class DDMStructureVersionUtil
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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(DDMStructureVersion ddmStructureVersion) Caches the ddm structure version in the entity cache if it is enabled.static void
cacheResult
(List<DDMStructureVersion> ddmStructureVersions) Caches the ddm structure versions in the entity cache if it is enabled.static void
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, 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 returnsnull
if it could not be found.static Map<Serializable,
DDMStructureVersion> fetchByPrimaryKeys
(Set<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, String version) Returns the ddm structure version where structureId = ? and version = ? or returnsnull
if it could not be found.static DDMStructureVersion
fetchByS_V
(long structureId, String version, boolean useFinderCache) Returns the ddm structure version where structureId = ? and version = ? or returnsnull
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 List<DDMStructureVersion>
findAll()
Returns all the ddm structure versions.static List<DDMStructureVersion>
findAll
(int start, int end) Returns a range of all the ddm structure versions.static 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 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 aNoSuchStructureVersionException
if it could not be found.static List<DDMStructureVersion>
findByS_S
(long structureId, int status) Returns all the ddm structure versions where structureId = ? and status = ?.static 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 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 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_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 DDMStructureVersion
Returns the ddm structure version where structureId = ? and version = ? or throws aNoSuchStructureVersionException
if it could not be found.static List<DDMStructureVersion>
findByStructureId
(long structureId) Returns all the ddm structure versions where structureId = ?.static List<DDMStructureVersion>
findByStructureId
(long structureId, int start, int end) Returns a range of all the ddm structure versions where structureId = ?.static 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 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 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 List<DDMStructureVersion>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<DDMStructureVersion>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<DDMStructureVersion>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator) static DDMStructureVersion
remove
(long structureVersionId) Removes the ddm structure version with the primary key from the database.static void
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, 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 void
setPersistence
(DDMStructureVersionPersistence persistence) static DDMStructureVersion
update
(DDMStructureVersion ddmStructureVersion) static DDMStructureVersion
update
(DDMStructureVersion ddmStructureVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) static DDMStructureVersion
updateImpl
(DDMStructureVersion ddmStructureVersion)
-
Constructor Details
-
DDMStructureVersionUtil
public DDMStructureVersionUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
public static Map<Serializable,DDMStructureVersion> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<DDMStructureVersion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<DDMStructureVersion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<DDMStructureVersion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static DDMStructureVersion update(DDMStructureVersion ddmStructureVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByStructureId
Returns all the ddm structure versions where structureId = ?.- Parameters:
structureId
- the structure ID- Returns:
- the matching ddm structure versions
-
findByStructureId
Returns a range of all the ddm structure versions where structureId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMStructureVersionModelImpl
.- Parameters:
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)- Returns:
- the range of matching ddm structure versions
-
findByStructureId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMStructureVersionModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching ddm structure versions
-
findByStructureId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMStructureVersionModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching ddm structure versions
-
findByStructureId_First
public static DDMStructureVersion findByStructureId_First(long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator) throws NoSuchStructureVersionException Returns the first ddm structure version in the ordered set where structureId = ?.- Parameters:
structureId
- the structure IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ddm structure version
- Throws:
NoSuchStructureVersionException
- if a matching ddm structure version could not be foundNoSuchStructureVersionException
-
fetchByStructureId_First
public 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 = ?.- Parameters:
structureId
- the structure IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ddm structure version, or
null
if a matching ddm structure version could not be found
-
findByStructureId_Last
public static DDMStructureVersion findByStructureId_Last(long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator) throws NoSuchStructureVersionException Returns the last ddm structure version in the ordered set where structureId = ?.- Parameters:
structureId
- the structure IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ddm structure version
- Throws:
NoSuchStructureVersionException
- if a matching ddm structure version could not be foundNoSuchStructureVersionException
-
fetchByStructureId_Last
public 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 = ?.- Parameters:
structureId
- the structure IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ddm structure version, or
null
if a matching ddm structure version could not be found
-
findByStructureId_PrevAndNext
public static DDMStructureVersion[] findByStructureId_PrevAndNext(long structureVersionId, long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator) throws NoSuchStructureVersionException Returns the ddm structure versions before and after the current ddm structure version in the ordered set where structureId = ?.- Parameters:
structureVersionId
- the primary key of the current ddm structure versionstructureId
- the structure IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next ddm structure version
- Throws:
NoSuchStructureVersionException
- if a ddm structure version with the primary key could not be foundNoSuchStructureVersionException
-
removeByStructureId
public static void removeByStructureId(long structureId) Removes all the ddm structure versions where structureId = ? from the database.- Parameters:
structureId
- the structure ID
-
countByStructureId
public static int countByStructureId(long structureId) Returns the number of ddm structure versions where structureId = ?.- Parameters:
structureId
- the structure ID- Returns:
- the number of matching ddm structure versions
-
findByS_V
public static DDMStructureVersion findByS_V(long structureId, String version) throws NoSuchStructureVersionException Returns the ddm structure version where structureId = ? and version = ? or throws aNoSuchStructureVersionException
if it could not be found.- Parameters:
structureId
- the structure IDversion
- the version- Returns:
- the matching ddm structure version
- Throws:
NoSuchStructureVersionException
- if a matching ddm structure version could not be foundNoSuchStructureVersionException
-
fetchByS_V
Returns the ddm structure version where structureId = ? and version = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
structureId
- the structure IDversion
- the version- Returns:
- the matching ddm structure version, or
null
if a matching ddm structure version could not be found
-
fetchByS_V
public static DDMStructureVersion fetchByS_V(long structureId, String version, boolean useFinderCache) Returns the ddm structure version where structureId = ? and version = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
structureId
- the structure IDversion
- the versionuseFinderCache
- whether to use the finder cache- Returns:
- the matching ddm structure version, or
null
if a matching ddm structure version could not be found
-
removeByS_V
public static DDMStructureVersion removeByS_V(long structureId, String version) throws NoSuchStructureVersionException Removes the ddm structure version where structureId = ? and version = ? from the database.- Parameters:
structureId
- the structure IDversion
- the version- Returns:
- the ddm structure version that was removed
- Throws:
NoSuchStructureVersionException
-
countByS_V
Returns the number of ddm structure versions where structureId = ? and version = ?.- Parameters:
structureId
- the structure IDversion
- the version- Returns:
- the number of matching ddm structure versions
-
findByS_S
Returns all the ddm structure versions where structureId = ? and status = ?.- Parameters:
structureId
- the structure IDstatus
- the status- Returns:
- the matching ddm structure versions
-
findByS_S
Returns a range of all the ddm structure versions where structureId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMStructureVersionModelImpl
.- Parameters:
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)- Returns:
- the range of matching ddm structure versions
-
findByS_S
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMStructureVersionModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching ddm structure versions
-
findByS_S
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMStructureVersionModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching ddm structure versions
-
findByS_S_First
public static DDMStructureVersion findByS_S_First(long structureId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator) throws NoSuchStructureVersionException Returns the first ddm structure version in the ordered set where structureId = ? and status = ?.- Parameters:
structureId
- the structure IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ddm structure version
- Throws:
NoSuchStructureVersionException
- if a matching ddm structure version could not be foundNoSuchStructureVersionException
-
fetchByS_S_First
public 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 = ?.- Parameters:
structureId
- the structure IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ddm structure version, or
null
if a matching ddm structure version could not be found
-
findByS_S_Last
public static DDMStructureVersion findByS_S_Last(long structureId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator) throws NoSuchStructureVersionException Returns the last ddm structure version in the ordered set where structureId = ? and status = ?.- Parameters:
structureId
- the structure IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ddm structure version
- Throws:
NoSuchStructureVersionException
- if a matching ddm structure version could not be foundNoSuchStructureVersionException
-
fetchByS_S_Last
public 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 = ?.- Parameters:
structureId
- the structure IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ddm structure version, or
null
if a matching ddm structure version could not be found
-
findByS_S_PrevAndNext
public static DDMStructureVersion[] findByS_S_PrevAndNext(long structureVersionId, long structureId, int status, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator) throws NoSuchStructureVersionException Returns the ddm structure versions before and after the current ddm structure version in the ordered set where structureId = ? and status = ?.- Parameters:
structureVersionId
- the primary key of the current ddm structure versionstructureId
- the structure IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next ddm structure version
- Throws:
NoSuchStructureVersionException
- if a ddm structure version with the primary key could not be foundNoSuchStructureVersionException
-
removeByS_S
public static void removeByS_S(long structureId, int status) Removes all the ddm structure versions where structureId = ? and status = ? from the database.- Parameters:
structureId
- the structure IDstatus
- the status
-
countByS_S
public static int countByS_S(long structureId, int status) Returns the number of ddm structure versions where structureId = ? and status = ?.- Parameters:
structureId
- the structure IDstatus
- the status- Returns:
- the number of matching ddm structure versions
-
cacheResult
Caches the ddm structure version in the entity cache if it is enabled.- Parameters:
ddmStructureVersion
- the ddm structure version
-
cacheResult
Caches the ddm structure versions in the entity cache if it is enabled.- Parameters:
ddmStructureVersions
- the ddm structure versions
-
create
Creates a new ddm structure version with the primary key. Does not add the ddm structure version to the database.- Parameters:
structureVersionId
- the primary key for the new ddm structure version- Returns:
- the new ddm structure version
-
remove
public static DDMStructureVersion remove(long structureVersionId) throws NoSuchStructureVersionException Removes the ddm structure version with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
structureVersionId
- the primary key of the ddm structure version- Returns:
- the ddm structure version that was removed
- Throws:
NoSuchStructureVersionException
- if a ddm structure version with the primary key could not be foundNoSuchStructureVersionException
-
updateImpl
-
findByPrimaryKey
public static DDMStructureVersion findByPrimaryKey(long structureVersionId) throws NoSuchStructureVersionException Returns the ddm structure version with the primary key or throws aNoSuchStructureVersionException
if it could not be found.- Parameters:
structureVersionId
- the primary key of the ddm structure version- Returns:
- the ddm structure version
- Throws:
NoSuchStructureVersionException
- if a ddm structure version with the primary key could not be foundNoSuchStructureVersionException
-
fetchByPrimaryKey
Returns the ddm structure version with the primary key or returnsnull
if it could not be found.- Parameters:
structureVersionId
- the primary key of the ddm structure version- Returns:
- the ddm structure version, or
null
if a ddm structure version with the primary key could not be found
-
findAll
Returns all the ddm structure versions.- Returns:
- the ddm structure versions
-
findAll
Returns a range of all the ddm structure versions.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMStructureVersionModelImpl
.- Parameters:
start
- the lower bound of the range of ddm structure versionsend
- the upper bound of the range of ddm structure versions (not inclusive)- Returns:
- the range of ddm structure versions
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMStructureVersionModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of ddm structure versions
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDDMStructureVersionModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of ddm structure versions
-
removeAll
public static void removeAll()Removes all the ddm structure versions from the database. -
countAll
public static int countAll()Returns the number of ddm structure versions.- Returns:
- the number of ddm structure versions
-
getPersistence
-
setPersistence
-