Liferay 7.0-ce-b4

com.liferay.portlet.documentlibrary.service.base
Class DLSyncEventLocalServiceBaseImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portlet.documentlibrary.service.base.DLSyncEventLocalServiceBaseImpl
All Implemented Interfaces:
IdentifiableOSGiService, BaseLocalService, PersistedModelLocalService, DLSyncEventLocalService
Direct Known Subclasses:
DLSyncEventLocalServiceImpl

@ProviderType
public abstract class DLSyncEventLocalServiceBaseImpl
extends BaseLocalServiceImpl
implements DLSyncEventLocalService, IdentifiableOSGiService

Provides the base implementation for the d l sync event 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 DLSyncEventLocalServiceImpl.

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

Field Summary
protected  CounterLocalService counterLocalService
           
protected  DLSyncEventLocalService dlSyncEventLocalService
           
protected  DLSyncEventPersistence dlSyncEventPersistence
           
protected  PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry
           
 
Constructor Summary
DLSyncEventLocalServiceBaseImpl()
           
 
Method Summary
 DLSyncEvent addDLSyncEvent(DLSyncEvent dlSyncEvent)
          Adds the d l sync event to the database.
 void afterPropertiesSet()
           
 DLSyncEvent createDLSyncEvent(long syncEventId)
          Creates a new d l sync event with the primary key.
 DLSyncEvent deleteDLSyncEvent(DLSyncEvent dlSyncEvent)
          Deletes the d l sync event from the database.
 DLSyncEvent deleteDLSyncEvent(long syncEventId)
          Deletes the d l sync event 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.
 DLSyncEvent fetchDLSyncEvent(long syncEventId)
           
 ActionableDynamicQuery getActionableDynamicQuery()
           
 CounterLocalService getCounterLocalService()
          Returns the counter local service.
 DLSyncEvent getDLSyncEvent(long syncEventId)
          Returns the d l sync event with the primary key.
 DLSyncEventLocalService getDLSyncEventLocalService()
          Returns the d l sync event local service.
 DLSyncEventPersistence getDLSyncEventPersistence()
          Returns the d l sync event persistence.
 List<DLSyncEvent> getDLSyncEvents(int start, int end)
          Returns a range of all the d l sync events.
 int getDLSyncEventsCount()
          Returns the number of d l sync events.
 IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
           
protected  Class<?> getModelClass()
           
protected  String getModelClassName()
           
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
protected  void initActionableDynamicQuery(ActionableDynamicQuery actionableDynamicQuery)
           
protected  void runSQL(String sql)
          Performs a SQL query.
 void setCounterLocalService(CounterLocalService counterLocalService)
          Sets the counter local service.
 void setDLSyncEventLocalService(DLSyncEventLocalService dlSyncEventLocalService)
          Sets the d l sync event local service.
 void setDLSyncEventPersistence(DLSyncEventPersistence dlSyncEventPersistence)
          Sets the d l sync event persistence.
 DLSyncEvent updateDLSyncEvent(DLSyncEvent dlSyncEvent)
          Updates the d l sync event 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.documentlibrary.service.DLSyncEventLocalService
addDLSyncEvent, deleteDLSyncEvents, getDLSyncEvents, getLatestDLSyncEvents
 

Field Detail

dlSyncEventLocalService

@BeanReference(type=DLSyncEventLocalService.class)
protected DLSyncEventLocalService dlSyncEventLocalService

dlSyncEventPersistence

@BeanReference(type=DLSyncEventPersistence.class)
protected DLSyncEventPersistence dlSyncEventPersistence

counterLocalService

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

persistedModelLocalServiceRegistry

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

DLSyncEventLocalServiceBaseImpl

public DLSyncEventLocalServiceBaseImpl()
Method Detail

addDLSyncEvent

@Indexable(type=REINDEX)
public DLSyncEvent addDLSyncEvent(DLSyncEvent dlSyncEvent)
Adds the d l sync event to the database. Also notifies the appropriate model listeners.

Specified by:
addDLSyncEvent in interface DLSyncEventLocalService
Parameters:
dlSyncEvent - the d l sync event
Returns:
the d l sync event that was added

createDLSyncEvent

public DLSyncEvent createDLSyncEvent(long syncEventId)
Creates a new d l sync event with the primary key. Does not add the d l sync event to the database.

Specified by:
createDLSyncEvent in interface DLSyncEventLocalService
Parameters:
syncEventId - the primary key for the new d l sync event
Returns:
the new d l sync event

deleteDLSyncEvent

@Indexable(type=DELETE)
public DLSyncEvent deleteDLSyncEvent(long syncEventId)
                              throws PortalException
Deletes the d l sync event with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteDLSyncEvent in interface DLSyncEventLocalService
Parameters:
syncEventId - the primary key of the d l sync event
Returns:
the d l sync event that was removed
Throws:
PortalException - if a d l sync event with the primary key could not be found

deleteDLSyncEvent

@Indexable(type=DELETE)
public DLSyncEvent deleteDLSyncEvent(DLSyncEvent dlSyncEvent)
Deletes the d l sync event from the database. Also notifies the appropriate model listeners.

Specified by:
deleteDLSyncEvent in interface DLSyncEventLocalService
Parameters:
dlSyncEvent - the d l sync event
Returns:
the d l sync event that was removed

dynamicQuery

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

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

fetchDLSyncEvent

public DLSyncEvent fetchDLSyncEvent(long syncEventId)
Specified by:
fetchDLSyncEvent in interface DLSyncEventLocalService

getDLSyncEvent

public DLSyncEvent getDLSyncEvent(long syncEventId)
                           throws PortalException
Returns the d l sync event with the primary key.

Specified by:
getDLSyncEvent in interface DLSyncEventLocalService
Parameters:
syncEventId - the primary key of the d l sync event
Returns:
the d l sync event
Throws:
PortalException - if a d l sync event with the primary key could not be found

getActionableDynamicQuery

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

getIndexableActionableDynamicQuery

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

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 DLSyncEventLocalService
Throws:
PortalException

getPersistedModel

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

getDLSyncEvents

public List<DLSyncEvent> getDLSyncEvents(int start,
                                         int end)
Returns a range of all the d l sync events.

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 DLSyncEventModelImpl. 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:
getDLSyncEvents in interface DLSyncEventLocalService
Parameters:
start - the lower bound of the range of d l sync events
end - the upper bound of the range of d l sync events (not inclusive)
Returns:
the range of d l sync events

getDLSyncEventsCount

public int getDLSyncEventsCount()
Returns the number of d l sync events.

Specified by:
getDLSyncEventsCount in interface DLSyncEventLocalService
Returns:
the number of d l sync events

updateDLSyncEvent

@Indexable(type=REINDEX)
public DLSyncEvent updateDLSyncEvent(DLSyncEvent dlSyncEvent)
Updates the d l sync event in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateDLSyncEvent in interface DLSyncEventLocalService
Parameters:
dlSyncEvent - the d l sync event
Returns:
the d l sync event that was updated

getDLSyncEventLocalService

public DLSyncEventLocalService getDLSyncEventLocalService()
Returns the d l sync event local service.

Returns:
the d l sync event local service

setDLSyncEventLocalService

public void setDLSyncEventLocalService(DLSyncEventLocalService dlSyncEventLocalService)
Sets the d l sync event local service.

Parameters:
dlSyncEventLocalService - the d l sync event local service

getDLSyncEventPersistence

public DLSyncEventPersistence getDLSyncEventPersistence()
Returns the d l sync event persistence.

Returns:
the d l sync event persistence

setDLSyncEventPersistence

public void setDLSyncEventPersistence(DLSyncEventPersistence dlSyncEventPersistence)
Sets the d l sync event persistence.

Parameters:
dlSyncEventPersistence - the d l sync event 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

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