Liferay 7.0-ce-m3

com.liferay.portlet.dynamicdatamapping.service.base
Class DDMTemplateLocalServiceBaseImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portlet.dynamicdatamapping.service.base.DDMTemplateLocalServiceBaseImpl
All Implemented Interfaces:
IdentifiableBean, BaseLocalService, PersistedModelLocalService, DDMTemplateLocalService
Direct Known Subclasses:
DDMTemplateLocalServiceImpl

@ProviderType
public abstract class DDMTemplateLocalServiceBaseImpl
extends BaseLocalServiceImpl
implements DDMTemplateLocalService, IdentifiableBean

Provides the base implementation for the d d m template local service.

This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in DDMTemplateLocalServiceImpl.

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

Field Summary
protected  ClassNameLocalService classNameLocalService
           
protected  ClassNamePersistence classNamePersistence
           
protected  ClassNameService classNameService
           
protected  CounterLocalService counterLocalService
           
protected  DDMStructureFinder ddmStructureFinder
           
protected  DDMStructureLocalService ddmStructureLocalService
           
protected  DDMStructurePersistence ddmStructurePersistence
           
protected  DDMStructureService ddmStructureService
           
protected  DDMTemplateFinder ddmTemplateFinder
           
protected  DDMTemplateLocalService ddmTemplateLocalService
           
protected  DDMTemplatePersistence ddmTemplatePersistence
           
protected  DDMTemplateService ddmTemplateService
           
protected  DDMTemplateVersionLocalService ddmTemplateVersionLocalService
           
protected  DDMTemplateVersionPersistence ddmTemplateVersionPersistence
           
protected  DDMTemplateVersionService ddmTemplateVersionService
           
protected  GroupFinder groupFinder
           
protected  GroupLocalService groupLocalService
           
protected  GroupPersistence groupPersistence
           
protected  GroupService groupService
           
protected  ImageLocalService imageLocalService
           
protected  ImagePersistence imagePersistence
           
protected  ImageService imageService
           
protected  PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry
           
protected  ResourceLocalService resourceLocalService
           
protected  SystemEventLocalService systemEventLocalService
           
protected  SystemEventPersistence systemEventPersistence
           
protected  UserFinder userFinder
           
protected  UserLocalService userLocalService
           
protected  UserPersistence userPersistence
           
protected  UserService userService
           
 
Constructor Summary
DDMTemplateLocalServiceBaseImpl()
           
 
Method Summary
 DDMTemplate addDDMTemplate(DDMTemplate ddmTemplate)
          Adds the d d m template to the database.
 void afterPropertiesSet()
           
 DDMTemplate createDDMTemplate(long templateId)
          Creates a new d d m template with the primary key.
 DDMTemplate deleteDDMTemplate(DDMTemplate ddmTemplate)
          Deletes the d d m template from the database.
 DDMTemplate deleteDDMTemplate(long templateId)
          Deletes the d d m template with the primary key from the database.
 PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
 void destroy()
           
 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.
 DDMTemplate fetchDDMTemplate(long templateId)
           
 DDMTemplate fetchDDMTemplateByUuidAndGroupId(String uuid, long groupId)
          Returns the d d m template matching the UUID and group.
 ActionableDynamicQuery getActionableDynamicQuery()
           
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 ClassNameLocalService getClassNameLocalService()
          Returns the class name local service.
 ClassNamePersistence getClassNamePersistence()
          Returns the class name persistence.
 ClassNameService getClassNameService()
          Returns the class name remote service.
 CounterLocalService getCounterLocalService()
          Returns the counter local service.
 DDMStructureFinder getDDMStructureFinder()
          Returns the d d m structure finder.
 DDMStructureLocalService getDDMStructureLocalService()
          Returns the d d m structure local service.
 DDMStructurePersistence getDDMStructurePersistence()
          Returns the d d m structure persistence.
 DDMStructureService getDDMStructureService()
          Returns the d d m structure remote service.
 DDMTemplate getDDMTemplate(long templateId)
          Returns the d d m template with the primary key.
 DDMTemplate getDDMTemplateByUuidAndGroupId(String uuid, long groupId)
          Returns the d d m template matching the UUID and group.
 DDMTemplateFinder getDDMTemplateFinder()
          Returns the d d m template finder.
 DDMTemplateLocalService getDDMTemplateLocalService()
          Returns the d d m template local service.
 DDMTemplatePersistence getDDMTemplatePersistence()
          Returns the d d m template persistence.
 List<DDMTemplate> getDDMTemplates(int start, int end)
          Returns a range of all the d d m templates.
 List<DDMTemplate> getDDMTemplatesByUuidAndCompanyId(String uuid, long companyId)
          Returns all the d d m templates matching the UUID and company.
 List<DDMTemplate> getDDMTemplatesByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<DDMTemplate> orderByComparator)
          Returns a range of d d m templates matching the UUID and company.
 int getDDMTemplatesCount()
          Returns the number of d d m templates.
 DDMTemplateService getDDMTemplateService()
          Returns the d d m template remote service.
 DDMTemplateVersionLocalService getDDMTemplateVersionLocalService()
          Returns the d d m template version local service.
 DDMTemplateVersionPersistence getDDMTemplateVersionPersistence()
          Returns the d d m template version persistence.
 DDMTemplateVersionService getDDMTemplateVersionService()
          Returns the d d m template version remote service.
 ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
           
 GroupFinder getGroupFinder()
          Returns the group finder.
 GroupLocalService getGroupLocalService()
          Returns the group local service.
 GroupPersistence getGroupPersistence()
          Returns the group persistence.
 GroupService getGroupService()
          Returns the group remote service.
 ImageLocalService getImageLocalService()
          Returns the image local service.
 ImagePersistence getImagePersistence()
          Returns the image persistence.
 ImageService getImageService()
          Returns the image remote service.
protected  Class<?> getModelClass()
           
protected  String getModelClassName()
           
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 ResourceLocalService getResourceLocalService()
          Returns the resource local service.
 SystemEventLocalService getSystemEventLocalService()
          Returns the system event local service.
 SystemEventPersistence getSystemEventPersistence()
          Returns the system event persistence.
 UserFinder getUserFinder()
          Returns the user finder.
 UserLocalService getUserLocalService()
          Returns the user local service.
 UserPersistence getUserPersistence()
          Returns the user persistence.
 UserService getUserService()
          Returns the user remote service.
protected  void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery)
           
protected  void runSQL(String sql)
          Performs a SQL query.
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setClassNameLocalService(ClassNameLocalService classNameLocalService)
          Sets the class name local service.
 void setClassNamePersistence(ClassNamePersistence classNamePersistence)
          Sets the class name persistence.
 void setClassNameService(ClassNameService classNameService)
          Sets the class name remote service.
 void setCounterLocalService(CounterLocalService counterLocalService)
          Sets the counter local service.
 void setDDMStructureFinder(DDMStructureFinder ddmStructureFinder)
          Sets the d d m structure finder.
 void setDDMStructureLocalService(DDMStructureLocalService ddmStructureLocalService)
          Sets the d d m structure local service.
 void setDDMStructurePersistence(DDMStructurePersistence ddmStructurePersistence)
          Sets the d d m structure persistence.
 void setDDMStructureService(DDMStructureService ddmStructureService)
          Sets the d d m structure remote service.
 void setDDMTemplateFinder(DDMTemplateFinder ddmTemplateFinder)
          Sets the d d m template finder.
 void setDDMTemplateLocalService(DDMTemplateLocalService ddmTemplateLocalService)
          Sets the d d m template local service.
 void setDDMTemplatePersistence(DDMTemplatePersistence ddmTemplatePersistence)
          Sets the d d m template persistence.
 void setDDMTemplateService(DDMTemplateService ddmTemplateService)
          Sets the d d m template remote service.
 void setDDMTemplateVersionLocalService(DDMTemplateVersionLocalService ddmTemplateVersionLocalService)
          Sets the d d m template version local service.
 void setDDMTemplateVersionPersistence(DDMTemplateVersionPersistence ddmTemplateVersionPersistence)
          Sets the d d m template version persistence.
 void setDDMTemplateVersionService(DDMTemplateVersionService ddmTemplateVersionService)
          Sets the d d m template version remote service.
 void setGroupFinder(GroupFinder groupFinder)
          Sets the group finder.
 void setGroupLocalService(GroupLocalService groupLocalService)
          Sets the group local service.
 void setGroupPersistence(GroupPersistence groupPersistence)
          Sets the group persistence.
 void setGroupService(GroupService groupService)
          Sets the group remote service.
 void setImageLocalService(ImageLocalService imageLocalService)
          Sets the image local service.
 void setImagePersistence(ImagePersistence imagePersistence)
          Sets the image persistence.
 void setImageService(ImageService imageService)
          Sets the image remote service.
 void setResourceLocalService(ResourceLocalService resourceLocalService)
          Sets the resource local service.
 void setSystemEventLocalService(SystemEventLocalService systemEventLocalService)
          Sets the system event local service.
 void setSystemEventPersistence(SystemEventPersistence systemEventPersistence)
          Sets the system event persistence.
 void setUserFinder(UserFinder userFinder)
          Sets the user finder.
 void setUserLocalService(UserLocalService userLocalService)
          Sets the user local service.
 void setUserPersistence(UserPersistence userPersistence)
          Sets the user persistence.
 void setUserService(UserService userService)
          Sets the user remote service.
 DDMTemplate updateDDMTemplate(DDMTemplate ddmTemplate)
          Updates the d d m template in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portlet.dynamicdatamapping.service.DDMTemplateLocalService
addTemplate, addTemplate, addTemplateResources, addTemplateResources, copyTemplate, copyTemplate, copyTemplates, deleteTemplate, deleteTemplate, deleteTemplates, deleteTemplates, fetchTemplate, fetchTemplate, getTemplate, getTemplate, getTemplate, getTemplateBySmallImageId, getTemplates, getTemplates, getTemplates, getTemplates, getTemplates, getTemplates, getTemplates, getTemplatesByClassPK, getTemplatesByClassPK, getTemplatesByClassPK, getTemplatesByClassPKCount, getTemplatesByStructureClassNameId, getTemplatesByStructureClassNameIdCount, getTemplatesCount, getTemplatesCount, getTemplatesCount, search, search, search, search, searchCount, searchCount, searchCount, searchCount, updateTemplate, updateTemplate
 

Field Detail

ddmTemplateLocalService

@BeanReference(type=DDMTemplateLocalService.class)
protected DDMTemplateLocalService ddmTemplateLocalService

ddmTemplateService

@BeanReference(type=DDMTemplateService.class)
protected DDMTemplateService ddmTemplateService

ddmTemplatePersistence

@BeanReference(type=DDMTemplatePersistence.class)
protected DDMTemplatePersistence ddmTemplatePersistence

ddmTemplateFinder

@BeanReference(type=DDMTemplateFinder.class)
protected DDMTemplateFinder ddmTemplateFinder

counterLocalService

@BeanReference(type=CounterLocalService.class)
protected CounterLocalService counterLocalService

classNameLocalService

@BeanReference(type=ClassNameLocalService.class)
protected ClassNameLocalService classNameLocalService

classNameService

@BeanReference(type=ClassNameService.class)
protected ClassNameService classNameService

classNamePersistence

@BeanReference(type=ClassNamePersistence.class)
protected ClassNamePersistence classNamePersistence

groupLocalService

@BeanReference(type=GroupLocalService.class)
protected GroupLocalService groupLocalService

groupService

@BeanReference(type=GroupService.class)
protected GroupService groupService

groupPersistence

@BeanReference(type=GroupPersistence.class)
protected GroupPersistence groupPersistence

groupFinder

@BeanReference(type=GroupFinder.class)
protected GroupFinder groupFinder

imageLocalService

@BeanReference(type=ImageLocalService.class)
protected ImageLocalService imageLocalService

imageService

@BeanReference(type=ImageService.class)
protected ImageService imageService

imagePersistence

@BeanReference(type=ImagePersistence.class)
protected ImagePersistence imagePersistence

resourceLocalService

@BeanReference(type=ResourceLocalService.class)
protected ResourceLocalService resourceLocalService

systemEventLocalService

@BeanReference(type=SystemEventLocalService.class)
protected SystemEventLocalService systemEventLocalService

systemEventPersistence

@BeanReference(type=SystemEventPersistence.class)
protected SystemEventPersistence systemEventPersistence

userLocalService

@BeanReference(type=UserLocalService.class)
protected UserLocalService userLocalService

userService

@BeanReference(type=UserService.class)
protected UserService userService

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence

userFinder

@BeanReference(type=UserFinder.class)
protected UserFinder userFinder

ddmStructureLocalService

@BeanReference(type=DDMStructureLocalService.class)
protected DDMStructureLocalService ddmStructureLocalService

ddmStructureService

@BeanReference(type=DDMStructureService.class)
protected DDMStructureService ddmStructureService

ddmStructurePersistence

@BeanReference(type=DDMStructurePersistence.class)
protected DDMStructurePersistence ddmStructurePersistence

ddmStructureFinder

@BeanReference(type=DDMStructureFinder.class)
protected DDMStructureFinder ddmStructureFinder

ddmTemplateVersionLocalService

@BeanReference(type=DDMTemplateVersionLocalService.class)
protected DDMTemplateVersionLocalService ddmTemplateVersionLocalService

ddmTemplateVersionService

@BeanReference(type=DDMTemplateVersionService.class)
protected DDMTemplateVersionService ddmTemplateVersionService

ddmTemplateVersionPersistence

@BeanReference(type=DDMTemplateVersionPersistence.class)
protected DDMTemplateVersionPersistence ddmTemplateVersionPersistence

persistedModelLocalServiceRegistry

@BeanReference(type=PersistedModelLocalServiceRegistry.class)
protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry
Constructor Detail

DDMTemplateLocalServiceBaseImpl

public DDMTemplateLocalServiceBaseImpl()
Method Detail

addDDMTemplate

@Indexable(type=REINDEX)
public DDMTemplate addDDMTemplate(DDMTemplate ddmTemplate)
Adds the d d m template to the database. Also notifies the appropriate model listeners.

Specified by:
addDDMTemplate in interface DDMTemplateLocalService
Parameters:
ddmTemplate - the d d m template
Returns:
the d d m template that was added

createDDMTemplate

public DDMTemplate createDDMTemplate(long templateId)
Creates a new d d m template with the primary key. Does not add the d d m template to the database.

Specified by:
createDDMTemplate in interface DDMTemplateLocalService
Parameters:
templateId - the primary key for the new d d m template
Returns:
the new d d m template

deleteDDMTemplate

@Indexable(type=DELETE)
public DDMTemplate deleteDDMTemplate(long templateId)
                              throws PortalException
Deletes the d d m template with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteDDMTemplate in interface DDMTemplateLocalService
Parameters:
templateId - the primary key of the d d m template
Returns:
the d d m template that was removed
Throws:
PortalException - if a d d m template with the primary key could not be found

deleteDDMTemplate

@Indexable(type=DELETE)
public DDMTemplate deleteDDMTemplate(DDMTemplate ddmTemplate)
Deletes the d d m template from the database. Also notifies the appropriate model listeners.

Specified by:
deleteDDMTemplate in interface DDMTemplateLocalService
Parameters:
ddmTemplate - the d d m template
Returns:
the d d m template that was removed

dynamicQuery

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

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 DDMTemplateLocalService
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 DDMTemplateModelImpl. 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 DDMTemplateLocalService
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 DDMTemplateModelImpl. 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 DDMTemplateLocalService
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 DDMTemplateLocalService
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 DDMTemplateLocalService
Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchDDMTemplate

public DDMTemplate fetchDDMTemplate(long templateId)
Specified by:
fetchDDMTemplate in interface DDMTemplateLocalService

fetchDDMTemplateByUuidAndGroupId

public DDMTemplate fetchDDMTemplateByUuidAndGroupId(String uuid,
                                                    long groupId)
Returns the d d m template matching the UUID and group.

Specified by:
fetchDDMTemplateByUuidAndGroupId in interface DDMTemplateLocalService
Parameters:
uuid - the d d m template's UUID
groupId - the primary key of the group
Returns:
the matching d d m template, or null if a matching d d m template could not be found

getDDMTemplate

public DDMTemplate getDDMTemplate(long templateId)
                           throws PortalException
Returns the d d m template with the primary key.

Specified by:
getDDMTemplate in interface DDMTemplateLocalService
Parameters:
templateId - the primary key of the d d m template
Returns:
the d d m template
Throws:
PortalException - if a d d m template with the primary key could not be found

getActionableDynamicQuery

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

initActionableDynamicQuery

protected void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery)

getExportActionableDynamicQuery

public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
Specified by:
getExportActionableDynamicQuery in interface DDMTemplateLocalService

deletePersistedModel

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

getPersistedModel

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

getDDMTemplatesByUuidAndCompanyId

public List<DDMTemplate> getDDMTemplatesByUuidAndCompanyId(String uuid,
                                                           long companyId)
Returns all the d d m templates matching the UUID and company.

Specified by:
getDDMTemplatesByUuidAndCompanyId in interface DDMTemplateLocalService
Parameters:
uuid - the UUID of the d d m templates
companyId - the primary key of the company
Returns:
the matching d d m templates, or an empty list if no matches were found

getDDMTemplatesByUuidAndCompanyId

public List<DDMTemplate> getDDMTemplatesByUuidAndCompanyId(String uuid,
                                                           long companyId,
                                                           int start,
                                                           int end,
                                                           OrderByComparator<DDMTemplate> orderByComparator)
Returns a range of d d m templates matching the UUID and company.

Specified by:
getDDMTemplatesByUuidAndCompanyId in interface DDMTemplateLocalService
Parameters:
uuid - the UUID of the d d m templates
companyId - the primary key of the company
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the range of matching d d m templates, or an empty list if no matches were found

getDDMTemplateByUuidAndGroupId

public DDMTemplate getDDMTemplateByUuidAndGroupId(String uuid,
                                                  long groupId)
                                           throws PortalException
Returns the d d m template matching the UUID and group.

Specified by:
getDDMTemplateByUuidAndGroupId in interface DDMTemplateLocalService
Parameters:
uuid - the d d m template's UUID
groupId - the primary key of the group
Returns:
the matching d d m template
Throws:
PortalException - if a matching d d m template could not be found

getDDMTemplates

public List<DDMTemplate> getDDMTemplates(int start,
                                         int end)
Returns a range of all the d d m templates.

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 DDMTemplateModelImpl. 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:
getDDMTemplates in interface DDMTemplateLocalService
Parameters:
start - the lower bound of the range of d d m templates
end - the upper bound of the range of d d m templates (not inclusive)
Returns:
the range of d d m templates

getDDMTemplatesCount

public int getDDMTemplatesCount()
Returns the number of d d m templates.

Specified by:
getDDMTemplatesCount in interface DDMTemplateLocalService
Returns:
the number of d d m templates

updateDDMTemplate

@Indexable(type=REINDEX)
public DDMTemplate updateDDMTemplate(DDMTemplate ddmTemplate)
Updates the d d m template in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateDDMTemplate in interface DDMTemplateLocalService
Parameters:
ddmTemplate - the d d m template
Returns:
the d d m template that was updated

getDDMTemplateLocalService

public DDMTemplateLocalService getDDMTemplateLocalService()
Returns the d d m template local service.

Returns:
the d d m template local service

setDDMTemplateLocalService

public void setDDMTemplateLocalService(DDMTemplateLocalService ddmTemplateLocalService)
Sets the d d m template local service.

Parameters:
ddmTemplateLocalService - the d d m template local service

getDDMTemplateService

public DDMTemplateService getDDMTemplateService()
Returns the d d m template remote service.

Returns:
the d d m template remote service

setDDMTemplateService

public void setDDMTemplateService(DDMTemplateService ddmTemplateService)
Sets the d d m template remote service.

Parameters:
ddmTemplateService - the d d m template remote service

getDDMTemplatePersistence

public DDMTemplatePersistence getDDMTemplatePersistence()
Returns the d d m template persistence.

Returns:
the d d m template persistence

setDDMTemplatePersistence

public void setDDMTemplatePersistence(DDMTemplatePersistence ddmTemplatePersistence)
Sets the d d m template persistence.

Parameters:
ddmTemplatePersistence - the d d m template persistence

getDDMTemplateFinder

public DDMTemplateFinder getDDMTemplateFinder()
Returns the d d m template finder.

Returns:
the d d m template finder

setDDMTemplateFinder

public void setDDMTemplateFinder(DDMTemplateFinder ddmTemplateFinder)
Sets the d d m template finder.

Parameters:
ddmTemplateFinder - the d d m template finder

getCounterLocalService

public CounterLocalService getCounterLocalService()
Returns the counter local service.

Returns:
the counter local service

setCounterLocalService

public void setCounterLocalService(CounterLocalService counterLocalService)
Sets the counter local service.

Parameters:
counterLocalService - the counter local service

getClassNameLocalService

public ClassNameLocalService getClassNameLocalService()
Returns the class name local service.

Returns:
the class name local service

setClassNameLocalService

public void setClassNameLocalService(ClassNameLocalService classNameLocalService)
Sets the class name local service.

Parameters:
classNameLocalService - the class name local service

getClassNameService

public ClassNameService getClassNameService()
Returns the class name remote service.

Returns:
the class name remote service

setClassNameService

public void setClassNameService(ClassNameService classNameService)
Sets the class name remote service.

Parameters:
classNameService - the class name remote service

getClassNamePersistence

public ClassNamePersistence getClassNamePersistence()
Returns the class name persistence.

Returns:
the class name persistence

setClassNamePersistence

public void setClassNamePersistence(ClassNamePersistence classNamePersistence)
Sets the class name persistence.

Parameters:
classNamePersistence - the class name persistence

getGroupLocalService

public GroupLocalService getGroupLocalService()
Returns the group local service.

Returns:
the group local service

setGroupLocalService

public void setGroupLocalService(GroupLocalService groupLocalService)
Sets the group local service.

Parameters:
groupLocalService - the group local service

getGroupService

public GroupService getGroupService()
Returns the group remote service.

Returns:
the group remote service

setGroupService

public void setGroupService(GroupService groupService)
Sets the group remote service.

Parameters:
groupService - the group remote service

getGroupPersistence

public GroupPersistence getGroupPersistence()
Returns the group persistence.

Returns:
the group persistence

setGroupPersistence

public void setGroupPersistence(GroupPersistence groupPersistence)
Sets the group persistence.

Parameters:
groupPersistence - the group persistence

getGroupFinder

public GroupFinder getGroupFinder()
Returns the group finder.

Returns:
the group finder

setGroupFinder

public void setGroupFinder(GroupFinder groupFinder)
Sets the group finder.

Parameters:
groupFinder - the group finder

getImageLocalService

public ImageLocalService getImageLocalService()
Returns the image local service.

Returns:
the image local service

setImageLocalService

public void setImageLocalService(ImageLocalService imageLocalService)
Sets the image local service.

Parameters:
imageLocalService - the image local service

getImageService

public ImageService getImageService()
Returns the image remote service.

Returns:
the image remote service

setImageService

public void setImageService(ImageService imageService)
Sets the image remote service.

Parameters:
imageService - the image remote service

getImagePersistence

public ImagePersistence getImagePersistence()
Returns the image persistence.

Returns:
the image persistence

setImagePersistence

public void setImagePersistence(ImagePersistence imagePersistence)
Sets the image persistence.

Parameters:
imagePersistence - the image persistence

getResourceLocalService

public ResourceLocalService getResourceLocalService()
Returns the resource local service.

Returns:
the resource local service

setResourceLocalService

public void setResourceLocalService(ResourceLocalService resourceLocalService)
Sets the resource local service.

Parameters:
resourceLocalService - the resource local service

getSystemEventLocalService

public SystemEventLocalService getSystemEventLocalService()
Returns the system event local service.

Returns:
the system event local service

setSystemEventLocalService

public void setSystemEventLocalService(SystemEventLocalService systemEventLocalService)
Sets the system event local service.

Parameters:
systemEventLocalService - the system event local service

getSystemEventPersistence

public SystemEventPersistence getSystemEventPersistence()
Returns the system event persistence.

Returns:
the system event persistence

setSystemEventPersistence

public void setSystemEventPersistence(SystemEventPersistence systemEventPersistence)
Sets the system event persistence.

Parameters:
systemEventPersistence - the system event persistence

getUserLocalService

public UserLocalService getUserLocalService()
Returns the user local service.

Returns:
the user local service

setUserLocalService

public void setUserLocalService(UserLocalService userLocalService)
Sets the user local service.

Parameters:
userLocalService - the user local service

getUserService

public UserService getUserService()
Returns the user remote service.

Returns:
the user remote service

setUserService

public void setUserService(UserService userService)
Sets the user remote service.

Parameters:
userService - the user remote service

getUserPersistence

public UserPersistence getUserPersistence()
Returns the user persistence.

Returns:
the user persistence

setUserPersistence

public void setUserPersistence(UserPersistence userPersistence)
Sets the user persistence.

Parameters:
userPersistence - the user persistence

getUserFinder

public UserFinder getUserFinder()
Returns the user finder.

Returns:
the user finder

setUserFinder

public void setUserFinder(UserFinder userFinder)
Sets the user finder.

Parameters:
userFinder - the user finder

getDDMStructureLocalService

public DDMStructureLocalService getDDMStructureLocalService()
Returns the d d m structure local service.

Returns:
the d d m structure local service

setDDMStructureLocalService

public void setDDMStructureLocalService(DDMStructureLocalService ddmStructureLocalService)
Sets the d d m structure local service.

Parameters:
ddmStructureLocalService - the d d m structure local service

getDDMStructureService

public DDMStructureService getDDMStructureService()
Returns the d d m structure remote service.

Returns:
the d d m structure remote service

setDDMStructureService

public void setDDMStructureService(DDMStructureService ddmStructureService)
Sets the d d m structure remote service.

Parameters:
ddmStructureService - the d d m structure remote service

getDDMStructurePersistence

public DDMStructurePersistence getDDMStructurePersistence()
Returns the d d m structure persistence.

Returns:
the d d m structure persistence

setDDMStructurePersistence

public void setDDMStructurePersistence(DDMStructurePersistence ddmStructurePersistence)
Sets the d d m structure persistence.

Parameters:
ddmStructurePersistence - the d d m structure persistence

getDDMStructureFinder

public DDMStructureFinder getDDMStructureFinder()
Returns the d d m structure finder.

Returns:
the d d m structure finder

setDDMStructureFinder

public void setDDMStructureFinder(DDMStructureFinder ddmStructureFinder)
Sets the d d m structure finder.

Parameters:
ddmStructureFinder - the d d m structure finder

getDDMTemplateVersionLocalService

public DDMTemplateVersionLocalService getDDMTemplateVersionLocalService()
Returns the d d m template version local service.

Returns:
the d d m template version local service

setDDMTemplateVersionLocalService

public void setDDMTemplateVersionLocalService(DDMTemplateVersionLocalService ddmTemplateVersionLocalService)
Sets the d d m template version local service.

Parameters:
ddmTemplateVersionLocalService - the d d m template version local service

getDDMTemplateVersionService

public DDMTemplateVersionService getDDMTemplateVersionService()
Returns the d d m template version remote service.

Returns:
the d d m template version remote service

setDDMTemplateVersionService

public void setDDMTemplateVersionService(DDMTemplateVersionService ddmTemplateVersionService)
Sets the d d m template version remote service.

Parameters:
ddmTemplateVersionService - the d d m template version remote service

getDDMTemplateVersionPersistence

public DDMTemplateVersionPersistence getDDMTemplateVersionPersistence()
Returns the d d m template version persistence.

Returns:
the d d m template version persistence

setDDMTemplateVersionPersistence

public void setDDMTemplateVersionPersistence(DDMTemplateVersionPersistence ddmTemplateVersionPersistence)
Sets the d d m template version persistence.

Parameters:
ddmTemplateVersionPersistence - the d d m template version persistence

afterPropertiesSet

public void afterPropertiesSet()

destroy

public void destroy()

getBeanIdentifier

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

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

setBeanIdentifier

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

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

getModelClass

protected Class<?> getModelClass()

getModelClassName

protected String getModelClassName()

runSQL

protected void runSQL(String sql)
Performs a SQL query.

Parameters:
sql - the sql query

Liferay 7.0-ce-m3