Liferay 7.0-ce-b4

com.liferay.portlet.trash.service
Class TrashVersionLocalServiceWrapper

java.lang.Object
  extended by com.liferay.portlet.trash.service.TrashVersionLocalServiceWrapper
All Implemented Interfaces:
BaseLocalService, PersistedModelLocalService, ServiceWrapper<TrashVersionLocalService>, TrashVersionLocalService

@ProviderType
public class TrashVersionLocalServiceWrapper
extends Object
implements TrashVersionLocalService, ServiceWrapper<TrashVersionLocalService>

Provides a wrapper for TrashVersionLocalService.

See Also:
TrashVersionLocalService

Constructor Summary
TrashVersionLocalServiceWrapper(TrashVersionLocalService trashVersionLocalService)
           
 
Method Summary
 TrashVersion addTrashVersion(long trashEntryId, String className, long classPK, int status, UnicodeProperties typeSettingsProperties)
           
 TrashVersion addTrashVersion(TrashVersion trashVersion)
          Adds the trash version to the database.
 TrashVersion createTrashVersion(long versionId)
          Creates a new trash version with the primary key.
 PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
 TrashVersion deleteTrashVersion(long versionId)
          Deletes the trash version with the primary key from the database.
 TrashVersion deleteTrashVersion(String className, long classPK)
           
 TrashVersion deleteTrashVersion(TrashVersion trashVersion)
          Deletes the trash version from the database.
 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.
 TrashVersion fetchTrashVersion(long versionId)
           
 TrashVersion fetchVersion(long entryId, String className, long classPK)
          Deprecated. As of 7.0.0, replaced by fetchVersion(String, long)
 TrashVersion fetchVersion(String className, long classPK)
           
 ActionableDynamicQuery getActionableDynamicQuery()
           
 IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
           
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 TrashVersion getTrashVersion(long versionId)
          Returns the trash version with the primary key.
 List<TrashVersion> getTrashVersions(int start, int end)
          Returns a range of all the trash versions.
 int getTrashVersionsCount()
          Returns the number of trash versions.
 List<TrashVersion> getVersions(long entryId)
           
 List<TrashVersion> getVersions(long entryId, String className)
           
 TrashVersionLocalService getWrappedService()
           
 void setWrappedService(TrashVersionLocalService trashVersionLocalService)
           
 TrashVersion updateTrashVersion(TrashVersion trashVersion)
          Updates the trash version in the database or adds it if it does not yet exist.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrashVersionLocalServiceWrapper

public TrashVersionLocalServiceWrapper(TrashVersionLocalService trashVersionLocalService)
Method Detail

addTrashVersion

public TrashVersion addTrashVersion(long trashEntryId,
                                    String className,
                                    long classPK,
                                    int status,
                                    UnicodeProperties typeSettingsProperties)
Specified by:
addTrashVersion in interface TrashVersionLocalService

addTrashVersion

public TrashVersion addTrashVersion(TrashVersion trashVersion)
Adds the trash version to the database. Also notifies the appropriate model listeners.

Specified by:
addTrashVersion in interface TrashVersionLocalService
Parameters:
trashVersion - the trash version
Returns:
the trash version that was added

createTrashVersion

public TrashVersion createTrashVersion(long versionId)
Creates a new trash version with the primary key. Does not add the trash version to the database.

Specified by:
createTrashVersion in interface TrashVersionLocalService
Parameters:
versionId - the primary key for the new trash version
Returns:
the new trash version

deletePersistedModel

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

deleteTrashVersion

public TrashVersion deleteTrashVersion(String className,
                                       long classPK)
Specified by:
deleteTrashVersion in interface TrashVersionLocalService

deleteTrashVersion

public TrashVersion deleteTrashVersion(TrashVersion trashVersion)
Deletes the trash version from the database. Also notifies the appropriate model listeners.

Specified by:
deleteTrashVersion in interface TrashVersionLocalService
Parameters:
trashVersion - the trash version
Returns:
the trash version that was removed

deleteTrashVersion

public TrashVersion deleteTrashVersion(long versionId)
                                throws PortalException
Deletes the trash version with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteTrashVersion in interface TrashVersionLocalService
Parameters:
versionId - the primary key of the trash version
Returns:
the trash version that was removed
Throws:
PortalException - if a trash version with the primary key could not be found

dynamicQuery

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

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 TrashVersionLocalService
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 com.liferay.portlet.trash.model.impl.TrashVersionModelImpl. 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 TrashVersionLocalService
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 com.liferay.portlet.trash.model.impl.TrashVersionModelImpl. 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 TrashVersionLocalService
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 TrashVersionLocalService
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 TrashVersionLocalService
Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchTrashVersion

public TrashVersion fetchTrashVersion(long versionId)
Specified by:
fetchTrashVersion in interface TrashVersionLocalService

fetchVersion

public TrashVersion fetchVersion(String className,
                                 long classPK)
Specified by:
fetchVersion in interface TrashVersionLocalService

fetchVersion

@Deprecated
public TrashVersion fetchVersion(long entryId,
                                            String className,
                                            long classPK)
Deprecated. As of 7.0.0, replaced by fetchVersion(String, long)

Specified by:
fetchVersion in interface TrashVersionLocalService

getActionableDynamicQuery

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

getIndexableActionableDynamicQuery

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

getOSGiServiceIdentifier

public String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Specified by:
getOSGiServiceIdentifier in interface TrashVersionLocalService
Returns:
the OSGi service identifier

getPersistedModel

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

getTrashVersion

public TrashVersion getTrashVersion(long versionId)
                             throws PortalException
Returns the trash version with the primary key.

Specified by:
getTrashVersion in interface TrashVersionLocalService
Parameters:
versionId - the primary key of the trash version
Returns:
the trash version
Throws:
PortalException - if a trash version with the primary key could not be found

getTrashVersions

public List<TrashVersion> getTrashVersions(int start,
                                           int end)
Returns a range of all the trash versions.

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 com.liferay.portlet.trash.model.impl.TrashVersionModelImpl. 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:
getTrashVersions in interface TrashVersionLocalService
Parameters:
start - the lower bound of the range of trash versions
end - the upper bound of the range of trash versions (not inclusive)
Returns:
the range of trash versions

getTrashVersionsCount

public int getTrashVersionsCount()
Returns the number of trash versions.

Specified by:
getTrashVersionsCount in interface TrashVersionLocalService
Returns:
the number of trash versions

getVersions

public List<TrashVersion> getVersions(long entryId)
Specified by:
getVersions in interface TrashVersionLocalService

getVersions

public List<TrashVersion> getVersions(long entryId,
                                      String className)
Specified by:
getVersions in interface TrashVersionLocalService

updateTrashVersion

public TrashVersion updateTrashVersion(TrashVersion trashVersion)
Updates the trash version in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateTrashVersion in interface TrashVersionLocalService
Parameters:
trashVersion - the trash version
Returns:
the trash version that was updated

getWrappedService

public TrashVersionLocalService getWrappedService()
Specified by:
getWrappedService in interface ServiceWrapper<TrashVersionLocalService>

setWrappedService

public void setWrappedService(TrashVersionLocalService trashVersionLocalService)
Specified by:
setWrappedService in interface ServiceWrapper<TrashVersionLocalService>

Liferay 7.0-ce-b4