Liferay 7.0-ce-b4

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

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

@ProviderType
public abstract class DLFileRankLocalServiceBaseImpl
extends BaseLocalServiceImpl
implements DLFileRankLocalService, IdentifiableOSGiService

Provides the base implementation for the document library file rank 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 DLFileRankLocalServiceImpl.

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

Field Summary
protected  CounterLocalService counterLocalService
           
protected  DLFileRankFinder dlFileRankFinder
           
protected  DLFileRankLocalService dlFileRankLocalService
           
protected  DLFileRankPersistence dlFileRankPersistence
           
protected  DLFolderFinder dlFolderFinder
           
protected  DLFolderLocalService dlFolderLocalService
           
protected  DLFolderPersistence dlFolderPersistence
           
protected  LayoutFinder layoutFinder
           
protected  LayoutLocalService layoutLocalService
           
protected  LayoutPersistence layoutPersistence
           
protected  PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry
           
 
Constructor Summary
DLFileRankLocalServiceBaseImpl()
           
 
Method Summary
 DLFileRank addDLFileRank(DLFileRank dlFileRank)
          Adds the document library file rank to the database.
 void afterPropertiesSet()
           
 DLFileRank createDLFileRank(long fileRankId)
          Creates a new document library file rank with the primary key.
 DLFileRank deleteDLFileRank(DLFileRank dlFileRank)
          Deletes the document library file rank from the database.
 DLFileRank deleteDLFileRank(long fileRankId)
          Deletes the document library file rank 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.
 DLFileRank fetchDLFileRank(long fileRankId)
           
 ActionableDynamicQuery getActionableDynamicQuery()
           
 CounterLocalService getCounterLocalService()
          Returns the counter local service.
 DLFileRank getDLFileRank(long fileRankId)
          Returns the document library file rank with the primary key.
 DLFileRankFinder getDLFileRankFinder()
          Returns the document library file rank finder.
 DLFileRankLocalService getDLFileRankLocalService()
          Returns the document library file rank local service.
 DLFileRankPersistence getDLFileRankPersistence()
          Returns the document library file rank persistence.
 List<DLFileRank> getDLFileRanks(int start, int end)
          Returns a range of all the document library file ranks.
 int getDLFileRanksCount()
          Returns the number of document library file ranks.
 DLFolderFinder getDLFolderFinder()
          Returns the document library folder finder.
 DLFolderLocalService getDLFolderLocalService()
          Returns the document library folder local service.
 DLFolderPersistence getDLFolderPersistence()
          Returns the document library folder persistence.
 IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
           
 LayoutFinder getLayoutFinder()
          Returns the layout finder.
 LayoutLocalService getLayoutLocalService()
          Returns the layout local service.
 LayoutPersistence getLayoutPersistence()
          Returns the layout persistence.
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 setDLFileRankFinder(DLFileRankFinder dlFileRankFinder)
          Sets the document library file rank finder.
 void setDLFileRankLocalService(DLFileRankLocalService dlFileRankLocalService)
          Sets the document library file rank local service.
 void setDLFileRankPersistence(DLFileRankPersistence dlFileRankPersistence)
          Sets the document library file rank persistence.
 void setDLFolderFinder(DLFolderFinder dlFolderFinder)
          Sets the document library folder finder.
 void setDLFolderLocalService(DLFolderLocalService dlFolderLocalService)
          Sets the document library folder local service.
 void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence)
          Sets the document library folder persistence.
 void setLayoutFinder(LayoutFinder layoutFinder)
          Sets the layout finder.
 void setLayoutLocalService(LayoutLocalService layoutLocalService)
          Sets the layout local service.
 void setLayoutPersistence(LayoutPersistence layoutPersistence)
          Sets the layout persistence.
 DLFileRank updateDLFileRank(DLFileRank dlFileRank)
          Updates the document library file rank 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.DLFileRankLocalService
addFileRank, checkFileRanks, deleteFileRank, deleteFileRank, deleteFileRanksByFileEntryId, deleteFileRanksByUserId, disableFileRanks, disableFileRanksByFolderId, enableFileRanks, enableFileRanksByFolderId, getFileRanks, updateFileRank
 

Field Detail

dlFileRankLocalService

@BeanReference(type=DLFileRankLocalService.class)
protected DLFileRankLocalService dlFileRankLocalService

dlFileRankPersistence

@BeanReference(type=DLFileRankPersistence.class)
protected DLFileRankPersistence dlFileRankPersistence

dlFileRankFinder

@BeanReference(type=DLFileRankFinder.class)
protected DLFileRankFinder dlFileRankFinder

counterLocalService

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

layoutLocalService

@BeanReference(type=LayoutLocalService.class)
protected LayoutLocalService layoutLocalService

layoutPersistence

@BeanReference(type=LayoutPersistence.class)
protected LayoutPersistence layoutPersistence

layoutFinder

@BeanReference(type=LayoutFinder.class)
protected LayoutFinder layoutFinder

dlFolderLocalService

@BeanReference(type=DLFolderLocalService.class)
protected DLFolderLocalService dlFolderLocalService

dlFolderPersistence

@BeanReference(type=DLFolderPersistence.class)
protected DLFolderPersistence dlFolderPersistence

dlFolderFinder

@BeanReference(type=DLFolderFinder.class)
protected DLFolderFinder dlFolderFinder

persistedModelLocalServiceRegistry

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

DLFileRankLocalServiceBaseImpl

public DLFileRankLocalServiceBaseImpl()
Method Detail

addDLFileRank

@Indexable(type=REINDEX)
public DLFileRank addDLFileRank(DLFileRank dlFileRank)
Adds the document library file rank to the database. Also notifies the appropriate model listeners.

Specified by:
addDLFileRank in interface DLFileRankLocalService
Parameters:
dlFileRank - the document library file rank
Returns:
the document library file rank that was added

createDLFileRank

public DLFileRank createDLFileRank(long fileRankId)
Creates a new document library file rank with the primary key. Does not add the document library file rank to the database.

Specified by:
createDLFileRank in interface DLFileRankLocalService
Parameters:
fileRankId - the primary key for the new document library file rank
Returns:
the new document library file rank

deleteDLFileRank

@Indexable(type=DELETE)
public DLFileRank deleteDLFileRank(long fileRankId)
                            throws PortalException
Deletes the document library file rank with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteDLFileRank in interface DLFileRankLocalService
Parameters:
fileRankId - the primary key of the document library file rank
Returns:
the document library file rank that was removed
Throws:
PortalException - if a document library file rank with the primary key could not be found

deleteDLFileRank

@Indexable(type=DELETE)
public DLFileRank deleteDLFileRank(DLFileRank dlFileRank)
Deletes the document library file rank from the database. Also notifies the appropriate model listeners.

Specified by:
deleteDLFileRank in interface DLFileRankLocalService
Parameters:
dlFileRank - the document library file rank
Returns:
the document library file rank that was removed

dynamicQuery

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

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

fetchDLFileRank

public DLFileRank fetchDLFileRank(long fileRankId)
Specified by:
fetchDLFileRank in interface DLFileRankLocalService

getDLFileRank

public DLFileRank getDLFileRank(long fileRankId)
                         throws PortalException
Returns the document library file rank with the primary key.

Specified by:
getDLFileRank in interface DLFileRankLocalService
Parameters:
fileRankId - the primary key of the document library file rank
Returns:
the document library file rank
Throws:
PortalException - if a document library file rank with the primary key could not be found

getActionableDynamicQuery

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

getIndexableActionableDynamicQuery

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

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

getPersistedModel

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

getDLFileRanks

public List<DLFileRank> getDLFileRanks(int start,
                                       int end)
Returns a range of all the document library file ranks.

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 DLFileRankModelImpl. 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:
getDLFileRanks in interface DLFileRankLocalService
Parameters:
start - the lower bound of the range of document library file ranks
end - the upper bound of the range of document library file ranks (not inclusive)
Returns:
the range of document library file ranks

getDLFileRanksCount

public int getDLFileRanksCount()
Returns the number of document library file ranks.

Specified by:
getDLFileRanksCount in interface DLFileRankLocalService
Returns:
the number of document library file ranks

updateDLFileRank

@Indexable(type=REINDEX)
public DLFileRank updateDLFileRank(DLFileRank dlFileRank)
Updates the document library file rank in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateDLFileRank in interface DLFileRankLocalService
Parameters:
dlFileRank - the document library file rank
Returns:
the document library file rank that was updated

getDLFileRankLocalService

public DLFileRankLocalService getDLFileRankLocalService()
Returns the document library file rank local service.

Returns:
the document library file rank local service

setDLFileRankLocalService

public void setDLFileRankLocalService(DLFileRankLocalService dlFileRankLocalService)
Sets the document library file rank local service.

Parameters:
dlFileRankLocalService - the document library file rank local service

getDLFileRankPersistence

public DLFileRankPersistence getDLFileRankPersistence()
Returns the document library file rank persistence.

Returns:
the document library file rank persistence

setDLFileRankPersistence

public void setDLFileRankPersistence(DLFileRankPersistence dlFileRankPersistence)
Sets the document library file rank persistence.

Parameters:
dlFileRankPersistence - the document library file rank persistence

getDLFileRankFinder

public DLFileRankFinder getDLFileRankFinder()
Returns the document library file rank finder.

Returns:
the document library file rank finder

setDLFileRankFinder

public void setDLFileRankFinder(DLFileRankFinder dlFileRankFinder)
Sets the document library file rank finder.

Parameters:
dlFileRankFinder - the document library file rank finder

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

getLayoutLocalService

public LayoutLocalService getLayoutLocalService()
Returns the layout local service.

Returns:
the layout local service

setLayoutLocalService

public void setLayoutLocalService(LayoutLocalService layoutLocalService)
Sets the layout local service.

Parameters:
layoutLocalService - the layout local service

getLayoutPersistence

public LayoutPersistence getLayoutPersistence()
Returns the layout persistence.

Returns:
the layout persistence

setLayoutPersistence

public void setLayoutPersistence(LayoutPersistence layoutPersistence)
Sets the layout persistence.

Parameters:
layoutPersistence - the layout persistence

getLayoutFinder

public LayoutFinder getLayoutFinder()
Returns the layout finder.

Returns:
the layout finder

setLayoutFinder

public void setLayoutFinder(LayoutFinder layoutFinder)
Sets the layout finder.

Parameters:
layoutFinder - the layout finder

getDLFolderLocalService

public DLFolderLocalService getDLFolderLocalService()
Returns the document library folder local service.

Returns:
the document library folder local service

setDLFolderLocalService

public void setDLFolderLocalService(DLFolderLocalService dlFolderLocalService)
Sets the document library folder local service.

Parameters:
dlFolderLocalService - the document library folder local service

getDLFolderPersistence

public DLFolderPersistence getDLFolderPersistence()
Returns the document library folder persistence.

Returns:
the document library folder persistence

setDLFolderPersistence

public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence)
Sets the document library folder persistence.

Parameters:
dlFolderPersistence - the document library folder persistence

getDLFolderFinder

public DLFolderFinder getDLFolderFinder()
Returns the document library folder finder.

Returns:
the document library folder finder

setDLFolderFinder

public void setDLFolderFinder(DLFolderFinder dlFolderFinder)
Sets the document library folder finder.

Parameters:
dlFolderFinder - the document library folder finder

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