Liferay 7.0-ce-b4

com.liferay.portlet.asset.service.base
Class AssetTagStatsLocalServiceBaseImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseLocalServiceImpl
      extended by com.liferay.portlet.asset.service.base.AssetTagStatsLocalServiceBaseImpl
All Implemented Interfaces:
IdentifiableOSGiService, BaseLocalService, PersistedModelLocalService, AssetTagStatsLocalService
Direct Known Subclasses:
AssetTagStatsLocalServiceImpl

@ProviderType
public abstract class AssetTagStatsLocalServiceBaseImpl
extends BaseLocalServiceImpl
implements AssetTagStatsLocalService, IdentifiableOSGiService

Provides the base implementation for the asset tag stats 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 AssetTagStatsLocalServiceImpl.

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

Field Summary
protected  AssetTagFinder assetTagFinder
           
protected  AssetTagLocalService assetTagLocalService
           
protected  AssetTagPersistence assetTagPersistence
           
protected  AssetTagStatsLocalService assetTagStatsLocalService
           
protected  AssetTagStatsPersistence assetTagStatsPersistence
           
protected  CounterLocalService counterLocalService
           
protected  PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry
           
 
Constructor Summary
AssetTagStatsLocalServiceBaseImpl()
           
 
Method Summary
 AssetTagStats addAssetTagStats(AssetTagStats assetTagStats)
          Adds the asset tag stats to the database.
 void afterPropertiesSet()
           
 AssetTagStats createAssetTagStats(long tagStatsId)
          Creates a new asset tag stats with the primary key.
 AssetTagStats deleteAssetTagStats(AssetTagStats assetTagStats)
          Deletes the asset tag stats from the database.
 AssetTagStats deleteAssetTagStats(long tagStatsId)
          Deletes the asset tag stats 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.
 AssetTagStats fetchAssetTagStats(long tagStatsId)
           
 ActionableDynamicQuery getActionableDynamicQuery()
           
 AssetTagFinder getAssetTagFinder()
          Returns the asset tag finder.
 AssetTagLocalService getAssetTagLocalService()
          Returns the asset tag local service.
 AssetTagPersistence getAssetTagPersistence()
          Returns the asset tag persistence.
 AssetTagStats getAssetTagStats(long tagStatsId)
          Returns the asset tag stats with the primary key.
 List<AssetTagStats> getAssetTagStatses(int start, int end)
          Returns a range of all the asset tag statses.
 int getAssetTagStatsesCount()
          Returns the number of asset tag statses.
 AssetTagStatsLocalService getAssetTagStatsLocalService()
          Returns the asset tag stats local service.
 AssetTagStatsPersistence getAssetTagStatsPersistence()
          Returns the asset tag stats persistence.
 CounterLocalService getCounterLocalService()
          Returns the counter local service.
 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 setAssetTagFinder(AssetTagFinder assetTagFinder)
          Sets the asset tag finder.
 void setAssetTagLocalService(AssetTagLocalService assetTagLocalService)
          Sets the asset tag local service.
 void setAssetTagPersistence(AssetTagPersistence assetTagPersistence)
          Sets the asset tag persistence.
 void setAssetTagStatsLocalService(AssetTagStatsLocalService assetTagStatsLocalService)
          Sets the asset tag stats local service.
 void setAssetTagStatsPersistence(AssetTagStatsPersistence assetTagStatsPersistence)
          Sets the asset tag stats persistence.
 void setCounterLocalService(CounterLocalService counterLocalService)
          Sets the counter local service.
 AssetTagStats updateAssetTagStats(AssetTagStats assetTagStats)
          Updates the asset tag stats 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.asset.service.AssetTagStatsLocalService
addTagStats, deleteTagStats, deleteTagStats, deleteTagStatsByClassNameId, deleteTagStatsByTagId, getTagStats, getTagStats, updateTagStats
 

Field Detail

assetTagStatsLocalService

@BeanReference(type=AssetTagStatsLocalService.class)
protected AssetTagStatsLocalService assetTagStatsLocalService

assetTagStatsPersistence

@BeanReference(type=AssetTagStatsPersistence.class)
protected AssetTagStatsPersistence assetTagStatsPersistence

counterLocalService

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

assetTagLocalService

@BeanReference(type=AssetTagLocalService.class)
protected AssetTagLocalService assetTagLocalService

assetTagPersistence

@BeanReference(type=AssetTagPersistence.class)
protected AssetTagPersistence assetTagPersistence

assetTagFinder

@BeanReference(type=AssetTagFinder.class)
protected AssetTagFinder assetTagFinder

persistedModelLocalServiceRegistry

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

AssetTagStatsLocalServiceBaseImpl

public AssetTagStatsLocalServiceBaseImpl()
Method Detail

addAssetTagStats

@Indexable(type=REINDEX)
public AssetTagStats addAssetTagStats(AssetTagStats assetTagStats)
Adds the asset tag stats to the database. Also notifies the appropriate model listeners.

Specified by:
addAssetTagStats in interface AssetTagStatsLocalService
Parameters:
assetTagStats - the asset tag stats
Returns:
the asset tag stats that was added

createAssetTagStats

public AssetTagStats createAssetTagStats(long tagStatsId)
Creates a new asset tag stats with the primary key. Does not add the asset tag stats to the database.

Specified by:
createAssetTagStats in interface AssetTagStatsLocalService
Parameters:
tagStatsId - the primary key for the new asset tag stats
Returns:
the new asset tag stats

deleteAssetTagStats

@Indexable(type=DELETE)
public AssetTagStats deleteAssetTagStats(long tagStatsId)
                                  throws PortalException
Deletes the asset tag stats with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteAssetTagStats in interface AssetTagStatsLocalService
Parameters:
tagStatsId - the primary key of the asset tag stats
Returns:
the asset tag stats that was removed
Throws:
PortalException - if a asset tag stats with the primary key could not be found

deleteAssetTagStats

@Indexable(type=DELETE)
public AssetTagStats deleteAssetTagStats(AssetTagStats assetTagStats)
Deletes the asset tag stats from the database. Also notifies the appropriate model listeners.

Specified by:
deleteAssetTagStats in interface AssetTagStatsLocalService
Parameters:
assetTagStats - the asset tag stats
Returns:
the asset tag stats that was removed

dynamicQuery

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

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

fetchAssetTagStats

public AssetTagStats fetchAssetTagStats(long tagStatsId)
Specified by:
fetchAssetTagStats in interface AssetTagStatsLocalService

getAssetTagStats

public AssetTagStats getAssetTagStats(long tagStatsId)
                               throws PortalException
Returns the asset tag stats with the primary key.

Specified by:
getAssetTagStats in interface AssetTagStatsLocalService
Parameters:
tagStatsId - the primary key of the asset tag stats
Returns:
the asset tag stats
Throws:
PortalException - if a asset tag stats with the primary key could not be found

getActionableDynamicQuery

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

getIndexableActionableDynamicQuery

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

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

getPersistedModel

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

getAssetTagStatses

public List<AssetTagStats> getAssetTagStatses(int start,
                                              int end)
Returns a range of all the asset tag statses.

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 AssetTagStatsModelImpl. 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:
getAssetTagStatses in interface AssetTagStatsLocalService
Parameters:
start - the lower bound of the range of asset tag statses
end - the upper bound of the range of asset tag statses (not inclusive)
Returns:
the range of asset tag statses

getAssetTagStatsesCount

public int getAssetTagStatsesCount()
Returns the number of asset tag statses.

Specified by:
getAssetTagStatsesCount in interface AssetTagStatsLocalService
Returns:
the number of asset tag statses

updateAssetTagStats

@Indexable(type=REINDEX)
public AssetTagStats updateAssetTagStats(AssetTagStats assetTagStats)
Updates the asset tag stats in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
updateAssetTagStats in interface AssetTagStatsLocalService
Parameters:
assetTagStats - the asset tag stats
Returns:
the asset tag stats that was updated

getAssetTagStatsLocalService

public AssetTagStatsLocalService getAssetTagStatsLocalService()
Returns the asset tag stats local service.

Returns:
the asset tag stats local service

setAssetTagStatsLocalService

public void setAssetTagStatsLocalService(AssetTagStatsLocalService assetTagStatsLocalService)
Sets the asset tag stats local service.

Parameters:
assetTagStatsLocalService - the asset tag stats local service

getAssetTagStatsPersistence

public AssetTagStatsPersistence getAssetTagStatsPersistence()
Returns the asset tag stats persistence.

Returns:
the asset tag stats persistence

setAssetTagStatsPersistence

public void setAssetTagStatsPersistence(AssetTagStatsPersistence assetTagStatsPersistence)
Sets the asset tag stats persistence.

Parameters:
assetTagStatsPersistence - the asset tag stats 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

getAssetTagLocalService

public AssetTagLocalService getAssetTagLocalService()
Returns the asset tag local service.

Returns:
the asset tag local service

setAssetTagLocalService

public void setAssetTagLocalService(AssetTagLocalService assetTagLocalService)
Sets the asset tag local service.

Parameters:
assetTagLocalService - the asset tag local service

getAssetTagPersistence

public AssetTagPersistence getAssetTagPersistence()
Returns the asset tag persistence.

Returns:
the asset tag persistence

setAssetTagPersistence

public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence)
Sets the asset tag persistence.

Parameters:
assetTagPersistence - the asset tag persistence

getAssetTagFinder

public AssetTagFinder getAssetTagFinder()
Returns the asset tag finder.

Returns:
the asset tag finder

setAssetTagFinder

public void setAssetTagFinder(AssetTagFinder assetTagFinder)
Sets the asset tag finder.

Parameters:
assetTagFinder - the asset tag 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 AssetTagStatsLocalService
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