Liferay 7.0-ce-m3

com.liferay.portlet.dynamicdatalists.service
Class DDLRecordVersionLocalServiceUtil

java.lang.Object
  extended by com.liferay.portlet.dynamicdatalists.service.DDLRecordVersionLocalServiceUtil

@ProviderType
public class DDLRecordVersionLocalServiceUtil
extends Object

Provides the local service utility for DDLRecordVersion. This utility wraps com.liferay.portlet.dynamicdatalists.service.impl.DDLRecordVersionLocalServiceImpl and is the primary access point for service operations in application layer code running on the local server. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

See Also:
DDLRecordVersionLocalService, com.liferay.portlet.dynamicdatalists.service.base.DDLRecordVersionLocalServiceBaseImpl, com.liferay.portlet.dynamicdatalists.service.impl.DDLRecordVersionLocalServiceImpl

Constructor Summary
DDLRecordVersionLocalServiceUtil()
           
 
Method Summary
static DDLRecordVersion addDDLRecordVersion(DDLRecordVersion ddlRecordVersion)
          Adds the d d l record version to the database.
static DDLRecordVersion createDDLRecordVersion(long recordVersionId)
          Creates a new d d l record version with the primary key.
static DDLRecordVersion deleteDDLRecordVersion(DDLRecordVersion ddlRecordVersion)
          Deletes the d d l record version from the database.
static DDLRecordVersion deleteDDLRecordVersion(long recordVersionId)
          Deletes the d d l record version with the primary key from the database.
static PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
static DynamicQuery dynamicQuery()
           
static
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
static
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
static
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
static long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows matching the dynamic query.
static long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows matching the dynamic query.
static DDLRecordVersion fetchDDLRecordVersion(long recordVersionId)
           
static ActionableDynamicQuery getActionableDynamicQuery()
           
static String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
static DDLRecordVersion getDDLRecordVersion(long recordVersionId)
          Returns the d d l record version with the primary key.
static List<DDLRecordVersion> getDDLRecordVersions(int start, int end)
          Returns a range of all the d d l record versions.
static int getDDLRecordVersionsCount()
          Returns the number of d d l record versions.
static DDLRecordVersion getLatestRecordVersion(long recordId)
           
static PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
static DDLRecordVersion getRecordVersion(long recordVersionId)
           
static DDLRecordVersion getRecordVersion(long recordId, String version)
           
static List<DDLRecordVersion> getRecordVersions(long recordId, int start, int end, OrderByComparator<DDLRecordVersion> orderByComparator)
           
static int getRecordVersionsCount(long recordId)
           
static DDLRecordVersionLocalService getService()
           
static void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setService(DDLRecordVersionLocalService service)
          Deprecated. As of 6.2.0
static DDLRecordVersion updateDDLRecordVersion(DDLRecordVersion ddlRecordVersion)
          Updates the d d l record version in the database or adds it if it does not yet exist.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDLRecordVersionLocalServiceUtil

public DDLRecordVersionLocalServiceUtil()
Method Detail

addDDLRecordVersion

public static DDLRecordVersion addDDLRecordVersion(DDLRecordVersion ddlRecordVersion)
Adds the d d l record version to the database. Also notifies the appropriate model listeners.

Parameters:
ddlRecordVersion - the d d l record version
Returns:
the d d l record version that was added

createDDLRecordVersion

public static DDLRecordVersion createDDLRecordVersion(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

deleteDDLRecordVersion

public static DDLRecordVersion deleteDDLRecordVersion(DDLRecordVersion ddlRecordVersion)
Deletes the d d l record version from the database. Also notifies the appropriate model listeners.

Parameters:
ddlRecordVersion - the d d l record version
Returns:
the d d l record version that was removed

deleteDDLRecordVersion

public static DDLRecordVersion deleteDDLRecordVersion(long recordVersionId)
                                               throws PortalException
Deletes 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:
PortalException - if a d d l record version with the primary key could not be found

deletePersistedModel

public static PersistedModel deletePersistedModel(PersistedModel persistedModel)
                                           throws PortalException
Throws:
PortalException

dynamicQuery

public static DynamicQuery dynamicQuery()

dynamicQuery

public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.

Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows

dynamicQuery

public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                       int start,
                                       int end)
Performs a dynamic query on the database and returns a range of the matching rows.

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 com.liferay.portlet.dynamicdatalists.model.impl.DDLRecordVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
Returns:
the range of matching rows

dynamicQuery

public static <T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                                       int start,
                                       int end,
                                       OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.

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 com.liferay.portlet.dynamicdatalists.model.impl.DDLRecordVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching rows

dynamicQueryCount

public static long dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.

Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows matching the dynamic query

dynamicQueryCount

public static long dynamicQueryCount(DynamicQuery dynamicQuery,
                                     Projection projection)
Returns the number of rows matching the dynamic query.

Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchDDLRecordVersion

public static DDLRecordVersion fetchDDLRecordVersion(long recordVersionId)

getActionableDynamicQuery

public static ActionableDynamicQuery getActionableDynamicQuery()

getBeanIdentifier

public static String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

getDDLRecordVersion

public static DDLRecordVersion getDDLRecordVersion(long recordVersionId)
                                            throws PortalException
Returns the d d l record version with the primary key.

Parameters:
recordVersionId - the primary key of the d d l record version
Returns:
the d d l record version
Throws:
PortalException - if a d d l record version with the primary key could not be found

getDDLRecordVersions

public static List<DDLRecordVersion> getDDLRecordVersions(int start,
                                                          int end)
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. 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 com.liferay.portlet.dynamicdatalists.model.impl.DDLRecordVersionModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of d d 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

getDDLRecordVersionsCount

public static int getDDLRecordVersionsCount()
Returns the number of d d l record versions.

Returns:
the number of d d l record versions

getLatestRecordVersion

public static DDLRecordVersion getLatestRecordVersion(long recordId)
                                               throws PortalException
Throws:
PortalException

getPersistedModel

public static PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                        throws PortalException
Throws:
PortalException

getRecordVersion

public static DDLRecordVersion getRecordVersion(long recordId,
                                                String version)
                                         throws PortalException
Throws:
PortalException

getRecordVersion

public static DDLRecordVersion getRecordVersion(long recordVersionId)
                                         throws PortalException
Throws:
PortalException

getRecordVersions

public static List<DDLRecordVersion> getRecordVersions(long recordId,
                                                       int start,
                                                       int end,
                                                       OrderByComparator<DDLRecordVersion> orderByComparator)

getRecordVersionsCount

public static int getRecordVersionsCount(long recordId)

setBeanIdentifier

public static void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

updateDDLRecordVersion

public static DDLRecordVersion updateDDLRecordVersion(DDLRecordVersion ddlRecordVersion)
Updates the d d l record version in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Parameters:
ddlRecordVersion - the d d l record version
Returns:
the d d l record version that was updated

getService

public static DDLRecordVersionLocalService getService()

setService

@Deprecated
public void setService(DDLRecordVersionLocalService service)
Deprecated. As of 6.2.0


Liferay 7.0-ce-m3