Liferay 7.0-ce-m3

com.liferay.portlet.dynamicdatamapping.service.persistence.impl
Class DDMTemplateVersionPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<DDMTemplateVersion>
      extended by com.liferay.portlet.dynamicdatamapping.service.persistence.impl.DDMTemplateVersionPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<DDMTemplateVersion>, DDMTemplateVersionPersistence

@ProviderType
public class DDMTemplateVersionPersistenceImpl
extends BasePersistenceImpl<DDMTemplateVersion>
implements DDMTemplateVersionPersistence

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

Caching information and settings can be found in portal.properties

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

Field Summary
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_T_V
           
static FinderPath FINDER_PATH_COUNT_BY_TEMPLATEID
           
static FinderPath FINDER_PATH_FETCH_BY_T_V
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_TEMPLATEID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TEMPLATEID
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
DDMTemplateVersionPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the d d m template version persistence.
 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.
protected  void cacheUniqueFindersCache(DDMTemplateVersion ddmTemplateVersion)
           
 void clearCache()
          Clears the cache for all d d m template versions.
 void clearCache(DDMTemplateVersion ddmTemplateVersion)
          Clears the cache for the d d m template version.
 void clearCache(List<DDMTemplateVersion> ddmTemplateVersions)
          Clears the cache for a List instances of this model.
protected  void clearUniqueFindersCache(DDMTemplateVersion ddmTemplateVersion)
           
 int countAll()
          Returns the number of d d m template versions.
 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.
 void destroy()
           
 DDMTemplateVersion fetchByPrimaryKey(long templateVersionId)
          Returns the d d m template version with the primary key or returns null if it could not be found.
 DDMTemplateVersion fetchByPrimaryKey(Serializable primaryKey)
          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_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 findByPrimaryKey(Serializable primaryKey)
          Returns the d d m template version with the primary key or throws a NoSuchModelException if it could not be found.
 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 = ?.
protected  DDMTemplateVersion getByTemplateId_PrevAndNext(Session session, DDMTemplateVersion ddmTemplateVersion, long templateId, OrderByComparator<DDMTemplateVersion> orderByComparator, boolean previous)
           
 DDMTemplateVersion remove(long templateVersionId)
          Removes the d d m template version with the primary key from the database.
 DDMTemplateVersion remove(Serializable primaryKey)
          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.
 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.
protected  DDMTemplateVersion removeImpl(DDMTemplateVersion ddmTemplateVersion)
          Removes the model instance from the database.
protected  DDMTemplateVersion toUnwrappedModel(DDMTemplateVersion ddmTemplateVersion)
           
 DDMTemplateVersion updateImpl(DDMTemplateVersion ddmTemplateVersion)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_WITH_PAGINATION_FIND_BY_TEMPLATEID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_TEMPLATEID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TEMPLATEID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TEMPLATEID

FINDER_PATH_COUNT_BY_TEMPLATEID

public static final FinderPath FINDER_PATH_COUNT_BY_TEMPLATEID

FINDER_PATH_FETCH_BY_T_V

public static final FinderPath FINDER_PATH_FETCH_BY_T_V

FINDER_PATH_COUNT_BY_T_V

public static final FinderPath FINDER_PATH_COUNT_BY_T_V
Constructor Detail

DDMTemplateVersionPersistenceImpl

public DDMTemplateVersionPersistenceImpl()
Method Detail

findByTemplateId

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

Specified by:
findByTemplateId in interface DDMTemplateVersionPersistence
Parameters:
templateId - the template ID
Returns:
the matching d d m template versions

findByTemplateId

public 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.

Specified by:
findByTemplateId in interface DDMTemplateVersionPersistence
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

public 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.

Specified by:
findByTemplateId in interface DDMTemplateVersionPersistence
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

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

Specified by:
findByTemplateId_First in interface DDMTemplateVersionPersistence
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

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

Specified by:
fetchByTemplateId_First in interface DDMTemplateVersionPersistence
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

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

Specified by:
findByTemplateId_Last in interface DDMTemplateVersionPersistence
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

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

Specified by:
fetchByTemplateId_Last in interface DDMTemplateVersionPersistence
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

public 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 = ?.

Specified by:
findByTemplateId_PrevAndNext in interface DDMTemplateVersionPersistence
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

getByTemplateId_PrevAndNext

protected DDMTemplateVersion getByTemplateId_PrevAndNext(Session session,
                                                         DDMTemplateVersion ddmTemplateVersion,
                                                         long templateId,
                                                         OrderByComparator<DDMTemplateVersion> orderByComparator,
                                                         boolean previous)

removeByTemplateId

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

Specified by:
removeByTemplateId in interface DDMTemplateVersionPersistence
Parameters:
templateId - the template ID

countByTemplateId

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

Specified by:
countByTemplateId in interface DDMTemplateVersionPersistence
Parameters:
templateId - the template ID
Returns:
the number of matching d d m template versions

findByT_V

public 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.

Specified by:
findByT_V in interface DDMTemplateVersionPersistence
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

public 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.

Specified by:
fetchByT_V in interface DDMTemplateVersionPersistence
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

public 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.

Specified by:
fetchByT_V in interface DDMTemplateVersionPersistence
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

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

Specified by:
removeByT_V in interface DDMTemplateVersionPersistence
Parameters:
templateId - the template ID
version - the version
Returns:
the d d m template version that was removed
Throws:
NoSuchTemplateVersionException

countByT_V

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

Specified by:
countByT_V in interface DDMTemplateVersionPersistence
Parameters:
templateId - the template ID
version - the version
Returns:
the number of matching d d m template versions

cacheResult

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

Specified by:
cacheResult in interface DDMTemplateVersionPersistence
Parameters:
ddmTemplateVersion - the d d m template version

cacheResult

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

Specified by:
cacheResult in interface DDMTemplateVersionPersistence
Parameters:
ddmTemplateVersions - the d d m template versions

clearCache

public void clearCache()
Clears the cache for all d d m template versions.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<DDMTemplateVersion>
Overrides:
clearCache in class BasePersistenceImpl<DDMTemplateVersion>

clearCache

public void clearCache(DDMTemplateVersion ddmTemplateVersion)
Clears the cache for the d d m template version.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<DDMTemplateVersion>
Overrides:
clearCache in class BasePersistenceImpl<DDMTemplateVersion>
Parameters:
ddmTemplateVersion - the instance of this model to clear the cache for

clearCache

public void clearCache(List<DDMTemplateVersion> ddmTemplateVersions)
Description copied from interface: BasePersistence
Clears the cache for a List instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<DDMTemplateVersion>
Overrides:
clearCache in class BasePersistenceImpl<DDMTemplateVersion>
Parameters:
ddmTemplateVersions - the List instances of this model to clear the cache for

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(DDMTemplateVersion ddmTemplateVersion)

clearUniqueFindersCache

protected void clearUniqueFindersCache(DDMTemplateVersion ddmTemplateVersion)

create

public 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.

Specified by:
create in interface DDMTemplateVersionPersistence
Parameters:
templateVersionId - the primary key for the new d d m template version
Returns:
the new d d m template version

remove

public 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.

Specified by:
remove in interface DDMTemplateVersionPersistence
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

remove

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

Specified by:
remove in interface BasePersistence<DDMTemplateVersion>
Overrides:
remove in class BasePersistenceImpl<DDMTemplateVersion>
Parameters:
primaryKey - 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

removeImpl

protected DDMTemplateVersion removeImpl(DDMTemplateVersion ddmTemplateVersion)
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<DDMTemplateVersion>
Parameters:
ddmTemplateVersion - the model instance to remove
Returns:
the model instance that was removed

updateImpl

public DDMTemplateVersion updateImpl(DDMTemplateVersion ddmTemplateVersion)
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface DDMTemplateVersionPersistence
Overrides:
updateImpl in class BasePersistenceImpl<DDMTemplateVersion>
Parameters:
ddmTemplateVersion - the model instance to update
Returns:
the model instance that was updated

toUnwrappedModel

protected DDMTemplateVersion toUnwrappedModel(DDMTemplateVersion ddmTemplateVersion)

findByPrimaryKey

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

Specified by:
findByPrimaryKey in interface BasePersistence<DDMTemplateVersion>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<DDMTemplateVersion>
Parameters:
primaryKey - 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

findByPrimaryKey

public 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.

Specified by:
findByPrimaryKey in interface DDMTemplateVersionPersistence
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

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

Specified by:
fetchByPrimaryKey in interface BasePersistence<DDMTemplateVersion>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<DDMTemplateVersion>
Parameters:
primaryKey - 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

fetchByPrimaryKey

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

Specified by:
fetchByPrimaryKey in interface DDMTemplateVersionPersistence
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

public Map<Serializable,DDMTemplateVersion> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
Specified by:
fetchByPrimaryKeys in interface BasePersistence<DDMTemplateVersion>
Specified by:
fetchByPrimaryKeys in interface DDMTemplateVersionPersistence
Overrides:
fetchByPrimaryKeys in class BasePersistenceImpl<DDMTemplateVersion>

findAll

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

Specified by:
findAll in interface DDMTemplateVersionPersistence
Returns:
the d d m template versions

findAll

public 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.

Specified by:
findAll in interface DDMTemplateVersionPersistence
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

public 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.

Specified by:
findAll in interface DDMTemplateVersionPersistence
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

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

Specified by:
removeAll in interface DDMTemplateVersionPersistence

countAll

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

Specified by:
countAll in interface DDMTemplateVersionPersistence
Returns:
the number of d d m template versions

afterPropertiesSet

public void afterPropertiesSet()
Initializes the d d m template version persistence.


destroy

public void destroy()

Liferay 7.0-ce-m3