Liferay 7.0-ce-m6

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

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

@ProviderType
public class DDMStructureVersionPersistenceImpl
extends BasePersistenceImpl<DDMStructureVersion>
implements DDMStructureVersionPersistence

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

Caching information and settings can be found in portal.properties

See Also:
DDMStructureVersionPersistence, DDMStructureVersionUtil
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_S_S
           
static FinderPath FINDER_PATH_COUNT_BY_S_V
           
static FinderPath FINDER_PATH_COUNT_BY_STRUCTUREID
           
static FinderPath FINDER_PATH_FETCH_BY_S_V
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_S_S
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_STRUCTUREID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_S_S
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_STRUCTUREID
           
 
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
DDMStructureVersionPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the d d m structure version persistence.
 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.
protected  void cacheUniqueFindersCache(DDMStructureVersion ddmStructureVersion)
           
 void clearCache()
          Clears the cache for all d d m structure versions.
 void clearCache(DDMStructureVersion ddmStructureVersion)
          Clears the cache for the d d m structure version.
 void clearCache(List<DDMStructureVersion> ddmStructureVersions)
          Clears the cache for a List instances of this model.
protected  void clearUniqueFindersCache(DDMStructureVersion ddmStructureVersion)
           
 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.
 void destroy()
           
 DDMStructureVersion fetchByPrimaryKey(long structureVersionId)
          Returns the d d m structure version with the primary key or returns null if it could not be found.
 DDMStructureVersion fetchByPrimaryKey(Serializable primaryKey)
          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 findByPrimaryKey(Serializable primaryKey)
          Returns the d d m structure version with the primary key or throws a NoSuchModelException 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 = ?.
protected  Set<String> getBadColumnNames()
           
protected  DDMStructureVersion getByS_S_PrevAndNext(Session session, DDMStructureVersion ddmStructureVersion, long structureId, int status, OrderByComparator<DDMStructureVersion> orderByComparator, boolean previous)
           
protected  DDMStructureVersion getByStructureId_PrevAndNext(Session session, DDMStructureVersion ddmStructureVersion, long structureId, OrderByComparator<DDMStructureVersion> orderByComparator, boolean previous)
           
 DDMStructureVersion remove(long structureVersionId)
          Removes the d d m structure version with the primary key from the database.
 DDMStructureVersion remove(Serializable primaryKey)
          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.
protected  DDMStructureVersion removeImpl(DDMStructureVersion ddmStructureVersion)
          Removes the model instance from the database.
protected  DDMStructureVersion toUnwrappedModel(DDMStructureVersion ddmStructureVersion)
           
 DDMStructureVersion updateImpl(DDMStructureVersion ddmStructureVersion)
          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, 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_STRUCTUREID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_STRUCTUREID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_STRUCTUREID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_STRUCTUREID

FINDER_PATH_COUNT_BY_STRUCTUREID

public static final FinderPath FINDER_PATH_COUNT_BY_STRUCTUREID

FINDER_PATH_FETCH_BY_S_V

public static final FinderPath FINDER_PATH_FETCH_BY_S_V

FINDER_PATH_COUNT_BY_S_V

public static final FinderPath FINDER_PATH_COUNT_BY_S_V

FINDER_PATH_WITH_PAGINATION_FIND_BY_S_S

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_S_S

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_S_S

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_S_S

FINDER_PATH_COUNT_BY_S_S

public static final FinderPath FINDER_PATH_COUNT_BY_S_S
Constructor Detail

DDMStructureVersionPersistenceImpl

public DDMStructureVersionPersistenceImpl()
Method Detail

findByStructureId

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

Specified by:
findByStructureId in interface DDMStructureVersionPersistence
Parameters:
structureId - the structure ID
Returns:
the matching d d m structure versions

findByStructureId

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

Specified by:
findByStructureId in interface DDMStructureVersionPersistence
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

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

Specified by:
findByStructureId in interface DDMStructureVersionPersistence
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

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

Specified by:
findByStructureId_First in interface DDMStructureVersionPersistence
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

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

Specified by:
fetchByStructureId_First in interface DDMStructureVersionPersistence
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

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

Specified by:
findByStructureId_Last in interface DDMStructureVersionPersistence
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

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

Specified by:
fetchByStructureId_Last in interface DDMStructureVersionPersistence
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

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

Specified by:
findByStructureId_PrevAndNext in interface DDMStructureVersionPersistence
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

getByStructureId_PrevAndNext

protected DDMStructureVersion getByStructureId_PrevAndNext(Session session,
                                                           DDMStructureVersion ddmStructureVersion,
                                                           long structureId,
                                                           OrderByComparator<DDMStructureVersion> orderByComparator,
                                                           boolean previous)

removeByStructureId

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

Specified by:
removeByStructureId in interface DDMStructureVersionPersistence
Parameters:
structureId - the structure ID

countByStructureId

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

Specified by:
countByStructureId in interface DDMStructureVersionPersistence
Parameters:
structureId - the structure ID
Returns:
the number of matching d d m structure versions

findByS_V

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

Specified by:
findByS_V in interface DDMStructureVersionPersistence
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

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

Specified by:
fetchByS_V in interface DDMStructureVersionPersistence
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

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

Specified by:
fetchByS_V in interface DDMStructureVersionPersistence
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

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

Specified by:
removeByS_V in interface DDMStructureVersionPersistence
Parameters:
structureId - the structure ID
version - the version
Returns:
the d d m structure version that was removed
Throws:
NoSuchStructureVersionException

countByS_V

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

Specified by:
countByS_V in interface DDMStructureVersionPersistence
Parameters:
structureId - the structure ID
version - the version
Returns:
the number of matching d d m structure versions

findByS_S

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

Specified by:
findByS_S in interface DDMStructureVersionPersistence
Parameters:
structureId - the structure ID
status - the status
Returns:
the matching d d m structure versions

findByS_S

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

Specified by:
findByS_S in interface DDMStructureVersionPersistence
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

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

Specified by:
findByS_S in interface DDMStructureVersionPersistence
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

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

Specified by:
findByS_S_First in interface DDMStructureVersionPersistence
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

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

Specified by:
fetchByS_S_First in interface DDMStructureVersionPersistence
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

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

Specified by:
findByS_S_Last in interface DDMStructureVersionPersistence
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

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

Specified by:
fetchByS_S_Last in interface DDMStructureVersionPersistence
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

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

Specified by:
findByS_S_PrevAndNext in interface DDMStructureVersionPersistence
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

getByS_S_PrevAndNext

protected DDMStructureVersion getByS_S_PrevAndNext(Session session,
                                                   DDMStructureVersion ddmStructureVersion,
                                                   long structureId,
                                                   int status,
                                                   OrderByComparator<DDMStructureVersion> orderByComparator,
                                                   boolean previous)

removeByS_S

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

Specified by:
removeByS_S in interface DDMStructureVersionPersistence
Parameters:
structureId - the structure ID
status - the status

countByS_S

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

Specified by:
countByS_S in interface DDMStructureVersionPersistence
Parameters:
structureId - the structure ID
status - the status
Returns:
the number of matching d d m structure versions

cacheResult

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

Specified by:
cacheResult in interface DDMStructureVersionPersistence
Parameters:
ddmStructureVersion - the d d m structure version

cacheResult

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

Specified by:
cacheResult in interface DDMStructureVersionPersistence
Parameters:
ddmStructureVersions - the d d m structure versions

clearCache

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

The EntityCache and FinderCache are both cleared by this method.

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

clearCache

public void clearCache(DDMStructureVersion ddmStructureVersion)
Clears the cache for the d d m structure version.

The EntityCache and FinderCache are both cleared by this method.

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

clearCache

public void clearCache(List<DDMStructureVersion> ddmStructureVersions)
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<DDMStructureVersion>
Overrides:
clearCache in class BasePersistenceImpl<DDMStructureVersion>
Parameters:
ddmStructureVersions - the List instances of this model to clear the cache for

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(DDMStructureVersion ddmStructureVersion)

clearUniqueFindersCache

protected void clearUniqueFindersCache(DDMStructureVersion ddmStructureVersion)

create

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

Specified by:
create in interface DDMStructureVersionPersistence
Parameters:
structureVersionId - the primary key for the new d d m structure version
Returns:
the new d d m structure version

remove

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

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

remove

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

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

removeImpl

protected DDMStructureVersion removeImpl(DDMStructureVersion ddmStructureVersion)
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<DDMStructureVersion>
Parameters:
ddmStructureVersion - the model instance to remove
Returns:
the model instance that was removed

updateImpl

public DDMStructureVersion updateImpl(DDMStructureVersion ddmStructureVersion)
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 DDMStructureVersionPersistence
Overrides:
updateImpl in class BasePersistenceImpl<DDMStructureVersion>
Parameters:
ddmStructureVersion - the model instance to update
Returns:
the model instance that was updated

toUnwrappedModel

protected DDMStructureVersion toUnwrappedModel(DDMStructureVersion ddmStructureVersion)

findByPrimaryKey

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

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

findByPrimaryKey

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

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

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

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

fetchByPrimaryKey

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

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

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

findAll

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

Specified by:
findAll in interface DDMStructureVersionPersistence
Returns:
the d d m structure versions

findAll

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

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

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

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

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

Specified by:
removeAll in interface DDMStructureVersionPersistence

countAll

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

Specified by:
countAll in interface DDMStructureVersionPersistence
Returns:
the number of d d m structure versions

getBadColumnNames

protected Set<String> getBadColumnNames()
Overrides:
getBadColumnNames in class BasePersistenceImpl<DDMStructureVersion>

afterPropertiesSet

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


destroy

public void destroy()

Liferay 7.0-ce-m6