Liferay 7.0-ce-m6

com.liferay.portlet.mobiledevicerules.service.base
Class MDRActionLocalServiceBaseImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portlet.mobiledevicerules.service.base.MDRActionLocalServiceBaseImpl
All Implemented Interfaces:
IdentifiableBean, BaseLocalService, PersistedModelLocalService, MDRActionLocalService
Direct Known Subclasses:
MDRActionLocalServiceImpl

@ProviderType
public abstract class MDRActionLocalServiceBaseImpl
extends BaseLocalServiceImpl
implements MDRActionLocalService, IdentifiableBean

Provides the base implementation for the m d r action 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 MDRActionLocalServiceImpl.

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

Field Summary
protected  CounterLocalService counterLocalService
           
protected  MDRActionLocalService mdrActionLocalService
           
protected  MDRActionPersistence mdrActionPersistence
           
protected  MDRActionService mdrActionService
           
protected  MDRRuleGroupInstanceLocalService mdrRuleGroupInstanceLocalService
           
protected  MDRRuleGroupInstancePersistence mdrRuleGroupInstancePersistence
           
protected  MDRRuleGroupInstanceService mdrRuleGroupInstanceService
           
protected  PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry
           
protected  SystemEventLocalService systemEventLocalService
           
protected  SystemEventPersistence systemEventPersistence
           
protected  UserFinder userFinder
           
protected  UserLocalService userLocalService
           
protected  UserPersistence userPersistence
           
protected  UserService userService
           
 
Constructor Summary
MDRActionLocalServiceBaseImpl()
           
 
Method Summary
 MDRAction addMDRAction(MDRAction mdrAction)
          Adds the m d r action to the database.
 void afterPropertiesSet()
           
 MDRAction createMDRAction(long actionId)
          Creates a new m d r action with the primary key.
 MDRAction deleteMDRAction(long actionId)
          Deletes the m d r action with the primary key from the database.
 MDRAction deleteMDRAction(MDRAction mdrAction)
          Deletes the m d r action 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.
 MDRAction fetchMDRAction(long actionId)
           
 MDRAction fetchMDRActionByUuidAndGroupId(String uuid, long groupId)
          Returns the m d r action matching the UUID and group.
 ActionableDynamicQuery getActionableDynamicQuery()
           
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 CounterLocalService getCounterLocalService()
          Returns the counter local service.
 ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
           
 MDRAction getMDRAction(long actionId)
          Returns the m d r action with the primary key.
 MDRAction getMDRActionByUuidAndGroupId(String uuid, long groupId)
          Returns the m d r action matching the UUID and group.
 MDRActionLocalService getMDRActionLocalService()
          Returns the m d r action local service.
 MDRActionPersistence getMDRActionPersistence()
          Returns the m d r action persistence.
 List<MDRAction> getMDRActions(int start, int end)
          Returns a range of all the m d r actions.
 List<MDRAction> getMDRActionsByUuidAndCompanyId(String uuid, long companyId)
          Returns all the m d r actions matching the UUID and company.
 List<MDRAction> getMDRActionsByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<MDRAction> orderByComparator)
          Returns a range of m d r actions matching the UUID and company.
 int getMDRActionsCount()
          Returns the number of m d r actions.
 MDRActionService getMDRActionService()
          Returns the m d r action remote service.
 MDRRuleGroupInstanceLocalService getMDRRuleGroupInstanceLocalService()
          Returns the m d r rule group instance local service.
 MDRRuleGroupInstancePersistence getMDRRuleGroupInstancePersistence()
          Returns the m d r rule group instance persistence.
 MDRRuleGroupInstanceService getMDRRuleGroupInstanceService()
          Returns the m d r rule group instance remote service.
protected  Class<?> getModelClass()
           
protected  String getModelClassName()
           
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 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 setCounterLocalService(CounterLocalService counterLocalService)
          Sets the counter local service.
 void setMDRActionLocalService(MDRActionLocalService mdrActionLocalService)
          Sets the m d r action local service.
 void setMDRActionPersistence(MDRActionPersistence mdrActionPersistence)
          Sets the m d r action persistence.
 void setMDRActionService(MDRActionService mdrActionService)
          Sets the m d r action remote service.
 void setMDRRuleGroupInstanceLocalService(MDRRuleGroupInstanceLocalService mdrRuleGroupInstanceLocalService)
          Sets the m d r rule group instance local service.
 void setMDRRuleGroupInstancePersistence(MDRRuleGroupInstancePersistence mdrRuleGroupInstancePersistence)
          Sets the m d r rule group instance persistence.
 void setMDRRuleGroupInstanceService(MDRRuleGroupInstanceService mdrRuleGroupInstanceService)
          Sets the m d r rule group instance remote 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.
 MDRAction updateMDRAction(MDRAction mdrAction)
          Updates the m d r action in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMap
 
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.mobiledevicerules.service.MDRActionLocalService
addAction, addAction, deleteAction, deleteAction, deleteActions, fetchAction, getAction, getActions, getActions, getActionsCount, updateAction, updateAction
 

Field Detail

mdrActionLocalService

@BeanReference(type=MDRActionLocalService.class)
protected MDRActionLocalService mdrActionLocalService

mdrActionService

@BeanReference(type=MDRActionService.class)
protected MDRActionService mdrActionService

mdrActionPersistence

@BeanReference(type=MDRActionPersistence.class)
protected MDRActionPersistence mdrActionPersistence

counterLocalService

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

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

mdrRuleGroupInstanceLocalService

@BeanReference(type=MDRRuleGroupInstanceLocalService.class)
protected MDRRuleGroupInstanceLocalService mdrRuleGroupInstanceLocalService

mdrRuleGroupInstanceService

@BeanReference(type=MDRRuleGroupInstanceService.class)
protected MDRRuleGroupInstanceService mdrRuleGroupInstanceService

mdrRuleGroupInstancePersistence

@BeanReference(type=MDRRuleGroupInstancePersistence.class)
protected MDRRuleGroupInstancePersistence mdrRuleGroupInstancePersistence

persistedModelLocalServiceRegistry

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

MDRActionLocalServiceBaseImpl

public MDRActionLocalServiceBaseImpl()
Method Detail

addMDRAction

@Indexable(type=REINDEX)
public MDRAction addMDRAction(MDRAction mdrAction)
Adds the m d r action to the database. Also notifies the appropriate model listeners.

Specified by:
addMDRAction in interface MDRActionLocalService
Parameters:
mdrAction - the m d r action
Returns:
the m d r action that was added

createMDRAction

public MDRAction createMDRAction(long actionId)
Creates a new m d r action with the primary key. Does not add the m d r action to the database.

Specified by:
createMDRAction in interface MDRActionLocalService
Parameters:
actionId - the primary key for the new m d r action
Returns:
the new m d r action

deleteMDRAction

@Indexable(type=DELETE)
public MDRAction deleteMDRAction(long actionId)
                          throws PortalException
Deletes the m d r action with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteMDRAction in interface MDRActionLocalService
Parameters:
actionId - the primary key of the m d r action
Returns:
the m d r action that was removed
Throws:
PortalException - if a m d r action with the primary key could not be found

deleteMDRAction

@Indexable(type=DELETE)
public MDRAction deleteMDRAction(MDRAction mdrAction)
Deletes the m d r action from the database. Also notifies the appropriate model listeners.

Specified by:
deleteMDRAction in interface MDRActionLocalService
Parameters:
mdrAction - the m d r action
Returns:
the m d r action that was removed

dynamicQuery

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

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

fetchMDRAction

public MDRAction fetchMDRAction(long actionId)
Specified by:
fetchMDRAction in interface MDRActionLocalService

fetchMDRActionByUuidAndGroupId

public MDRAction fetchMDRActionByUuidAndGroupId(String uuid,
                                                long groupId)
Returns the m d r action matching the UUID and group.

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

getMDRAction

public MDRAction getMDRAction(long actionId)
                       throws PortalException
Returns the m d r action with the primary key.

Specified by:
getMDRAction in interface MDRActionLocalService
Parameters:
actionId - the primary key of the m d r action
Returns:
the m d r action
Throws:
PortalException - if a m d r action with the primary key could not be found

getActionableDynamicQuery

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

initActionableDynamicQuery

protected void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery)

getExportActionableDynamicQuery

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

deletePersistedModel

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

getPersistedModel

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

getMDRActionsByUuidAndCompanyId

public List<MDRAction> getMDRActionsByUuidAndCompanyId(String uuid,
                                                       long companyId)
Returns all the m d r actions matching the UUID and company.

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

getMDRActionsByUuidAndCompanyId

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

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

getMDRActionByUuidAndGroupId

public MDRAction getMDRActionByUuidAndGroupId(String uuid,
                                              long groupId)
                                       throws PortalException
Returns the m d r action matching the UUID and group.

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

getMDRActions

public List<MDRAction> getMDRActions(int start,
                                     int end)
Returns a range of all the m d r actions.

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 MDRActionModelImpl. 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:
getMDRActions in interface MDRActionLocalService
Parameters:
start - the lower bound of the range of m d r actions
end - the upper bound of the range of m d r actions (not inclusive)
Returns:
the range of m d r actions

getMDRActionsCount

public int getMDRActionsCount()
Returns the number of m d r actions.

Specified by:
getMDRActionsCount in interface MDRActionLocalService
Returns:
the number of m d r actions

updateMDRAction

@Indexable(type=REINDEX)
public MDRAction updateMDRAction(MDRAction mdrAction)
Updates the m d r action in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateMDRAction in interface MDRActionLocalService
Parameters:
mdrAction - the m d r action
Returns:
the m d r action that was updated

getMDRActionLocalService

public MDRActionLocalService getMDRActionLocalService()
Returns the m d r action local service.

Returns:
the m d r action local service

setMDRActionLocalService

public void setMDRActionLocalService(MDRActionLocalService mdrActionLocalService)
Sets the m d r action local service.

Parameters:
mdrActionLocalService - the m d r action local service

getMDRActionService

public MDRActionService getMDRActionService()
Returns the m d r action remote service.

Returns:
the m d r action remote service

setMDRActionService

public void setMDRActionService(MDRActionService mdrActionService)
Sets the m d r action remote service.

Parameters:
mdrActionService - the m d r action remote service

getMDRActionPersistence

public MDRActionPersistence getMDRActionPersistence()
Returns the m d r action persistence.

Returns:
the m d r action persistence

setMDRActionPersistence

public void setMDRActionPersistence(MDRActionPersistence mdrActionPersistence)
Sets the m d r action persistence.

Parameters:
mdrActionPersistence - the m d r action persistence

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

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

getMDRRuleGroupInstanceLocalService

public MDRRuleGroupInstanceLocalService getMDRRuleGroupInstanceLocalService()
Returns the m d r rule group instance local service.

Returns:
the m d r rule group instance local service

setMDRRuleGroupInstanceLocalService

public void setMDRRuleGroupInstanceLocalService(MDRRuleGroupInstanceLocalService mdrRuleGroupInstanceLocalService)
Sets the m d r rule group instance local service.

Parameters:
mdrRuleGroupInstanceLocalService - the m d r rule group instance local service

getMDRRuleGroupInstanceService

public MDRRuleGroupInstanceService getMDRRuleGroupInstanceService()
Returns the m d r rule group instance remote service.

Returns:
the m d r rule group instance remote service

setMDRRuleGroupInstanceService

public void setMDRRuleGroupInstanceService(MDRRuleGroupInstanceService mdrRuleGroupInstanceService)
Sets the m d r rule group instance remote service.

Parameters:
mdrRuleGroupInstanceService - the m d r rule group instance remote service

getMDRRuleGroupInstancePersistence

public MDRRuleGroupInstancePersistence getMDRRuleGroupInstancePersistence()
Returns the m d r rule group instance persistence.

Returns:
the m d r rule group instance persistence

setMDRRuleGroupInstancePersistence

public void setMDRRuleGroupInstancePersistence(MDRRuleGroupInstancePersistence mdrRuleGroupInstancePersistence)
Sets the m d r rule group instance persistence.

Parameters:
mdrRuleGroupInstancePersistence - the m d r rule group instance 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 MDRActionLocalService
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 MDRActionLocalService
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-m6