Liferay 7.0-ce-b4

com.liferay.portal.service.base
Class RecentLayoutBranchLocalServiceBaseImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portal.service.base.RecentLayoutBranchLocalServiceBaseImpl
All Implemented Interfaces:
IdentifiableOSGiService, BaseLocalService, PersistedModelLocalService, RecentLayoutBranchLocalService
Direct Known Subclasses:
RecentLayoutBranchLocalServiceImpl

@ProviderType
public abstract class RecentLayoutBranchLocalServiceBaseImpl
extends BaseLocalServiceImpl
implements RecentLayoutBranchLocalService, IdentifiableOSGiService

Provides the base implementation for the recent layout branch 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 RecentLayoutBranchLocalServiceImpl.

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

Field Summary
protected  CounterLocalService counterLocalService
           
protected  LayoutBranchLocalService layoutBranchLocalService
           
protected  LayoutBranchPersistence layoutBranchPersistence
           
protected  PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry
           
protected  RecentLayoutBranchLocalService recentLayoutBranchLocalService
           
protected  RecentLayoutBranchPersistence recentLayoutBranchPersistence
           
 
Constructor Summary
RecentLayoutBranchLocalServiceBaseImpl()
           
 
Method Summary
 RecentLayoutBranch addRecentLayoutBranch(RecentLayoutBranch recentLayoutBranch)
          Adds the recent layout branch to the database.
 void afterPropertiesSet()
           
 RecentLayoutBranch createRecentLayoutBranch(long recentLayoutBranchId)
          Creates a new recent layout branch with the primary key.
 PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
 RecentLayoutBranch deleteRecentLayoutBranch(long recentLayoutBranchId)
          Deletes the recent layout branch with the primary key from the database.
 RecentLayoutBranch deleteRecentLayoutBranch(RecentLayoutBranch recentLayoutBranch)
          Deletes the recent layout branch from the database.
 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.
 RecentLayoutBranch fetchRecentLayoutBranch(long recentLayoutBranchId)
           
 ActionableDynamicQuery getActionableDynamicQuery()
           
 CounterLocalService getCounterLocalService()
          Returns the counter local service.
 IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
           
 LayoutBranchLocalService getLayoutBranchLocalService()
          Returns the layout branch local service.
 LayoutBranchPersistence getLayoutBranchPersistence()
          Returns the layout branch persistence.
protected  Class<?> getModelClass()
           
protected  String getModelClassName()
           
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 RecentLayoutBranch getRecentLayoutBranch(long recentLayoutBranchId)
          Returns the recent layout branch with the primary key.
 RecentLayoutBranchLocalService getRecentLayoutBranchLocalService()
          Returns the recent layout branch local service.
 RecentLayoutBranchPersistence getRecentLayoutBranchPersistence()
          Returns the recent layout branch persistence.
 List<RecentLayoutBranch> getRecentLayoutBranchs(int start, int end)
          Returns a range of all the recent layout branchs.
 int getRecentLayoutBranchsCount()
          Returns the number of recent layout branchs.
protected  void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery)
           
protected  void runSQL(String sql)
          Performs a SQL query.
 void setCounterLocalService(CounterLocalService counterLocalService)
          Sets the counter local service.
 void setLayoutBranchLocalService(LayoutBranchLocalService layoutBranchLocalService)
          Sets the layout branch local service.
 void setLayoutBranchPersistence(LayoutBranchPersistence layoutBranchPersistence)
          Sets the layout branch persistence.
 void setRecentLayoutBranchLocalService(RecentLayoutBranchLocalService recentLayoutBranchLocalService)
          Sets the recent layout branch local service.
 void setRecentLayoutBranchPersistence(RecentLayoutBranchPersistence recentLayoutBranchPersistence)
          Sets the recent layout branch persistence.
 RecentLayoutBranch updateRecentLayoutBranch(RecentLayoutBranch recentLayoutBranch)
          Updates the recent layout branch 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.portal.service.RecentLayoutBranchLocalService
addRecentLayoutBranch, deleteRecentLayoutBranches, deleteUserRecentLayoutBranches, fetchRecentLayoutBranch
 

Field Detail

recentLayoutBranchLocalService

@BeanReference(type=RecentLayoutBranchLocalService.class)
protected RecentLayoutBranchLocalService recentLayoutBranchLocalService

recentLayoutBranchPersistence

@BeanReference(type=RecentLayoutBranchPersistence.class)
protected RecentLayoutBranchPersistence recentLayoutBranchPersistence

counterLocalService

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

layoutBranchLocalService

@BeanReference(type=LayoutBranchLocalService.class)
protected LayoutBranchLocalService layoutBranchLocalService

layoutBranchPersistence

@BeanReference(type=LayoutBranchPersistence.class)
protected LayoutBranchPersistence layoutBranchPersistence

persistedModelLocalServiceRegistry

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

RecentLayoutBranchLocalServiceBaseImpl

public RecentLayoutBranchLocalServiceBaseImpl()
Method Detail

addRecentLayoutBranch

@Indexable(type=REINDEX)
public RecentLayoutBranch addRecentLayoutBranch(RecentLayoutBranch recentLayoutBranch)
Adds the recent layout branch to the database. Also notifies the appropriate model listeners.

Specified by:
addRecentLayoutBranch in interface RecentLayoutBranchLocalService
Parameters:
recentLayoutBranch - the recent layout branch
Returns:
the recent layout branch that was added

createRecentLayoutBranch

public RecentLayoutBranch createRecentLayoutBranch(long recentLayoutBranchId)
Creates a new recent layout branch with the primary key. Does not add the recent layout branch to the database.

Specified by:
createRecentLayoutBranch in interface RecentLayoutBranchLocalService
Parameters:
recentLayoutBranchId - the primary key for the new recent layout branch
Returns:
the new recent layout branch

deleteRecentLayoutBranch

@Indexable(type=DELETE)
public RecentLayoutBranch deleteRecentLayoutBranch(long recentLayoutBranchId)
                                            throws PortalException
Deletes the recent layout branch with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteRecentLayoutBranch in interface RecentLayoutBranchLocalService
Parameters:
recentLayoutBranchId - the primary key of the recent layout branch
Returns:
the recent layout branch that was removed
Throws:
PortalException - if a recent layout branch with the primary key could not be found

deleteRecentLayoutBranch

@Indexable(type=DELETE)
public RecentLayoutBranch deleteRecentLayoutBranch(RecentLayoutBranch recentLayoutBranch)
Deletes the recent layout branch from the database. Also notifies the appropriate model listeners.

Specified by:
deleteRecentLayoutBranch in interface RecentLayoutBranchLocalService
Parameters:
recentLayoutBranch - the recent layout branch
Returns:
the recent layout branch that was removed

dynamicQuery

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

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

fetchRecentLayoutBranch

public RecentLayoutBranch fetchRecentLayoutBranch(long recentLayoutBranchId)
Specified by:
fetchRecentLayoutBranch in interface RecentLayoutBranchLocalService

getRecentLayoutBranch

public RecentLayoutBranch getRecentLayoutBranch(long recentLayoutBranchId)
                                         throws PortalException
Returns the recent layout branch with the primary key.

Specified by:
getRecentLayoutBranch in interface RecentLayoutBranchLocalService
Parameters:
recentLayoutBranchId - the primary key of the recent layout branch
Returns:
the recent layout branch
Throws:
PortalException - if a recent layout branch with the primary key could not be found

getActionableDynamicQuery

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

getIndexableActionableDynamicQuery

public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
Specified by:
getIndexableActionableDynamicQuery in interface RecentLayoutBranchLocalService

initActionableDynamicQuery

protected void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery)

deletePersistedModel

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

getPersistedModel

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

getRecentLayoutBranchs

public List<RecentLayoutBranch> getRecentLayoutBranchs(int start,
                                                       int end)
Returns a range of all the recent layout branchs.

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 RecentLayoutBranchModelImpl. 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:
getRecentLayoutBranchs in interface RecentLayoutBranchLocalService
Parameters:
start - the lower bound of the range of recent layout branchs
end - the upper bound of the range of recent layout branchs (not inclusive)
Returns:
the range of recent layout branchs

getRecentLayoutBranchsCount

public int getRecentLayoutBranchsCount()
Returns the number of recent layout branchs.

Specified by:
getRecentLayoutBranchsCount in interface RecentLayoutBranchLocalService
Returns:
the number of recent layout branchs

updateRecentLayoutBranch

@Indexable(type=REINDEX)
public RecentLayoutBranch updateRecentLayoutBranch(RecentLayoutBranch recentLayoutBranch)
Updates the recent layout branch in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateRecentLayoutBranch in interface RecentLayoutBranchLocalService
Parameters:
recentLayoutBranch - the recent layout branch
Returns:
the recent layout branch that was updated

getRecentLayoutBranchLocalService

public RecentLayoutBranchLocalService getRecentLayoutBranchLocalService()
Returns the recent layout branch local service.

Returns:
the recent layout branch local service

setRecentLayoutBranchLocalService

public void setRecentLayoutBranchLocalService(RecentLayoutBranchLocalService recentLayoutBranchLocalService)
Sets the recent layout branch local service.

Parameters:
recentLayoutBranchLocalService - the recent layout branch local service

getRecentLayoutBranchPersistence

public RecentLayoutBranchPersistence getRecentLayoutBranchPersistence()
Returns the recent layout branch persistence.

Returns:
the recent layout branch persistence

setRecentLayoutBranchPersistence

public void setRecentLayoutBranchPersistence(RecentLayoutBranchPersistence recentLayoutBranchPersistence)
Sets the recent layout branch persistence.

Parameters:
recentLayoutBranchPersistence - the recent layout branch 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

getLayoutBranchLocalService

public LayoutBranchLocalService getLayoutBranchLocalService()
Returns the layout branch local service.

Returns:
the layout branch local service

setLayoutBranchLocalService

public void setLayoutBranchLocalService(LayoutBranchLocalService layoutBranchLocalService)
Sets the layout branch local service.

Parameters:
layoutBranchLocalService - the layout branch local service

getLayoutBranchPersistence

public LayoutBranchPersistence getLayoutBranchPersistence()
Returns the layout branch persistence.

Returns:
the layout branch persistence

setLayoutBranchPersistence

public void setLayoutBranchPersistence(LayoutBranchPersistence layoutBranchPersistence)
Sets the layout branch persistence.

Parameters:
layoutBranchPersistence - the layout branch persistence

afterPropertiesSet

public void afterPropertiesSet()

destroy

public void destroy()

getOSGiServiceIdentifier

public String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Specified by:
getOSGiServiceIdentifier in interface IdentifiableOSGiService
Specified by:
getOSGiServiceIdentifier in interface RecentLayoutBranchLocalService
Returns:
the OSGi service identifier

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-b4