Liferay 6.1.2-ce-ga3

com.liferay.portlet.dynamicdatalists.service.persistence
Class DDLRecordVersionUtil

java.lang.Object
  extended by com.liferay.portlet.dynamicdatalists.service.persistence.DDLRecordVersionUtil

public class DDLRecordVersionUtil
extends Object

The persistence utility for the d d l record version service. This utility wraps DDLRecordVersionPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

See Also:
DDLRecordVersionPersistence, DDLRecordVersionPersistenceImpl

Constructor Summary
DDLRecordVersionUtil()
           
 
Method Summary
static void cacheResult(DDLRecordVersion ddlRecordVersion)
          Caches the d d l record version in the entity cache if it is enabled.
static void cacheResult(List<DDLRecordVersion> ddlRecordVersions)
          Caches the d d l record versions in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(DDLRecordVersion ddlRecordVersion)
           
static int countAll()
          Returns the number of d d l record versions.
static int countByR_S(long recordId, int status)
          Returns the number of d d l record versions where recordId = ? and status = ?.
static int countByR_V(long recordId, String version)
          Returns the number of d d l record versions where recordId = ? and version = ?.
static int countByRecordId(long recordId)
          Returns the number of d d l record versions where recordId = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static DDLRecordVersion create(long recordVersionId)
          Creates a new d d l record version with the primary key.
static DDLRecordVersion fetchByPrimaryKey(long recordVersionId)
          Returns the d d l record version with the primary key or returns null if it could not be found.
static DDLRecordVersion fetchByR_S_First(long recordId, int status, OrderByComparator orderByComparator)
          Returns the first d d l record version in the ordered set where recordId = ? and status = ?.
static DDLRecordVersion fetchByR_S_Last(long recordId, int status, OrderByComparator orderByComparator)
          Returns the last d d l record version in the ordered set where recordId = ? and status = ?.
static DDLRecordVersion fetchByR_V(long recordId, String version)
          Returns the d d l record version where recordId = ? and version = ? or returns null if it could not be found.
static DDLRecordVersion fetchByR_V(long recordId, String version, boolean retrieveFromCache)
          Returns the d d l record version where recordId = ? and version = ? or returns null if it could not be found, optionally using the finder cache.
static DDLRecordVersion fetchByRecordId_First(long recordId, OrderByComparator orderByComparator)
          Returns the first d d l record version in the ordered set where recordId = ?.
static DDLRecordVersion fetchByRecordId_Last(long recordId, OrderByComparator orderByComparator)
          Returns the last d d l record version in the ordered set where recordId = ?.
static List<DDLRecordVersion> findAll()
          Returns all the d d l record versions.
static List<DDLRecordVersion> findAll(int start, int end)
          Returns a range of all the d d l record versions.
static List<DDLRecordVersion> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d l record versions.
static DDLRecordVersion findByPrimaryKey(long recordVersionId)
          Returns the d d l record version with the primary key or throws a NoSuchRecordVersionException if it could not be found.
static DDLRecordVersion findByR_S_First(long recordId, int status, OrderByComparator orderByComparator)
          Returns the first d d l record version in the ordered set where recordId = ? and status = ?.
static DDLRecordVersion findByR_S_Last(long recordId, int status, OrderByComparator orderByComparator)
          Returns the last d d l record version in the ordered set where recordId = ? and status = ?.
static DDLRecordVersion[] findByR_S_PrevAndNext(long recordVersionId, long recordId, int status, OrderByComparator orderByComparator)
          Returns the d d l record versions before and after the current d d l record version in the ordered set where recordId = ? and status = ?.
static List<DDLRecordVersion> findByR_S(long recordId, int status)
          Returns all the d d l record versions where recordId = ? and status = ?.
static List<DDLRecordVersion> findByR_S(long recordId, int status, int start, int end)
          Returns a range of all the d d l record versions where recordId = ? and status = ?.
static List<DDLRecordVersion> findByR_S(long recordId, int status, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d l record versions where recordId = ? and status = ?.
static DDLRecordVersion findByR_V(long recordId, String version)
          Returns the d d l record version where recordId = ? and version = ? or throws a NoSuchRecordVersionException if it could not be found.
static DDLRecordVersion findByRecordId_First(long recordId, OrderByComparator orderByComparator)
          Returns the first d d l record version in the ordered set where recordId = ?.
static DDLRecordVersion findByRecordId_Last(long recordId, OrderByComparator orderByComparator)
          Returns the last d d l record version in the ordered set where recordId = ?.
static DDLRecordVersion[] findByRecordId_PrevAndNext(long recordVersionId, long recordId, OrderByComparator orderByComparator)
          Returns the d d l record versions before and after the current d d l record version in the ordered set where recordId = ?.
static List<DDLRecordVersion> findByRecordId(long recordId)
          Returns all the d d l record versions where recordId = ?.
static List<DDLRecordVersion> findByRecordId(long recordId, int start, int end)
          Returns a range of all the d d l record versions where recordId = ?.
static List<DDLRecordVersion> findByRecordId(long recordId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the d d l record versions where recordId = ?.
static List<DDLRecordVersion> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<DDLRecordVersion> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<DDLRecordVersion> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static DDLRecordVersionPersistence getPersistence()
           
static DDLRecordVersion remove(long recordVersionId)
          Removes the d d l record version with the primary key from the database.
static void removeAll()
          Removes all the d d l record versions from the database.
static void removeByR_S(long recordId, int status)
          Removes all the d d l record versions where recordId = ? and status = ? from the database.
static DDLRecordVersion removeByR_V(long recordId, String version)
          Removes the d d l record version where recordId = ? and version = ? from the database.
static void removeByRecordId(long recordId)
          Removes all the d d l record versions where recordId = ? from the database.
 void setPersistence(DDLRecordVersionPersistence persistence)
          Deprecated.  
static DDLRecordVersion update(DDLRecordVersion ddlRecordVersion, boolean merge)
           
static DDLRecordVersion update(DDLRecordVersion ddlRecordVersion, boolean merge, ServiceContext serviceContext)
           
static DDLRecordVersion updateImpl(DDLRecordVersion ddlRecordVersion, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDLRecordVersionUtil

public DDLRecordVersionUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(DDLRecordVersion ddlRecordVersion)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<DDLRecordVersion> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                                   throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<DDLRecordVersion> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                          int start,
                                                          int end)
                                                   throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<DDLRecordVersion> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                          int start,
                                                          int end,
                                                          OrderByComparator orderByComparator)
                                                   throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

update

public static DDLRecordVersion update(DDLRecordVersion ddlRecordVersion,
                                      boolean merge)
                               throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

public static DDLRecordVersion update(DDLRecordVersion ddlRecordVersion,
                                      boolean merge,
                                      ServiceContext serviceContext)
                               throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)

cacheResult

public static void cacheResult(DDLRecordVersion ddlRecordVersion)
Caches the d d l record version in the entity cache if it is enabled.

Parameters:
ddlRecordVersion - the d d l record version

cacheResult

public static void cacheResult(List<DDLRecordVersion> ddlRecordVersions)
Caches the d d l record versions in the entity cache if it is enabled.

Parameters:
ddlRecordVersions - the d d l record versions

create

public static DDLRecordVersion create(long recordVersionId)
Creates a new d d l record version with the primary key. Does not add the d d l record version to the database.

Parameters:
recordVersionId - the primary key for the new d d l record version
Returns:
the new d d l record version

remove

public static DDLRecordVersion remove(long recordVersionId)
                               throws SystemException,
                                      NoSuchRecordVersionException
Removes the d d l record version with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
recordVersionId - the primary key of the d d l record version
Returns:
the d d l record version that was removed
Throws:
NoSuchRecordVersionException - if a d d l record version with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

public static DDLRecordVersion updateImpl(DDLRecordVersion ddlRecordVersion,
                                          boolean merge)
                                   throws SystemException
Throws:
SystemException

findByPrimaryKey

public static DDLRecordVersion findByPrimaryKey(long recordVersionId)
                                         throws SystemException,
                                                NoSuchRecordVersionException
Returns the d d l record version with the primary key or throws a NoSuchRecordVersionException if it could not be found.

Parameters:
recordVersionId - the primary key of the d d l record version
Returns:
the d d l record version
Throws:
NoSuchRecordVersionException - if a d d l record version with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public static DDLRecordVersion fetchByPrimaryKey(long recordVersionId)
                                          throws SystemException
Returns the d d l record version with the primary key or returns null if it could not be found.

Parameters:
recordVersionId - the primary key of the d d l record version
Returns:
the d d l record version, or null if a d d l record version with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByRecordId

public static List<DDLRecordVersion> findByRecordId(long recordId)
                                             throws SystemException
Returns all the d d l record versions where recordId = ?.

Parameters:
recordId - the record ID
Returns:
the matching d d l record versions
Throws:
SystemException - if a system exception occurred

findByRecordId

public static List<DDLRecordVersion> findByRecordId(long recordId,
                                                    int start,
                                                    int end)
                                             throws SystemException
Returns a range of all the d d l record versions where recordId = ?.

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.

Parameters:
recordId - the record ID
start - the lower bound of the range of d d l record versions
end - the upper bound of the range of d d l record versions (not inclusive)
Returns:
the range of matching d d l record versions
Throws:
SystemException - if a system exception occurred

findByRecordId

public static List<DDLRecordVersion> findByRecordId(long recordId,
                                                    int start,
                                                    int end,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException
Returns an ordered range of all the d d l record versions where recordId = ?.

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.

Parameters:
recordId - the record ID
start - the lower bound of the range of d d l record versions
end - the upper bound of the range of d d l record versions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d l record versions
Throws:
SystemException - if a system exception occurred

findByRecordId_First

public static DDLRecordVersion findByRecordId_First(long recordId,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException,
                                                    NoSuchRecordVersionException
Returns the first d d l record version in the ordered set where recordId = ?.

Parameters:
recordId - the record ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d l record version
Throws:
NoSuchRecordVersionException - if a matching d d l record version could not be found
SystemException - if a system exception occurred

fetchByRecordId_First

public static DDLRecordVersion fetchByRecordId_First(long recordId,
                                                     OrderByComparator orderByComparator)
                                              throws SystemException
Returns the first d d l record version in the ordered set where recordId = ?.

Parameters:
recordId - the record ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d l record version, or null if a matching d d l record version could not be found
Throws:
SystemException - if a system exception occurred

findByRecordId_Last

public static DDLRecordVersion findByRecordId_Last(long recordId,
                                                   OrderByComparator orderByComparator)
                                            throws SystemException,
                                                   NoSuchRecordVersionException
Returns the last d d l record version in the ordered set where recordId = ?.

Parameters:
recordId - the record ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d l record version
Throws:
NoSuchRecordVersionException - if a matching d d l record version could not be found
SystemException - if a system exception occurred

fetchByRecordId_Last

public static DDLRecordVersion fetchByRecordId_Last(long recordId,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException
Returns the last d d l record version in the ordered set where recordId = ?.

Parameters:
recordId - the record ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d l record version, or null if a matching d d l record version could not be found
Throws:
SystemException - if a system exception occurred

findByRecordId_PrevAndNext

public static DDLRecordVersion[] findByRecordId_PrevAndNext(long recordVersionId,
                                                            long recordId,
                                                            OrderByComparator orderByComparator)
                                                     throws SystemException,
                                                            NoSuchRecordVersionException
Returns the d d l record versions before and after the current d d l record version in the ordered set where recordId = ?.

Parameters:
recordVersionId - the primary key of the current d d l record version
recordId - the record ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d l record version
Throws:
NoSuchRecordVersionException - if a d d l record version with the primary key could not be found
SystemException - if a system exception occurred

findByR_V

public static DDLRecordVersion findByR_V(long recordId,
                                         String version)
                                  throws SystemException,
                                         NoSuchRecordVersionException
Returns the d d l record version where recordId = ? and version = ? or throws a NoSuchRecordVersionException if it could not be found.

Parameters:
recordId - the record ID
version - the version
Returns:
the matching d d l record version
Throws:
NoSuchRecordVersionException - if a matching d d l record version could not be found
SystemException - if a system exception occurred

fetchByR_V

public static DDLRecordVersion fetchByR_V(long recordId,
                                          String version)
                                   throws SystemException
Returns the d d l record version where recordId = ? and version = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
recordId - the record ID
version - the version
Returns:
the matching d d l record version, or null if a matching d d l record version could not be found
Throws:
SystemException - if a system exception occurred

fetchByR_V

public static DDLRecordVersion fetchByR_V(long recordId,
                                          String version,
                                          boolean retrieveFromCache)
                                   throws SystemException
Returns the d d l record version where recordId = ? and version = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
recordId - the record ID
version - the version
retrieveFromCache - whether to use the finder cache
Returns:
the matching d d l record version, or null if a matching d d l record version could not be found
Throws:
SystemException - if a system exception occurred

findByR_S

public static List<DDLRecordVersion> findByR_S(long recordId,
                                               int status)
                                        throws SystemException
Returns all the d d l record versions where recordId = ? and status = ?.

Parameters:
recordId - the record ID
status - the status
Returns:
the matching d d l record versions
Throws:
SystemException - if a system exception occurred

findByR_S

public static List<DDLRecordVersion> findByR_S(long recordId,
                                               int status,
                                               int start,
                                               int end)
                                        throws SystemException
Returns a range of all the d d l record versions where recordId = ? 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.

Parameters:
recordId - the record ID
status - the status
start - the lower bound of the range of d d l record versions
end - the upper bound of the range of d d l record versions (not inclusive)
Returns:
the range of matching d d l record versions
Throws:
SystemException - if a system exception occurred

findByR_S

public static List<DDLRecordVersion> findByR_S(long recordId,
                                               int status,
                                               int start,
                                               int end,
                                               OrderByComparator orderByComparator)
                                        throws SystemException
Returns an ordered range of all the d d l record versions where recordId = ? 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.

Parameters:
recordId - the record ID
status - the status
start - the lower bound of the range of d d l record versions
end - the upper bound of the range of d d l record versions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching d d l record versions
Throws:
SystemException - if a system exception occurred

findByR_S_First

public static DDLRecordVersion findByR_S_First(long recordId,
                                               int status,
                                               OrderByComparator orderByComparator)
                                        throws SystemException,
                                               NoSuchRecordVersionException
Returns the first d d l record version in the ordered set where recordId = ? and status = ?.

Parameters:
recordId - the record ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d l record version
Throws:
NoSuchRecordVersionException - if a matching d d l record version could not be found
SystemException - if a system exception occurred

fetchByR_S_First

public static DDLRecordVersion fetchByR_S_First(long recordId,
                                                int status,
                                                OrderByComparator orderByComparator)
                                         throws SystemException
Returns the first d d l record version in the ordered set where recordId = ? and status = ?.

Parameters:
recordId - the record ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching d d l record version, or null if a matching d d l record version could not be found
Throws:
SystemException - if a system exception occurred

findByR_S_Last

public static DDLRecordVersion findByR_S_Last(long recordId,
                                              int status,
                                              OrderByComparator orderByComparator)
                                       throws SystemException,
                                              NoSuchRecordVersionException
Returns the last d d l record version in the ordered set where recordId = ? and status = ?.

Parameters:
recordId - the record ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d l record version
Throws:
NoSuchRecordVersionException - if a matching d d l record version could not be found
SystemException - if a system exception occurred

fetchByR_S_Last

public static DDLRecordVersion fetchByR_S_Last(long recordId,
                                               int status,
                                               OrderByComparator orderByComparator)
                                        throws SystemException
Returns the last d d l record version in the ordered set where recordId = ? and status = ?.

Parameters:
recordId - the record ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching d d l record version, or null if a matching d d l record version could not be found
Throws:
SystemException - if a system exception occurred

findByR_S_PrevAndNext

public static DDLRecordVersion[] findByR_S_PrevAndNext(long recordVersionId,
                                                       long recordId,
                                                       int status,
                                                       OrderByComparator orderByComparator)
                                                throws SystemException,
                                                       NoSuchRecordVersionException
Returns the d d l record versions before and after the current d d l record version in the ordered set where recordId = ? and status = ?.

Parameters:
recordVersionId - the primary key of the current d d l record version
recordId - the record ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next d d l record version
Throws:
NoSuchRecordVersionException - if a d d l record version with the primary key could not be found
SystemException - if a system exception occurred

findAll

public static List<DDLRecordVersion> findAll()
                                      throws SystemException
Returns all the d d l record versions.

Returns:
the d d l record versions
Throws:
SystemException - if a system exception occurred

findAll

public static List<DDLRecordVersion> findAll(int start,
                                             int end)
                                      throws SystemException
Returns a range of all the d d l record 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.

Parameters:
start - the lower bound of the range of d d l record versions
end - the upper bound of the range of d d l record versions (not inclusive)
Returns:
the range of d d l record versions
Throws:
SystemException - if a system exception occurred

findAll

public static List<DDLRecordVersion> findAll(int start,
                                             int end,
                                             OrderByComparator orderByComparator)
                                      throws SystemException
Returns an ordered range of all the d d l record 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.

Parameters:
start - the lower bound of the range of d d l record versions
end - the upper bound of the range of d d l record versions (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of d d l record versions
Throws:
SystemException - if a system exception occurred

removeByRecordId

public static void removeByRecordId(long recordId)
                             throws SystemException
Removes all the d d l record versions where recordId = ? from the database.

Parameters:
recordId - the record ID
Throws:
SystemException - if a system exception occurred

removeByR_V

public static DDLRecordVersion removeByR_V(long recordId,
                                           String version)
                                    throws SystemException,
                                           NoSuchRecordVersionException
Removes the d d l record version where recordId = ? and version = ? from the database.

Parameters:
recordId - the record ID
version - the version
Returns:
the d d l record version that was removed
Throws:
SystemException - if a system exception occurred
NoSuchRecordVersionException

removeByR_S

public static void removeByR_S(long recordId,
                               int status)
                        throws SystemException
Removes all the d d l record versions where recordId = ? and status = ? from the database.

Parameters:
recordId - the record ID
status - the status
Throws:
SystemException - if a system exception occurred

removeAll

public static void removeAll()
                      throws SystemException
Removes all the d d l record versions from the database.

Throws:
SystemException - if a system exception occurred

countByRecordId

public static int countByRecordId(long recordId)
                           throws SystemException
Returns the number of d d l record versions where recordId = ?.

Parameters:
recordId - the record ID
Returns:
the number of matching d d l record versions
Throws:
SystemException - if a system exception occurred

countByR_V

public static int countByR_V(long recordId,
                             String version)
                      throws SystemException
Returns the number of d d l record versions where recordId = ? and version = ?.

Parameters:
recordId - the record ID
version - the version
Returns:
the number of matching d d l record versions
Throws:
SystemException - if a system exception occurred

countByR_S

public static int countByR_S(long recordId,
                             int status)
                      throws SystemException
Returns the number of d d l record versions where recordId = ? and status = ?.

Parameters:
recordId - the record ID
status - the status
Returns:
the number of matching d d l record versions
Throws:
SystemException - if a system exception occurred

countAll

public static int countAll()
                    throws SystemException
Returns the number of d d l record versions.

Returns:
the number of d d l record versions
Throws:
SystemException - if a system exception occurred

getPersistence

public static DDLRecordVersionPersistence getPersistence()

setPersistence

public void setPersistence(DDLRecordVersionPersistence persistence)
Deprecated. 


Liferay 6.1.2-ce-ga3