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 voidcacheResult(DDMStructureVersion ddmStructureVersion) static voidcacheResult(List<DDMStructureVersion> ddmStructureVersions) static voidstatic voidclearCache(DDMStructureVersion ddmStructureVersion) static intcountByS_S(long structureId, int status) Returns the number of ddm structure versions where structureId = ? and status = ?.static intcountByS_V(long structureId, String version) Returns the number of ddm structure versions where structureId = ? and version = ?.static intcountByStructureId(long structureId) Returns the number of ddm structure versions where structureId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static DDMStructureVersioncreate(long structureVersionId) Creates a new ddm structure version with the primary key.static DDMStructureVersionfetchByPrimaryKey(long structureVersionId) Returns the ddm structure version with the primary key or returnsnullif it could not be found.static Map<Serializable, DDMStructureVersion> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static DDMStructureVersionfetchByS_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 DDMStructureVersionfetchByS_V(long structureId, String version) Returns the ddm structure version where structureId = ? and version = ? or returnsnullif it could not be found.static DDMStructureVersionfetchByS_V(long structureId, String version, boolean useFinderCache) Returns the ddm structure version where structureId = ? and version = ? or returnsnullif it could not be found, optionally using the finder cache.static DDMStructureVersionfetchByStructureId_First(long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator) Returns the first ddm structure version in the ordered set where structureId = ?.static DDMStructureVersionfindByPrimaryKey(long structureVersionId) Returns the ddm structure version with the primary key or throws aNoSuchStructureVersionExceptionif 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 DDMStructureVersionfindByS_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 DDMStructureVersionReturns the ddm structure version where structureId = ? and version = ? or throws aNoSuchStructureVersionExceptionif 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 DDMStructureVersionfindByStructureId_First(long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator) Returns the first 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 DDMStructureVersionremove(long structureVersionId) Removes the ddm structure version with the primary key from the database.static voidremoveByS_S(long structureId, int status) Removes all the ddm structure versions where structureId = ? and status = ? from the database.static DDMStructureVersionremoveByS_V(long structureId, String version) Removes the ddm structure version where structureId = ? and version = ? from the database.static voidremoveByStructureId(long structureId) Removes all the ddm structure versions where structureId = ? from the database.static voidsetPersistence(DDMStructureVersionPersistence persistence) static DDMStructureVersionupdate(DDMStructureVersion ddmStructureVersion) static DDMStructureVersionupdate(DDMStructureVersion ddmStructureVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) static DDMStructureVersionupdateImpl(DDMStructureVersion ddmStructureVersion)
-
Constructor Details
-
DDMStructureVersionUtil
public DDMStructureVersionUtil()
-
-
Method Details
-
cacheResult
- See Also:
-
cacheResult
- See Also:
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
public static Map<Serializable,DDMStructureVersion> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
findWithDynamicQuery
public static List<DDMStructureVersion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<DDMStructureVersion> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
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:
-
update
- See Also:
-
update
public static DDMStructureVersion update(DDMStructureVersion ddmStructureVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.dynamic.data.mapping.model.impl.DDMStructureVersionModelImpl.- 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
-
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
nullif a matching ddm structure version could not be found
-
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 aNoSuchStructureVersionExceptionif it could not be found.- Parameters:
structureId- the structure IDversion- the version- Returns:
- the matching ddm structure version
-
fetchByS_V
public static DDMStructureVersion fetchByS_V(long structureId, String version, boolean useFinderCache) Returns the ddm structure version where structureId = ? and version = ? or returnsnullif 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
nullif 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
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.dynamic.data.mapping.model.impl.DDMStructureVersionModelImpl.- 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
-
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
nullif a matching ddm structure version could not be found
-
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
-
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
-
updateImpl
-
findByPrimaryKey
public static DDMStructureVersion findByPrimaryKey(long structureVersionId) throws NoSuchStructureVersionException Returns the ddm structure version with the primary key or throws aNoSuchStructureVersionExceptionif it could not be found.- Parameters:
structureVersionId- the primary key of the ddm structure version- Returns:
- the ddm structure version
-
fetchByPrimaryKey
Returns the ddm structure version with the primary key or returnsnullif it could not be found.- Parameters:
structureVersionId- the primary key of the ddm structure version- Returns:
- the ddm structure version, or
nullif a ddm structure version with the primary key could not be found
-
fetchByS_V
Returns the ddm structure version where structureId = ? and version = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
structureId- the structure IDversion- the version- Returns:
- the matching ddm structure version, or
nullif a matching ddm structure version could not be found
-
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.dynamic.data.mapping.model.impl.DDMStructureVersionModelImpl.- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.dynamic.data.mapping.model.impl.DDMStructureVersionModelImpl.- 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
-
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.dynamic.data.mapping.model.impl.DDMStructureVersionModelImpl.- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.dynamic.data.mapping.model.impl.DDMStructureVersionModelImpl.- 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
-
getPersistence
-
setPersistence
-