Liferay 7.0-ce-m6

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

All Superinterfaces:
BasePersistence<DDMTemplateVersion>

@ProviderType
public interface DDMTemplateVersionPersistence
extends BasePersistence<DDMTemplateVersion>

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

Caching information and settings can be found in portal.properties

See Also:
com.liferay.portlet.dynamicdatamapping.service.persistence.impl.DDMTemplateVersionPersistenceImpl, DDMTemplateVersionUtil

Method Summary
 void cacheResult(DDMTemplateVersion ddmTemplateVersion)
          Caches the d d m template version in the entity cache if it is enabled.
 void cacheResult(List<DDMTemplateVersion> ddmTemplateVersions)
          Caches the d d m template versions in the entity cache if it is enabled.
 int countAll()
          Returns the number of d d m template versions.
 int countByT_S(long templateId, int status)
          Returns the number of d d m template versions where templateId = ? and status = ?.
 int countByT_V(long templateId, String version)
          Returns the number of d d m template versions where templateId = ? and version = ?.
 int countByTemplateId(long templateId)
          Returns the number of d d m template versions where templateId = ?.
 DDMTemplateVersion create(long templateVersionId)
          Creates a new d d m template version with the primary key.
 DDMTemplateVersion fetchByPrimaryKey(long templateVersionId)
          Returns the d d m template version with the primary key or returns null if it could not be found.
 Map<Serializable,DDMTemplateVersion> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
 DDMTemplateVersion fetchByT_S_First(long templateId, int status, OrderByComparator<DDMTemplateVersion> orderByComparator)
          Returns the first d d m template version in the ordered set where templateId = ? and status = ?.
 DDMTemplateVersion fetchByT_S_Last(long templateId, int status, OrderByComparator<DDMTemplateVersion> orderByComparator)
          Returns the last d d m template version in the ordered set where templateId = ? and status = ?.
 DDMTemplateVersion fetchByT_V(long templateId, String version)
          Returns the d d m template version where templateId = ? and version = ? or returns null if it could not be found.
 DDMTemplateVersion fetchByT_V(long templateId, String version, boolean retrieveFromCache)
          Returns the d d m template version where templateId = ? and version = ? or returns null if it could not be found, optionally using the finder cache.
 DDMTemplateVersion fetchByTemplateId_First(long templateId, OrderByComparator<DDMTemplateVersion> orderByComparator)
          Returns the first d d m template version in the ordered set where templateId = ?.
 DDMTemplateVersion fetchByTemplateId_Last(long templateId, OrderByComparator<DDMTemplateVersion> orderByComparator)
          Returns the last d d m template version in the ordered set where templateId = ?.
 List<DDMTemplateVersion> findAll()
          Returns all the d d m template versions.
 List<DDMTemplateVersion> findAll(int start, int end)
          Returns a range of all the d d m template versions.
 List<DDMTemplateVersion> findAll(int start, int end, OrderByComparator<DDMTemplateVersion> orderByComparator)
          Returns an ordered range of all the d d m template versions.
 DDMTemplateVersion findByPrimaryKey(long templateVersionId)
          Returns the d d m template version with the primary key or throws a NoSuchTemplateVersionException if it could not be found.
 DDMTemplateVersion findByT_S_First(long templateId, int status, OrderByComparator<DDMTemplateVersion> orderByComparator)
          Returns the first d d m template version in the ordered set where templateId = ? and status = ?.
 DDMTemplateVersion findByT_S_Last(long templateId, int status, OrderByComparator<DDMTemplateVersion> orderByComparator)
          Returns the last d d m template version in the ordered set where templateId = ? and status = ?.
 DDMTemplateVersion[] findByT_S_PrevAndNext(long templateVersionId, long templateId, int status, OrderByComparator<DDMTemplateVersion> orderByComparator)
          Returns the d d m template versions before and after the current d d m template version in the ordered set where templateId = ? and status = ?.
 List<DDMTemplateVersion> findByT_S(long templateId, int status)
          Returns all the d d m template versions where templateId = ? and status = ?.
 List<DDMTemplateVersion> findByT_S(long templateId, int status, int start, int end)
          Returns a range of all the d d m template versions where templateId = ? and status = ?.
 List<DDMTemplateVersion> findByT_S(long templateId, int status, int start, int end, OrderByComparator<DDMTemplateVersion> orderByComparator)
          Returns an ordered range of all the d d m template versions where templateId = ? and status = ?.
 DDMTemplateVersion findByT_V(long templateId, String version)
          Returns the d d m template version where templateId = ? and version = ? or throws a NoSuchTemplateVersionException if it could not be found.
 DDMTemplateVersion findByTemplateId_First(long templateId, OrderByComparator<DDMTemplateVersion> orderByComparator)
          Returns the first d d m template version in the ordered set where templateId = ?.
 DDMTemplateVersion findByTemplateId_Last(long templateId, OrderByComparator<DDMTemplateVersion> orderByComparator)
          Returns the last d d m template version in the ordered set where templateId = ?.
 DDMTemplateVersion[] findByTemplateId_PrevAndNext(long templateVersionId, long templateId, OrderByComparator<DDMTemplateVersion> orderByComparator)
          Returns the d d m template versions before and after the current d d m template version in the ordered set where templateId = ?.
 List<DDMTemplateVersion> findByTemplateId(long templateId)
          Returns all the d d m template versions where templateId = ?.
 List<DDMTemplateVersion> findByTemplateId(long templateId, int start, int end)
          Returns a range of all the d d m template versions where templateId = ?.
 List<DDMTemplateVersion> findByTemplateId(long templateId, int start, int end, OrderByComparator<DDMTemplateVersion> orderByComparator)
          Returns an ordered range of all the d d m template versions where templateId = ?.
 DDMTemplateVersion remove(long templateVersionId)
          Removes the d d m template version with the primary key from the database.
 void removeAll()
          Removes all the d d m template versions from the database.
 void removeByT_S(long templateId, int status)
          Removes all the d d m template versions where templateId = ? and status = ? from the database.
 DDMTemplateVersion removeByT_V(long templateId, String version)
          Removes the d d m template version where templateId = ? and version = ? from the database.
 void removeByTemplateId(long templateId)
          Removes all the d d m template versions where templateId = ? from the database.
 DDMTemplateVersion updateImpl(DDMTemplateVersion ddmTemplateVersion)
           
 
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

findByTemplateId

List<DDMTemplateVersion> findByTemplateId(long templateId)
Returns all the d d m template versions where templateId = ?.

Parameters:
templateId - the template ID
Returns:
the matching d d m template versions

findByTemplateId

List<DDMTemplateVersion> findByTemplateId(long templateId,
                                          int start,
                                          int end)
Returns a range of all the d d m template versions where templateId = ?.

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 DDMTemplateVersionModelImpl. 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:
templateId - the template ID
start - the lower bound of the range of d d m template versions
end - the upper bound of the range of d d m template versions (not inclusive)
Returns:
the range of matching d d m template versions

findByTemplateId

List<DDMTemplateVersion> findByTemplateId(long templateId,
                                          int start,
                                          int end,
                                          OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns an ordered range of all the d d m template versions where templateId = ?.

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 DDMTemplateVersionModelImpl. 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:
templateId - the template ID
start - the lower bound of the range of d d m template versions
end - the upper bound of the range of d d m template versions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m template versions

findByTemplateId_First

DDMTemplateVersion findByTemplateId_First(long templateId,
                                          OrderByComparator<DDMTemplateVersion> orderByComparator)
                                          throws NoSuchTemplateVersionException
Returns the first d d m template version in the ordered set where templateId = ?.

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

fetchByTemplateId_First

DDMTemplateVersion fetchByTemplateId_First(long templateId,
                                           OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns the first d d m template version in the ordered set where templateId = ?.

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

findByTemplateId_Last

DDMTemplateVersion findByTemplateId_Last(long templateId,
                                         OrderByComparator<DDMTemplateVersion> orderByComparator)
                                         throws NoSuchTemplateVersionException
Returns the last d d m template version in the ordered set where templateId = ?.

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

fetchByTemplateId_Last

DDMTemplateVersion fetchByTemplateId_Last(long templateId,
                                          OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns the last d d m template version in the ordered set where templateId = ?.

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

findByTemplateId_PrevAndNext

DDMTemplateVersion[] findByTemplateId_PrevAndNext(long templateVersionId,
                                                  long templateId,
                                                  OrderByComparator<DDMTemplateVersion> orderByComparator)
                                                  throws NoSuchTemplateVersionException
Returns the d d m template versions before and after the current d d m template version in the ordered set where templateId = ?.

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

removeByTemplateId

void removeByTemplateId(long templateId)
Removes all the d d m template versions where templateId = ? from the database.

Parameters:
templateId - the template ID

countByTemplateId

int countByTemplateId(long templateId)
Returns the number of d d m template versions where templateId = ?.

Parameters:
templateId - the template ID
Returns:
the number of matching d d m template versions

findByT_V

DDMTemplateVersion findByT_V(long templateId,
                             String version)
                             throws NoSuchTemplateVersionException
Returns the d d m template version where templateId = ? and version = ? or throws a NoSuchTemplateVersionException if it could not be found.

Parameters:
templateId - the template ID
version - the version
Returns:
the matching d d m template version
Throws:
NoSuchTemplateVersionException - if a matching d d m template version could not be found

fetchByT_V

DDMTemplateVersion fetchByT_V(long templateId,
                              String version)
Returns the d d m template version where templateId = ? and version = ? or returns null if it could not be found. Uses the finder cache.

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

fetchByT_V

DDMTemplateVersion fetchByT_V(long templateId,
                              String version,
                              boolean retrieveFromCache)
Returns the d d m template version where templateId = ? and version = ? or returns null if it could not be found, optionally using the finder cache.

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

removeByT_V

DDMTemplateVersion removeByT_V(long templateId,
                               String version)
                               throws NoSuchTemplateVersionException
Removes the d d m template version where templateId = ? and version = ? from the database.

Parameters:
templateId - the template ID
version - the version
Returns:
the d d m template version that was removed
Throws:
NoSuchTemplateVersionException

countByT_V

int countByT_V(long templateId,
               String version)
Returns the number of d d m template versions where templateId = ? and version = ?.

Parameters:
templateId - the template ID
version - the version
Returns:
the number of matching d d m template versions

findByT_S

List<DDMTemplateVersion> findByT_S(long templateId,
                                   int status)
Returns all the d d m template versions where templateId = ? and status = ?.

Parameters:
templateId - the template ID
status - the status
Returns:
the matching d d m template versions

findByT_S

List<DDMTemplateVersion> findByT_S(long templateId,
                                   int status,
                                   int start,
                                   int end)
Returns a range of all the d d m template versions where templateId = ? 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 DDMTemplateVersionModelImpl. 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:
templateId - the template ID
status - the status
start - the lower bound of the range of d d m template versions
end - the upper bound of the range of d d m template versions (not inclusive)
Returns:
the range of matching d d m template versions

findByT_S

List<DDMTemplateVersion> findByT_S(long templateId,
                                   int status,
                                   int start,
                                   int end,
                                   OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns an ordered range of all the d d m template versions where templateId = ? 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 DDMTemplateVersionModelImpl. 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:
templateId - the template ID
status - the status
start - the lower bound of the range of d d m template versions
end - the upper bound of the range of d d m template versions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d m template versions

findByT_S_First

DDMTemplateVersion findByT_S_First(long templateId,
                                   int status,
                                   OrderByComparator<DDMTemplateVersion> orderByComparator)
                                   throws NoSuchTemplateVersionException
Returns the first d d m template version in the ordered set where templateId = ? and status = ?.

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

fetchByT_S_First

DDMTemplateVersion fetchByT_S_First(long templateId,
                                    int status,
                                    OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns the first d d m template version in the ordered set where templateId = ? and status = ?.

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

findByT_S_Last

DDMTemplateVersion findByT_S_Last(long templateId,
                                  int status,
                                  OrderByComparator<DDMTemplateVersion> orderByComparator)
                                  throws NoSuchTemplateVersionException
Returns the last d d m template version in the ordered set where templateId = ? and status = ?.

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

fetchByT_S_Last

DDMTemplateVersion fetchByT_S_Last(long templateId,
                                   int status,
                                   OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns the last d d m template version in the ordered set where templateId = ? and status = ?.

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

findByT_S_PrevAndNext

DDMTemplateVersion[] findByT_S_PrevAndNext(long templateVersionId,
                                           long templateId,
                                           int status,
                                           OrderByComparator<DDMTemplateVersion> orderByComparator)
                                           throws NoSuchTemplateVersionException
Returns the d d m template versions before and after the current d d m template version in the ordered set where templateId = ? and status = ?.

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

removeByT_S

void removeByT_S(long templateId,
                 int status)
Removes all the d d m template versions where templateId = ? and status = ? from the database.

Parameters:
templateId - the template ID
status - the status

countByT_S

int countByT_S(long templateId,
               int status)
Returns the number of d d m template versions where templateId = ? and status = ?.

Parameters:
templateId - the template ID
status - the status
Returns:
the number of matching d d m template versions

cacheResult

void cacheResult(DDMTemplateVersion ddmTemplateVersion)
Caches the d d m template version in the entity cache if it is enabled.

Parameters:
ddmTemplateVersion - the d d m template version

cacheResult

void cacheResult(List<DDMTemplateVersion> ddmTemplateVersions)
Caches the d d m template versions in the entity cache if it is enabled.

Parameters:
ddmTemplateVersions - the d d m template versions

create

DDMTemplateVersion create(long templateVersionId)
Creates a new d d m template version with the primary key. Does not add the d d m template version to the database.

Parameters:
templateVersionId - the primary key for the new d d m template version
Returns:
the new d d m template version

remove

DDMTemplateVersion remove(long templateVersionId)
                          throws NoSuchTemplateVersionException
Removes the d d m template version with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
templateVersionId - the primary key of the d d m template version
Returns:
the d d m template version that was removed
Throws:
NoSuchTemplateVersionException - if a d d m template version with the primary key could not be found

updateImpl

DDMTemplateVersion updateImpl(DDMTemplateVersion ddmTemplateVersion)

findByPrimaryKey

DDMTemplateVersion findByPrimaryKey(long templateVersionId)
                                    throws NoSuchTemplateVersionException
Returns the d d m template version with the primary key or throws a NoSuchTemplateVersionException if it could not be found.

Parameters:
templateVersionId - the primary key of the d d m template version
Returns:
the d d m template version
Throws:
NoSuchTemplateVersionException - if a d d m template version with the primary key could not be found

fetchByPrimaryKey

DDMTemplateVersion fetchByPrimaryKey(long templateVersionId)
Returns the d d m template version with the primary key or returns null if it could not be found.

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

fetchByPrimaryKeys

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

findAll

List<DDMTemplateVersion> findAll()
Returns all the d d m template versions.

Returns:
the d d m template versions

findAll

List<DDMTemplateVersion> findAll(int start,
                                 int end)
Returns a range of all the d d m template 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 DDMTemplateVersionModelImpl. 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 template versions
end - the upper bound of the range of d d m template versions (not inclusive)
Returns:
the range of d d m template versions

findAll

List<DDMTemplateVersion> findAll(int start,
                                 int end,
                                 OrderByComparator<DDMTemplateVersion> orderByComparator)
Returns an ordered range of all the d d m template 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 DDMTemplateVersionModelImpl. 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 template versions
end - the upper bound of the range of d d m template versions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of d d m template versions

removeAll

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


countAll

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

Returns:
the number of d d m template versions

Liferay 7.0-ce-m6