Liferay 7.0-ce-m6

com.liferay.portlet.dynamicdatamapping.service.persistence
Interface DDMStructureVersionPersistence

All Superinterfaces:
BasePersistence<DDMStructureVersion>
All Known Implementing Classes:
DDMStructureVersionPersistenceImpl

@ProviderType
public interface DDMStructureVersionPersistence
extends BasePersistence<DDMStructureVersion>

The persistence interface for the d d m structure version service.

Caching information and settings can be found in portal.properties

See Also:
DDMStructureVersionPersistenceImpl, DDMStructureVersionUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
 void cacheResult(DDMStructureVersion ddmStructureVersion)
          Caches the d d m structure version in the entity cache if it is enabled.
 void cacheResult(List<DDMStructureVersion> ddmStructureVersions)
          Caches the d d m structure versions in the entity cache if it is enabled.
 int countAll()
          Returns the number of d d m structure versions.
 int countByS_S(long structureId, int status)
          Returns the number of d d m structure versions where structureId = ? and status = ?.
 int countByS_V(long structureId, String version)
          Returns the number of d d m structure versions where structureId = ? and version = ?.
 int countByStructureId(long structureId)
          Returns the number of d d m structure versions where structureId = ?.
 DDMStructureVersion create(long structureVersionId)
          Creates a new d d m structure version with the primary key.
 DDMStructureVersion fetchByPrimaryKey(long structureVersionId)
          Returns the d d m structure version with the primary key or returns null if it could not be found.
 Map<Serializable,DDMStructureVersion> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
 DDMStructureVersion fetchByS_S_First(long structureId, int status, OrderByComparator<DDMStructureVersion> orderByComparator)
          Returns the first d d m structure version in the ordered set where structureId = ? and status = ?.
 DDMStructureVersion fetchByS_S_Last(long structureId, int status, OrderByComparator<DDMStructureVersion> orderByComparator)
          Returns the last d d m structure version in the ordered set where structureId = ? and status = ?.
 DDMStructureVersion fetchByS_V(long structureId, String version)
          Returns the d d m structure version where structureId = ? and version = ? or returns null if it could not be found.
 DDMStructureVersion fetchByS_V(long structureId, String version, boolean retrieveFromCache)
          Returns the d d m structure version where structureId = ? and version = ? or returns null if it could not be found, optionally using the finder cache.
 DDMStructureVersion fetchByStructureId_First(long structureId, OrderByComparator<DDMStructureVersion> orderByComparator)
          Returns the first d d m structure version in the ordered set where structureId = ?.
 DDMStructureVersion fetchByStructureId_Last(long structureId, OrderByComparator<DDMStructureVersion> orderByComparator)
          Returns the last d d m structure version in the ordered set where structureId = ?.
 List<DDMStructureVersion> findAll()
          Returns all the d d m structure versions.
 List<DDMStructureVersion> findAll(int start, int end)
          Returns a range of all the d d m structure versions.
 List<DDMStructureVersion> findAll(int start, int end, OrderByComparator<DDMStructureVersion> orderByComparator)
          Returns an ordered range of all the d d m structure versions.
 DDMStructureVersion findByPrimaryKey(long structureVersionId)
          Returns the d d m structure version with the primary key or throws a NoSuchStructureVersionException if it could not be found.
 DDMStructureVersion findByS_S_First(long structureId, int status, OrderByComparator<DDMStructureVersion> orderByComparator)
          Returns the first d d m structure version in the ordered set where structureId = ? and status = ?.
 DDMStructureVersion findByS_S_Last(long structureId, int status, OrderByComparator<DDMStructureVersion> orderByComparator)
          Returns the last d d m structure version in the ordered set where structureId = ? and status = ?.
 DDMStructureVersion[] findByS_S_PrevAndNext(long structureVersionId, long structureId, int status, OrderByComparator<DDMStructureVersion> orderByComparator)
          Returns the d d m structure versions before and after the current d d m structure version in the ordered set where structureId = ? and status = ?.
 List<DDMStructureVersion> findByS_S(long structureId, int status)
          Returns all the d d m structure versions where structureId = ? and status = ?.
 List<DDMStructureVersion> findByS_S(long structureId, int status, int start, int end)
          Returns a range of all the d d m structure versions where structureId = ? and status = ?.
 List<DDMStructureVersion> findByS_S(long structureId, int status, int start, int end, OrderByComparator<DDMStructureVersion> orderByComparator)
          Returns an ordered range of all the d d m structure versions where structureId = ? and status = ?.
 DDMStructureVersion findByS_V(long structureId, String version)
          Returns the d d m structure version where structureId = ? and version = ? or throws a NoSuchStructureVersionException if it could not be found.
 DDMStructureVersion findByStructureId_First(long structureId, OrderByComparator<DDMStructureVersion> orderByComparator)
          Returns the first d d m structure version in the ordered set where structureId = ?.
 DDMStructureVersion findByStructureId_Last(long structureId, OrderByComparator<DDMStructureVersion> orderByComparator)
          Returns the last d d m structure version in the ordered set where structureId = ?.
 DDMStructureVersion[] findByStructureId_PrevAndNext(long structureVersionId, long structureId, OrderByComparator<DDMStructureVersion> orderByComparator)
          Returns the d d m structure versions before and after the current d d m structure version in the ordered set where structureId = ?.
 List<DDMStructureVersion> findByStructureId(long structureId)
          Returns all the d d m structure versions where structureId = ?.
 List<DDMStructureVersion> findByStructureId(long structureId, int start, int end)
          Returns a range of all the d d m structure versions where structureId = ?.
 List<DDMStructureVersion> findByStructureId(long structureId, int start, int end, OrderByComparator<DDMStructureVersion> orderByComparator)
          Returns an ordered range of all the d d m structure versions where structureId = ?.
 DDMStructureVersion remove(long structureVersionId)
          Removes the d d m structure version with the primary key from the database.
 void removeAll()
          Removes all the d d m structure versions from the database.
 void removeByS_S(long structureId, int status)
          Removes all the d d m structure versions where structureId = ? and status = ? from the database.
 DDMStructureVersion removeByS_V(long structureId, String version)
          Removes the d d m structure version where structureId = ? and version = ? from the database.
 void removeByStructureId(long structureId)
          Removes all the d d m structure versions where structureId = ? from the database.
 DDMStructureVersion updateImpl(DDMStructureVersion ddmStructureVersion)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update
 

Method Detail

findByStructureId

List<DDMStructureVersion> findByStructureId(long structureId)
Returns all the d d m structure versions where structureId = ?.

Parameters:
structureId - the structure ID
Returns:
the matching d d m structure versions

findByStructureId

List<DDMStructureVersion> findByStructureId(long structureId,
                                            int start,
                                            int end)
Returns a range of all the d d m structure versions where structureId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DDMStructureVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
structureId - the structure ID
start - the lower bound of the range of d d m structure versions
end - the upper bound of the range of d d m structure versions (not inclusive)
Returns:
the range of matching d d m structure versions

findByStructureId

List<DDMStructureVersion> findByStructureId(long structureId,
                                            int start,
                                            int end,
                                            OrderByComparator<DDMStructureVersion> orderByComparator)
Returns an ordered range of all the d d m structure versions where structureId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DDMStructureVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
structureId - the structure ID
start - the lower bound of the range of d d m structure versions
end - the upper bound of the range of d d m structure versions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m structure versions

findByStructureId_First

DDMStructureVersion findByStructureId_First(long structureId,
                                            OrderByComparator<DDMStructureVersion> orderByComparator)
                                            throws NoSuchStructureVersionException
Returns the first d d m structure version in the ordered set where structureId = ?.

Parameters:
structureId - the structure ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m structure version
Throws:
NoSuchStructureVersionException - if a matching d d m structure version could not be found

fetchByStructureId_First

DDMStructureVersion fetchByStructureId_First(long structureId,
                                             OrderByComparator<DDMStructureVersion> orderByComparator)
Returns the first d d m structure version in the ordered set where structureId = ?.

Parameters:
structureId - the structure ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m structure version, or null if a matching d d m structure version could not be found

findByStructureId_Last

DDMStructureVersion findByStructureId_Last(long structureId,
                                           OrderByComparator<DDMStructureVersion> orderByComparator)
                                           throws NoSuchStructureVersionException
Returns the last d d m structure version in the ordered set where structureId = ?.

Parameters:
structureId - the structure ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m structure version
Throws:
NoSuchStructureVersionException - if a matching d d m structure version could not be found

fetchByStructureId_Last

DDMStructureVersion fetchByStructureId_Last(long structureId,
                                            OrderByComparator<DDMStructureVersion> orderByComparator)
Returns the last d d m structure version in the ordered set where structureId = ?.

Parameters:
structureId - the structure ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m structure version, or null if a matching d d m structure version could not be found

findByStructureId_PrevAndNext

DDMStructureVersion[] findByStructureId_PrevAndNext(long structureVersionId,
                                                    long structureId,
                                                    OrderByComparator<DDMStructureVersion> orderByComparator)
                                                    throws NoSuchStructureVersionException
Returns the d d m structure versions before and after the current d d m structure version in the ordered set where structureId = ?.

Parameters:
structureVersionId - the primary key of the current d d m structure version
structureId - the structure ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m structure version
Throws:
NoSuchStructureVersionException - if a d d m structure version with the primary key could not be found

removeByStructureId

void removeByStructureId(long structureId)
Removes all the d d m structure versions where structureId = ? from the database.

Parameters:
structureId - the structure ID

countByStructureId

int countByStructureId(long structureId)
Returns the number of d d m structure versions where structureId = ?.

Parameters:
structureId - the structure ID
Returns:
the number of matching d d m structure versions

findByS_V

DDMStructureVersion findByS_V(long structureId,
                              String version)
                              throws NoSuchStructureVersionException
Returns the d d m structure version where structureId = ? and version = ? or throws a NoSuchStructureVersionException if it could not be found.

Parameters:
structureId - the structure ID
version - the version
Returns:
the matching d d m structure version
Throws:
NoSuchStructureVersionException - if a matching d d m structure version could not be found

fetchByS_V

DDMStructureVersion fetchByS_V(long structureId,
                               String version)
Returns the d d m structure version where structureId = ? and version = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
structureId - the structure ID
version - the version
Returns:
the matching d d m structure version, or null if a matching d d m structure version could not be found

fetchByS_V

DDMStructureVersion fetchByS_V(long structureId,
                               String version,
                               boolean retrieveFromCache)
Returns the d d m structure version where structureId = ? and version = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
structureId - the structure ID
version - the version
retrieveFromCache - whether to use the finder cache
Returns:
the matching d d m structure version, or null if a matching d d m structure version could not be found

removeByS_V

DDMStructureVersion removeByS_V(long structureId,
                                String version)
                                throws NoSuchStructureVersionException
Removes the d d m structure version where structureId = ? and version = ? from the database.

Parameters:
structureId - the structure ID
version - the version
Returns:
the d d m structure version that was removed
Throws:
NoSuchStructureVersionException

countByS_V

int countByS_V(long structureId,
               String version)
Returns the number of d d m structure versions where structureId = ? and version = ?.

Parameters:
structureId - the structure ID
version - the version
Returns:
the number of matching d d m structure versions

findByS_S

List<DDMStructureVersion> findByS_S(long structureId,
                                    int status)
Returns all the d d m structure versions where structureId = ? and status = ?.

Parameters:
structureId - the structure ID
status - the status
Returns:
the matching d d m structure versions

findByS_S

List<DDMStructureVersion> findByS_S(long structureId,
                                    int status,
                                    int start,
                                    int end)
Returns a range of all the d d m structure versions where structureId = ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DDMStructureVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
structureId - the structure ID
status - the status
start - the lower bound of the range of d d m structure versions
end - the upper bound of the range of d d m structure versions (not inclusive)
Returns:
the range of matching d d m structure versions

findByS_S

List<DDMStructureVersion> findByS_S(long structureId,
                                    int status,
                                    int start,
                                    int end,
                                    OrderByComparator<DDMStructureVersion> orderByComparator)
Returns an ordered range of all the d d m structure versions where structureId = ? and status = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DDMStructureVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
structureId - the structure ID
status - the status
start - the lower bound of the range of d d m structure versions
end - the upper bound of the range of d d m structure versions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m structure versions

findByS_S_First

DDMStructureVersion findByS_S_First(long structureId,
                                    int status,
                                    OrderByComparator<DDMStructureVersion> orderByComparator)
                                    throws NoSuchStructureVersionException
Returns the first d d m structure version in the ordered set where structureId = ? and status = ?.

Parameters:
structureId - the structure ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m structure version
Throws:
NoSuchStructureVersionException - if a matching d d m structure version could not be found

fetchByS_S_First

DDMStructureVersion fetchByS_S_First(long structureId,
                                     int status,
                                     OrderByComparator<DDMStructureVersion> orderByComparator)
Returns the first d d m structure version in the ordered set where structureId = ? and status = ?.

Parameters:
structureId - the structure ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d m structure version, or null if a matching d d m structure version could not be found

findByS_S_Last

DDMStructureVersion findByS_S_Last(long structureId,
                                   int status,
                                   OrderByComparator<DDMStructureVersion> orderByComparator)
                                   throws NoSuchStructureVersionException
Returns the last d d m structure version in the ordered set where structureId = ? and status = ?.

Parameters:
structureId - the structure ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m structure version
Throws:
NoSuchStructureVersionException - if a matching d d m structure version could not be found

fetchByS_S_Last

DDMStructureVersion fetchByS_S_Last(long structureId,
                                    int status,
                                    OrderByComparator<DDMStructureVersion> orderByComparator)
Returns the last d d m structure version in the ordered set where structureId = ? and status = ?.

Parameters:
structureId - the structure ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d m structure version, or null if a matching d d m structure version could not be found

findByS_S_PrevAndNext

DDMStructureVersion[] findByS_S_PrevAndNext(long structureVersionId,
                                            long structureId,
                                            int status,
                                            OrderByComparator<DDMStructureVersion> orderByComparator)
                                            throws NoSuchStructureVersionException
Returns the d d m structure versions before and after the current d d m structure version in the ordered set where structureId = ? and status = ?.

Parameters:
structureVersionId - the primary key of the current d d m structure version
structureId - the structure ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d m structure version
Throws:
NoSuchStructureVersionException - if a d d m structure version with the primary key could not be found

removeByS_S

void removeByS_S(long structureId,
                 int status)
Removes all the d d m structure versions where structureId = ? and status = ? from the database.

Parameters:
structureId - the structure ID
status - the status

countByS_S

int countByS_S(long structureId,
               int status)
Returns the number of d d m structure versions where structureId = ? and status = ?.

Parameters:
structureId - the structure ID
status - the status
Returns:
the number of matching d d m structure versions

cacheResult

void cacheResult(DDMStructureVersion ddmStructureVersion)
Caches the d d m structure version in the entity cache if it is enabled.

Parameters:
ddmStructureVersion - the d d m structure version

cacheResult

void cacheResult(List<DDMStructureVersion> ddmStructureVersions)
Caches the d d m structure versions in the entity cache if it is enabled.

Parameters:
ddmStructureVersions - the d d m structure versions

create

DDMStructureVersion create(long structureVersionId)
Creates a new d d m structure version with the primary key. Does not add the d d m structure version to the database.

Parameters:
structureVersionId - the primary key for the new d d m structure version
Returns:
the new d d m structure version

remove

DDMStructureVersion remove(long structureVersionId)
                           throws NoSuchStructureVersionException
Removes the d d m structure version with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
structureVersionId - the primary key of the d d m structure version
Returns:
the d d m structure version that was removed
Throws:
NoSuchStructureVersionException - if a d d m structure version with the primary key could not be found

updateImpl

DDMStructureVersion updateImpl(DDMStructureVersion ddmStructureVersion)

findByPrimaryKey

DDMStructureVersion findByPrimaryKey(long structureVersionId)
                                     throws NoSuchStructureVersionException
Returns the d d m structure version with the primary key or throws a NoSuchStructureVersionException if it could not be found.

Parameters:
structureVersionId - the primary key of the d d m structure version
Returns:
the d d m structure version
Throws:
NoSuchStructureVersionException - if a d d m structure version with the primary key could not be found

fetchByPrimaryKey

DDMStructureVersion fetchByPrimaryKey(long structureVersionId)
Returns the d d m structure version with the primary key or returns null if it could not be found.

Parameters:
structureVersionId - the primary key of the d d m structure version
Returns:
the d d m structure version, or null if a d d m structure version with the primary key could not be found

fetchByPrimaryKeys

Map<Serializable,DDMStructureVersion> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
Specified by:
fetchByPrimaryKeys in interface BasePersistence<DDMStructureVersion>

findAll

List<DDMStructureVersion> findAll()
Returns all the d d m structure versions.

Returns:
the d d m structure versions

findAll

List<DDMStructureVersion> findAll(int start,
                                  int end)
Returns a range of all the d d m structure versions.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DDMStructureVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of d d m structure versions
end - the upper bound of the range of d d m structure versions (not inclusive)
Returns:
the range of d d m structure versions

findAll

List<DDMStructureVersion> findAll(int start,
                                  int end,
                                  OrderByComparator<DDMStructureVersion> orderByComparator)
Returns an ordered range of all the d d m structure versions.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from DDMStructureVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of d d m structure versions
end - the upper bound of the range of d d m structure versions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of d d m structure versions

removeAll

void removeAll()
Removes all the d d m structure versions from the database.


countAll

int countAll()
Returns the number of d d m structure versions.

Returns:
the number of d d m structure versions

Liferay 7.0-ce-m6