Liferay 6.2-ce-ga5

com.liferay.portlet.trash.service.base
Class TrashEntryLocalServiceBaseImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portlet.trash.service.base.TrashEntryLocalServiceBaseImpl
All Implemented Interfaces:
IdentifiableBean, BaseLocalService, PersistedModelLocalService, TrashEntryLocalService
Direct Known Subclasses:
TrashEntryLocalServiceImpl

public abstract class TrashEntryLocalServiceBaseImpl
extends BaseLocalServiceImpl
implements TrashEntryLocalService, IdentifiableBean

Provides the base implementation for the trash entry 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 TrashEntryLocalServiceImpl.

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

Field Summary
protected  CounterLocalService counterLocalService
           
protected  GroupFinder groupFinder
           
protected  GroupLocalService groupLocalService
           
protected  GroupPersistence groupPersistence
           
protected  GroupService groupService
           
protected  PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry
           
protected  ResourceLocalService resourceLocalService
           
protected  SystemEventLocalService systemEventLocalService
           
protected  SystemEventPersistence systemEventPersistence
           
protected  TrashEntryLocalService trashEntryLocalService
           
protected  TrashEntryPersistence trashEntryPersistence
           
protected  TrashEntryService trashEntryService
           
protected  TrashVersionLocalService trashVersionLocalService
           
protected  TrashVersionPersistence trashVersionPersistence
           
protected  UserFinder userFinder
           
protected  UserLocalService userLocalService
           
protected  UserPersistence userPersistence
           
protected  UserService userService
           
 
Fields inherited from class com.liferay.portal.service.BaseLocalServiceImpl
layoutPersistence
 
Constructor Summary
TrashEntryLocalServiceBaseImpl()
           
 
Method Summary
 TrashEntry addTrashEntry(TrashEntry trashEntry)
          Adds the trash entry to the database.
 void afterPropertiesSet()
           
 TrashEntry createTrashEntry(long entryId)
          Creates a new trash entry with the primary key.
 TrashEntry deleteTrashEntry(long entryId)
          Deletes the trash entry with the primary key from the database.
 TrashEntry deleteTrashEntry(TrashEntry trashEntry)
          Deletes the trash entry from the database.
 void destroy()
           
 DynamicQuery dynamicQuery()
           
 List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
 List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator 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 that match the dynamic query.
 long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows that match the dynamic query.
 TrashEntry fetchTrashEntry(long entryId)
           
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 CounterLocalService getCounterLocalService()
          Returns the counter local service.
 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.
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.
 List<TrashEntry> getTrashEntries(int start, int end)
          Returns a range of all the trash entries.
 int getTrashEntriesCount()
          Returns the number of trash entries.
 TrashEntry getTrashEntry(long entryId)
          Returns the trash entry with the primary key.
 TrashEntryLocalService getTrashEntryLocalService()
          Returns the trash entry local service.
 TrashEntryPersistence getTrashEntryPersistence()
          Returns the trash entry persistence.
 TrashEntryService getTrashEntryService()
          Returns the trash entry remote service.
 TrashVersionLocalService getTrashVersionLocalService()
          Returns the trash version local service.
 TrashVersionPersistence getTrashVersionPersistence()
          Returns the trash version 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 runSQL(String sql)
          Performs an SQL query.
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setCounterLocalService(CounterLocalService counterLocalService)
          Sets the counter local 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 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 setTrashEntryLocalService(TrashEntryLocalService trashEntryLocalService)
          Sets the trash entry local service.
 void setTrashEntryPersistence(TrashEntryPersistence trashEntryPersistence)
          Sets the trash entry persistence.
 void setTrashEntryService(TrashEntryService trashEntryService)
          Sets the trash entry remote service.
 void setTrashVersionLocalService(TrashVersionLocalService trashVersionLocalService)
          Sets the trash version local service.
 void setTrashVersionPersistence(TrashVersionPersistence trashVersionPersistence)
          Sets the trash version 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.
 TrashEntry updateTrashEntry(TrashEntry trashEntry)
          Updates the trash entry in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.BaseLocalServiceImpl
getClassLoader, getLayoutURL, getLayoutURL
 
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.trash.service.TrashEntryLocalService
addTrashEntry, checkEntries, deleteEntries, deleteEntry, deleteEntry, deleteEntry, fetchEntry, fetchEntry, getEntries, getEntries, getEntries, getEntries, getEntriesCount, getEntry, getEntry, search
 

Field Detail

trashEntryLocalService

@BeanReference(type=TrashEntryLocalService.class)
protected TrashEntryLocalService trashEntryLocalService

trashEntryService

@BeanReference(type=TrashEntryService.class)
protected TrashEntryService trashEntryService

trashEntryPersistence

@BeanReference(type=TrashEntryPersistence.class)
protected TrashEntryPersistence trashEntryPersistence

trashVersionLocalService

@BeanReference(type=TrashVersionLocalService.class)
protected TrashVersionLocalService trashVersionLocalService

trashVersionPersistence

@BeanReference(type=TrashVersionPersistence.class)
protected TrashVersionPersistence trashVersionPersistence

counterLocalService

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

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

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

persistedModelLocalServiceRegistry

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

TrashEntryLocalServiceBaseImpl

public TrashEntryLocalServiceBaseImpl()
Method Detail

addTrashEntry

@Indexable(type=REINDEX)
public TrashEntry addTrashEntry(TrashEntry trashEntry)
                         throws SystemException
Adds the trash entry to the database. Also notifies the appropriate model listeners.

Specified by:
addTrashEntry in interface TrashEntryLocalService
Parameters:
trashEntry - the trash entry
Returns:
the trash entry that was added
Throws:
SystemException - if a system exception occurred

createTrashEntry

public TrashEntry createTrashEntry(long entryId)
Creates a new trash entry with the primary key. Does not add the trash entry to the database.

Specified by:
createTrashEntry in interface TrashEntryLocalService
Parameters:
entryId - the primary key for the new trash entry
Returns:
the new trash entry

deleteTrashEntry

@Indexable(type=DELETE)
public TrashEntry deleteTrashEntry(long entryId)
                            throws PortalException,
                                   SystemException
Deletes the trash entry with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteTrashEntry in interface TrashEntryLocalService
Parameters:
entryId - the primary key of the trash entry
Returns:
the trash entry that was removed
Throws:
PortalException - if a trash entry with the primary key could not be found
SystemException - if a system exception occurred

deleteTrashEntry

@Indexable(type=DELETE)
public TrashEntry deleteTrashEntry(TrashEntry trashEntry)
                            throws SystemException
Deletes the trash entry from the database. Also notifies the appropriate model listeners.

Specified by:
deleteTrashEntry in interface TrashEntryLocalService
Parameters:
trashEntry - the trash entry
Returns:
the trash entry that was removed
Throws:
SystemException - if a system exception occurred

dynamicQuery

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

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery)
                  throws SystemException
Performs a dynamic query on the database and returns the matching rows.

Specified by:
dynamicQuery in interface TrashEntryLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end)
                  throws SystemException
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 TrashEntryModelImpl. 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 TrashEntryLocalService
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
Throws:
SystemException - if a system exception occurred

dynamicQuery

public List dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end,
                         OrderByComparator orderByComparator)
                  throws SystemException
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 TrashEntryModelImpl. 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 TrashEntryLocalService
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
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Returns the number of rows that match the dynamic query.

Specified by:
dynamicQueryCount in interface TrashEntryLocalService
Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

public long dynamicQueryCount(DynamicQuery dynamicQuery,
                              Projection projection)
                       throws SystemException
Returns the number of rows that match the dynamic query.

Specified by:
dynamicQueryCount in interface TrashEntryLocalService
Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

fetchTrashEntry

public TrashEntry fetchTrashEntry(long entryId)
                           throws SystemException
Specified by:
fetchTrashEntry in interface TrashEntryLocalService
Throws:
SystemException

getTrashEntry

public TrashEntry getTrashEntry(long entryId)
                         throws PortalException,
                                SystemException
Returns the trash entry with the primary key.

Specified by:
getTrashEntry in interface TrashEntryLocalService
Parameters:
entryId - the primary key of the trash entry
Returns:
the trash entry
Throws:
PortalException - if a trash entry with the primary key could not be found
SystemException - if a system exception occurred

getPersistedModel

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

getTrashEntries

public List<TrashEntry> getTrashEntries(int start,
                                        int end)
                                 throws SystemException
Returns a range of all the trash entries.

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 TrashEntryModelImpl. 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:
getTrashEntries in interface TrashEntryLocalService
Parameters:
start - the lower bound of the range of trash entries
end - the upper bound of the range of trash entries (not inclusive)
Returns:
the range of trash entries
Throws:
SystemException - if a system exception occurred

getTrashEntriesCount

public int getTrashEntriesCount()
                         throws SystemException
Returns the number of trash entries.

Specified by:
getTrashEntriesCount in interface TrashEntryLocalService
Returns:
the number of trash entries
Throws:
SystemException - if a system exception occurred

updateTrashEntry

@Indexable(type=REINDEX)
public TrashEntry updateTrashEntry(TrashEntry trashEntry)
                            throws SystemException
Updates the trash entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateTrashEntry in interface TrashEntryLocalService
Parameters:
trashEntry - the trash entry
Returns:
the trash entry that was updated
Throws:
SystemException - if a system exception occurred

getTrashEntryLocalService

public TrashEntryLocalService getTrashEntryLocalService()
Returns the trash entry local service.

Returns:
the trash entry local service

setTrashEntryLocalService

public void setTrashEntryLocalService(TrashEntryLocalService trashEntryLocalService)
Sets the trash entry local service.

Parameters:
trashEntryLocalService - the trash entry local service

getTrashEntryService

public TrashEntryService getTrashEntryService()
Returns the trash entry remote service.

Returns:
the trash entry remote service

setTrashEntryService

public void setTrashEntryService(TrashEntryService trashEntryService)
Sets the trash entry remote service.

Parameters:
trashEntryService - the trash entry remote service

getTrashEntryPersistence

public TrashEntryPersistence getTrashEntryPersistence()
Returns the trash entry persistence.

Returns:
the trash entry persistence

setTrashEntryPersistence

public void setTrashEntryPersistence(TrashEntryPersistence trashEntryPersistence)
Sets the trash entry persistence.

Parameters:
trashEntryPersistence - the trash entry persistence

getTrashVersionLocalService

public TrashVersionLocalService getTrashVersionLocalService()
Returns the trash version local service.

Returns:
the trash version local service

setTrashVersionLocalService

public void setTrashVersionLocalService(TrashVersionLocalService trashVersionLocalService)
Sets the trash version local service.

Parameters:
trashVersionLocalService - the trash version local service

getTrashVersionPersistence

public TrashVersionPersistence getTrashVersionPersistence()
Returns the trash version persistence.

Returns:
the trash version persistence

setTrashVersionPersistence

public void setTrashVersionPersistence(TrashVersionPersistence trashVersionPersistence)
Sets the trash version persistence.

Parameters:
trashVersionPersistence - the trash version 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

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

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

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 TrashEntryLocalService
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 TrashEntryLocalService
Parameters:
beanIdentifier - the Spring bean ID for this bean

getModelClass

protected Class<?> getModelClass()

getModelClassName

protected String getModelClassName()

runSQL

protected void runSQL(String sql)
               throws SystemException
Performs an SQL query.

Parameters:
sql - the sql query
Throws:
SystemException

Liferay 6.2-ce-ga5