Interface DDMStructureVersionPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<DDMStructureVersion>
,com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DDMStructureVersion>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(DDMStructureVersion ddmStructureVersion) Caches the ddm structure version in the entity cache if it is enabled.void
cacheResult
(List<DDMStructureVersion> ddmStructureVersions) Caches the ddm structure versions in the entity cache if it is enabled.int
countAll()
Returns the number of ddm structure versions.int
countByS_S
(long structureId, int status) Returns the number of ddm structure versions where structureId = ? and status = ?.int
countByS_V
(long structureId, String version) Returns the number of ddm structure versions where structureId = ? and version = ?.int
countByStructureId
(long structureId) Returns the number of ddm structure versions where structureId = ?.create
(long structureVersionId) Creates a new ddm structure version with the primary key.fetchByPrimaryKey
(long structureVersionId) Returns the ddm structure version with the primary key or returnsnull
if it could not be found.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 = ?.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 = ?.fetchByS_V
(long structureId, String version) Returns the ddm structure version where structureId = ? and version = ? or returnsnull
if it could not be found.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.fetchByStructureId_First
(long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator) Returns the first ddm structure version in the ordered set where structureId = ?.fetchByStructureId_Last
(long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator) Returns the last ddm structure version in the ordered set where structureId = ?.findAll()
Returns all the ddm structure versions.findAll
(int start, int end) Returns a range of all the ddm structure versions.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator) Returns an ordered range of all the ddm structure versions.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.findByPrimaryKey
(long structureVersionId) Returns the ddm structure version with the primary key or throws aNoSuchStructureVersionException
if it could not be found.findByS_S
(long structureId, int status) Returns all the ddm structure versions where structureId = ? and status = ?.findByS_S
(long structureId, int status, int start, int end) Returns a range of all the ddm structure versions where structureId = ? and status = ?.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 = ?.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 = ?.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 = ?.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 = ?.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 = ?.Returns the ddm structure version where structureId = ? and version = ? or throws aNoSuchStructureVersionException
if it could not be found.findByStructureId
(long structureId) Returns all the ddm structure versions where structureId = ?.findByStructureId
(long structureId, int start, int end) Returns a range of all the ddm structure versions where structureId = ?.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 = ?.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 = ?.findByStructureId_First
(long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator) Returns the first ddm structure version in the ordered set where structureId = ?.findByStructureId_Last
(long structureId, com.liferay.portal.kernel.util.OrderByComparator<DDMStructureVersion> orderByComparator) Returns the last ddm structure version in the ordered set where structureId = ?.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 = ?.remove
(long structureVersionId) Removes the ddm structure version with the primary key from the database.void
Removes all the ddm structure versions from the database.void
removeByS_S
(long structureId, int status) Removes all the ddm structure versions where structureId = ? and status = ? from the database.removeByS_V
(long structureId, String version) Removes the ddm structure version where structureId = ? and version = ? from the database.void
removeByStructureId
(long structureId) Removes all the ddm structure versions where structureId = ? from the database.updateImpl
(DDMStructureVersion ddmStructureVersion) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
Methods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
-
Method Details
-
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
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
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
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 found
-
fetchByStructureId_First
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
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 found
-
fetchByStructureId_Last
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
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 found
-
removeByStructureId
void removeByStructureId(long structureId) Removes all the ddm structure versions where structureId = ? from the database.- Parameters:
structureId
- the structure ID
-
countByStructureId
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
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 found
-
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
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
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
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
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
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 found
-
fetchByS_S_First
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
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 found
-
fetchByS_S_Last
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
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 found
-
removeByS_S
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
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
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 found
-
updateImpl
-
findByPrimaryKey
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 found
-
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
List<DDMStructureVersion> 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
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
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
void removeAll()Removes all the ddm structure versions from the database. -
countAll
int countAll()Returns the number of ddm structure versions.- Returns:
- the number of ddm structure versions
-