Liferay 7.0-ce-m6

com.liferay.portlet.dynamicdatamapping.service
Class DDMTemplateVersionLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portlet.dynamicdatamapping.service.DDMTemplateVersionLocalServiceWrapper
All Implemented Interfaces:
BaseLocalService, PersistedModelLocalService, ServiceWrapper<DDMTemplateVersionLocalService>, DDMTemplateVersionLocalService

@ProviderType
public class DDMTemplateVersionLocalServiceWrapper
extends Object
implements DDMTemplateVersionLocalService, ServiceWrapper<DDMTemplateVersionLocalService>

Provides a wrapper for DDMTemplateVersionLocalService.

See Also:
DDMTemplateVersionLocalService

Constructor Summary
DDMTemplateVersionLocalServiceWrapper(DDMTemplateVersionLocalService ddmTemplateVersionLocalService)
           
 
Method Summary
 DDMTemplateVersion addDDMTemplateVersion(DDMTemplateVersion ddmTemplateVersion)
          Adds the d d m template version to the database.
 DDMTemplateVersion createDDMTemplateVersion(long templateVersionId)
          Creates a new d d m template version with the primary key.
 DDMTemplateVersion deleteDDMTemplateVersion(DDMTemplateVersion ddmTemplateVersion)
          Deletes the d d m template version from the database.
 DDMTemplateVersion deleteDDMTemplateVersion(long templateVersionId)
          Deletes the d d m template version with the primary key from the database.
 PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
 DynamicQuery dynamicQuery()
           
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
<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.
<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.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows matching the dynamic query.
 long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows matching the dynamic query.
 DDMTemplateVersion fetchDDMTemplateVersion(long templateVersionId)
           
 ActionableDynamicQuery getActionableDynamicQuery()
           
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 DDMTemplateVersion getDDMTemplateVersion(long templateVersionId)
          Returns the d d m template version with the primary key.
 List<DDMTemplateVersion> getDDMTemplateVersions(int start, int end)
          Returns a range of all the d d m template versions.
 int getDDMTemplateVersionsCount()
          Returns the number of d d m template versions.
 DDMTemplateVersion getLatestTemplateVersion(long templateId)
           
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 DDMTemplateVersion getTemplateVersion(long templateVersionId)
           
 DDMTemplateVersion getTemplateVersion(long templateId, String version)
           
 List<DDMTemplateVersion> getTemplateVersions(long templateId, int start, int end, OrderByComparator<DDMTemplateVersion> orderByComparator)
           
 int getTemplateVersionsCount(long templateId)
           
 DDMTemplateVersionLocalService getWrappedDDMTemplateVersionLocalService()
          Deprecated. As of 6.1.0, replaced by getWrappedService()
 DDMTemplateVersionLocalService getWrappedService()
           
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setWrappedDDMTemplateVersionLocalService(DDMTemplateVersionLocalService ddmTemplateVersionLocalService)
          Deprecated. As of 6.1.0, replaced by setWrappedService(com.liferay.portlet.dynamicdatamapping.service.DDMTemplateVersionLocalService)
 void setWrappedService(DDMTemplateVersionLocalService ddmTemplateVersionLocalService)
           
 DDMTemplateVersion updateDDMTemplateVersion(DDMTemplateVersion ddmTemplateVersion)
          Updates the d d m template 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

DDMTemplateVersionLocalServiceWrapper

public DDMTemplateVersionLocalServiceWrapper(DDMTemplateVersionLocalService ddmTemplateVersionLocalService)
Method Detail

addDDMTemplateVersion

public DDMTemplateVersion addDDMTemplateVersion(DDMTemplateVersion ddmTemplateVersion)
Adds the d d m template version to the database. Also notifies the appropriate model listeners.

Specified by:
addDDMTemplateVersion in interface DDMTemplateVersionLocalService
Parameters:
ddmTemplateVersion - the d d m template version
Returns:
the d d m template version that was added

createDDMTemplateVersion

public DDMTemplateVersion createDDMTemplateVersion(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:
createDDMTemplateVersion in interface DDMTemplateVersionLocalService
Parameters:
templateVersionId - the primary key for the new d d m template version
Returns:
the new d d m template version

deleteDDMTemplateVersion

public DDMTemplateVersion deleteDDMTemplateVersion(DDMTemplateVersion ddmTemplateVersion)
Deletes the d d m template version from the database. Also notifies the appropriate model listeners.

Specified by:
deleteDDMTemplateVersion in interface DDMTemplateVersionLocalService
Parameters:
ddmTemplateVersion - the d d m template version
Returns:
the d d m template version that was removed

deleteDDMTemplateVersion

public DDMTemplateVersion deleteDDMTemplateVersion(long templateVersionId)
                                            throws PortalException
Deletes the d d m template version with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteDDMTemplateVersion in interface DDMTemplateVersionLocalService
Parameters:
templateVersionId - the primary key of the d d m template version
Returns:
the d d m template version that was removed
Throws:
PortalException - if a d d m template version with the primary key could not be found

deletePersistedModel

public PersistedModel deletePersistedModel(PersistedModel persistedModel)
                                    throws PortalException
Specified by:
deletePersistedModel in interface PersistedModelLocalService
Specified by:
deletePersistedModel in interface DDMTemplateVersionLocalService
Throws:
PortalException

dynamicQuery

public DynamicQuery dynamicQuery()
Specified by:
dynamicQuery in interface DDMTemplateVersionLocalService

dynamicQuery

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

Specified by:
dynamicQuery in interface DDMTemplateVersionLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows

dynamicQuery

public <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.dynamicdatamapping.model.impl.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:
dynamicQuery in interface DDMTemplateVersionLocalService
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 <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.dynamicdatamapping.model.impl.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:
dynamicQuery in interface DDMTemplateVersionLocalService
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 long dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.

Specified by:
dynamicQueryCount in interface DDMTemplateVersionLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows matching the dynamic query

dynamicQueryCount

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

Specified by:
dynamicQueryCount in interface DDMTemplateVersionLocalService
Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchDDMTemplateVersion

public DDMTemplateVersion fetchDDMTemplateVersion(long templateVersionId)
Specified by:
fetchDDMTemplateVersion in interface DDMTemplateVersionLocalService

getActionableDynamicQuery

public ActionableDynamicQuery getActionableDynamicQuery()
Specified by:
getActionableDynamicQuery in interface DDMTemplateVersionLocalService

getBeanIdentifier

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

Specified by:
getBeanIdentifier in interface DDMTemplateVersionLocalService
Returns:
the Spring bean ID for this bean

getDDMTemplateVersion

public DDMTemplateVersion getDDMTemplateVersion(long templateVersionId)
                                         throws PortalException
Returns the d d m template version with the primary key.

Specified by:
getDDMTemplateVersion in interface DDMTemplateVersionLocalService
Parameters:
templateVersionId - the primary key of the d d m template version
Returns:
the d d m template version
Throws:
PortalException - if a d d m template version with the primary key could not be found

getDDMTemplateVersions

public List<DDMTemplateVersion> getDDMTemplateVersions(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 com.liferay.portlet.dynamicdatamapping.model.impl.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:
getDDMTemplateVersions in interface DDMTemplateVersionLocalService
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

getDDMTemplateVersionsCount

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

Specified by:
getDDMTemplateVersionsCount in interface DDMTemplateVersionLocalService
Returns:
the number of d d m template versions

getLatestTemplateVersion

public DDMTemplateVersion getLatestTemplateVersion(long templateId)
                                            throws PortalException
Specified by:
getLatestTemplateVersion in interface DDMTemplateVersionLocalService
Throws:
PortalException

getPersistedModel

public PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Specified by:
getPersistedModel in interface DDMTemplateVersionLocalService
Throws:
PortalException

getTemplateVersion

public DDMTemplateVersion getTemplateVersion(long templateId,
                                             String version)
                                      throws PortalException
Specified by:
getTemplateVersion in interface DDMTemplateVersionLocalService
Throws:
PortalException

getTemplateVersion

public DDMTemplateVersion getTemplateVersion(long templateVersionId)
                                      throws PortalException
Specified by:
getTemplateVersion in interface DDMTemplateVersionLocalService
Throws:
PortalException

getTemplateVersions

public List<DDMTemplateVersion> getTemplateVersions(long templateId,
                                                    int start,
                                                    int end,
                                                    OrderByComparator<DDMTemplateVersion> orderByComparator)
Specified by:
getTemplateVersions in interface DDMTemplateVersionLocalService

getTemplateVersionsCount

public int getTemplateVersionsCount(long templateId)
Specified by:
getTemplateVersionsCount in interface DDMTemplateVersionLocalService

setBeanIdentifier

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

Specified by:
setBeanIdentifier in interface DDMTemplateVersionLocalService
Parameters:
beanIdentifier - the Spring bean ID for this bean

updateDDMTemplateVersion

public DDMTemplateVersion updateDDMTemplateVersion(DDMTemplateVersion ddmTemplateVersion)
Updates the d d m template version in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateDDMTemplateVersion in interface DDMTemplateVersionLocalService
Parameters:
ddmTemplateVersion - the d d m template version
Returns:
the d d m template version that was updated

getWrappedDDMTemplateVersionLocalService

@Deprecated
public DDMTemplateVersionLocalService getWrappedDDMTemplateVersionLocalService()
Deprecated. As of 6.1.0, replaced by getWrappedService()


setWrappedDDMTemplateVersionLocalService

@Deprecated
public void setWrappedDDMTemplateVersionLocalService(DDMTemplateVersionLocalService ddmTemplateVersionLocalService)
Deprecated. As of 6.1.0, replaced by setWrappedService(com.liferay.portlet.dynamicdatamapping.service.DDMTemplateVersionLocalService)


getWrappedService

public DDMTemplateVersionLocalService getWrappedService()
Specified by:
getWrappedService in interface ServiceWrapper<DDMTemplateVersionLocalService>

setWrappedService

public void setWrappedService(DDMTemplateVersionLocalService ddmTemplateVersionLocalService)
Specified by:
setWrappedService in interface ServiceWrapper<DDMTemplateVersionLocalService>

Liferay 7.0-ce-m6