Liferay 6.2-ce-ga5

com.liferay.portlet.asset.service
Interface AssetTagStatsLocalService

All Superinterfaces:
BaseLocalService, PersistedModelLocalService
All Known Implementing Classes:
AssetTagStatsLocalServiceBaseImpl, AssetTagStatsLocalServiceImpl, AssetTagStatsLocalServiceWrapper

@ProviderType
@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface AssetTagStatsLocalService
extends BaseLocalService, PersistedModelLocalService

Provides the local service interface for AssetTagStats. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

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

Method Summary
 AssetTagStats addAssetTagStats(AssetTagStats assetTagStats)
          Adds the asset tag stats to the database.
 AssetTagStats addTagStats(long tagId, long classNameId)
          Adds an asset tag statistics instance.
 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.
 void deleteTagStats(AssetTagStats tagStats)
          Deletes the asset tag statistics instance.
 void deleteTagStats(long tagStatsId)
          Deletes the asset tag statistics instance matching the tag statistics ID.
 void deleteTagStatsByClassNameId(long classNameId)
          Deletes all asset tag statistics instances associated with the asset entry matching the class name ID.
 void deleteTagStatsByTagId(long tagId)
          Deletes all asset tag statistics instances associated with the tag.
 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.
 AssetTagStats fetchAssetTagStats(long tagStatsId)
           
 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.
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 List<AssetTagStats> getTagStats(long classNameId, int start, int end)
          Returns a range of all the asset tag statistics instances associated with the asset entry matching the class name ID.
 AssetTagStats getTagStats(long tagId, long classNameId)
          Returns the asset tag statistics instance with the tag and asset entry matching the class name ID
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 AssetTagStats updateAssetTagStats(AssetTagStats assetTagStats)
          Updates the asset tag stats in the database or adds it if it does not yet exist.
 AssetTagStats updateTagStats(long tagId, long classNameId)
          Updates the asset tag statistics instance.
 

Method Detail

addAssetTagStats

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

Parameters:
assetTagStats - the asset tag stats
Returns:
the asset tag stats that was added
Throws:
SystemException - if a system exception occurred

createAssetTagStats

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

Parameters:
tagStatsId - the primary key for the new asset tag stats
Returns:
the new asset tag stats

deleteAssetTagStats

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

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
SystemException - if a system exception occurred

deleteAssetTagStats

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

Parameters:
assetTagStats - the asset tag stats
Returns:
the asset tag stats that was removed
Throws:
SystemException - if a system exception occurred

dynamicQuery

DynamicQuery dynamicQuery()

dynamicQuery

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

Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

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

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

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

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

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

Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

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

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

fetchAssetTagStats

@Transactional(propagation=SUPPORTS,
               readOnly=true)
AssetTagStats fetchAssetTagStats(long tagStatsId)
                                 throws SystemException
Throws:
SystemException

getAssetTagStats

@Transactional(propagation=SUPPORTS,
               readOnly=true)
AssetTagStats getAssetTagStats(long tagStatsId)
                               throws PortalException,
                                      SystemException
Returns the asset tag stats with the primary key.

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
SystemException - if a system exception occurred

getPersistedModel

@Transactional(propagation=SUPPORTS,
               readOnly=true)
PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException,
                                        SystemException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Throws:
PortalException
SystemException

getAssetTagStatses

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<AssetTagStats> getAssetTagStatses(int start,
                                                                                int end)
                                       throws SystemException
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.

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
Throws:
SystemException - if a system exception occurred

getAssetTagStatsesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getAssetTagStatsesCount()
                            throws SystemException
Returns the number of asset tag statses.

Returns:
the number of asset tag statses
Throws:
SystemException - if a system exception occurred

updateAssetTagStats

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

Parameters:
assetTagStats - the asset tag stats
Returns:
the asset tag stats that was updated
Throws:
SystemException - if a system exception occurred

getBeanIdentifier

String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

setBeanIdentifier

void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

addTagStats

AssetTagStats addTagStats(long tagId,
                          long classNameId)
                          throws SystemException
Adds an asset tag statistics instance.

Parameters:
tagId - the primary key of the tag
classNameId - the asset entry's class name ID
Returns:
the asset tag statistics instance
Throws:
SystemException - if a system exception occurred

deleteTagStats

void deleteTagStats(AssetTagStats tagStats)
                    throws SystemException
Deletes the asset tag statistics instance.

Parameters:
tagStats - the asset tag statistics instance
Throws:
SystemException - if a system exception occurred

deleteTagStats

void deleteTagStats(long tagStatsId)
                    throws PortalException,
                           SystemException
Deletes the asset tag statistics instance matching the tag statistics ID.

Parameters:
tagStatsId - the primary key of the asset tag statistics instance
Throws:
PortalException - if the assetTagStats with the primary key could not be found
SystemException - if a system exception occurred

deleteTagStatsByClassNameId

void deleteTagStatsByClassNameId(long classNameId)
                                 throws SystemException
Deletes all asset tag statistics instances associated with the asset entry matching the class name ID.

Parameters:
classNameId - the asset entry's class name ID
Throws:
SystemException - if a system exception occurred

deleteTagStatsByTagId

void deleteTagStatsByTagId(long tagId)
                           throws SystemException
Deletes all asset tag statistics instances associated with the tag.

Parameters:
tagId - the primary key of the tag
Throws:
SystemException - if a system exception occurred

getTagStats

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<AssetTagStats> getTagStats(long classNameId,
                                                                         int start,
                                                                         int end)
                                throws SystemException
Returns a range of all the asset tag statistics instances associated with the asset entry matching the class name ID.

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.

Parameters:
classNameId - the asset entry's class name ID
start - the lower bound of the range of results
end - the upper bound of the range of results (not inclusive)
Returns:
the range of asset tag statistics associated with the asset entry matching the class name ID
Throws:
SystemException - if a system exception occurred

getTagStats

@Transactional(propagation=SUPPORTS,
               readOnly=true)
AssetTagStats getTagStats(long tagId,
                                                                   long classNameId)
                          throws SystemException
Returns the asset tag statistics instance with the tag and asset entry matching the class name ID

Parameters:
tagId - the primary key of the tag
classNameId - the asset entry's class name ID
Returns:
Returns the asset tag statistics instance with the tag and asset entry matching the class name ID
Throws:
SystemException - if a system exception occurred

updateTagStats

AssetTagStats updateTagStats(long tagId,
                             long classNameId)
                             throws PortalException,
                                    SystemException
Updates the asset tag statistics instance.

Parameters:
tagId - the primary key of the tag
classNameId - the asset entry's class name ID
Returns:
the updated asset tag statistics instance
Throws:
PortalException - if an asset tag with the tag ID could not be found
SystemException - if a system exception occurred

Liferay 6.2-ce-ga5