com.liferay.portlet.ratings.service.persistence
Interface RatingsStatsPersistence

All Superinterfaces:
BasePersistence

@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface RatingsStatsPersistence
extends BasePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByC_C(long classNameId, long classPK)
           
 RatingsStats create(long statsId)
           
 RatingsStats fetchByC_C(long classNameId, long classPK)
           
 RatingsStats fetchByPrimaryKey(long statsId)
           
 java.util.List<RatingsStats> findAll()
           
 java.util.List<RatingsStats> findAll(int start, int end)
           
 java.util.List<RatingsStats> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 RatingsStats findByC_C(long classNameId, long classPK)
           
 RatingsStats findByPrimaryKey(long statsId)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 RatingsStats remove(long statsId)
           
 RatingsStats remove(RatingsStats ratingsStats)
           
 void removeAll()
           
 void removeByC_C(long classNameId, long classPK)
           
 RatingsStats update(RatingsStats ratingsStats)
          Deprecated. Use update(RatingsStats ratingsStats, boolean merge).
 RatingsStats update(RatingsStats ratingsStats, boolean merge)
          Add, update, or merge, the entity.
 RatingsStats updateImpl(RatingsStats ratingsStats, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

create

RatingsStats create(long statsId)

remove

RatingsStats remove(long statsId)
                    throws com.liferay.portal.SystemException,
                           NoSuchStatsException
Throws:
com.liferay.portal.SystemException
NoSuchStatsException

remove

RatingsStats remove(RatingsStats ratingsStats)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

RatingsStats update(RatingsStats ratingsStats)
                    throws com.liferay.portal.SystemException
Deprecated. Use update(RatingsStats ratingsStats, boolean merge).

Throws:
com.liferay.portal.SystemException

update

RatingsStats update(RatingsStats ratingsStats,
                    boolean merge)
                    throws com.liferay.portal.SystemException
Add, update, or merge, the entity. This method also calls the model listeners to trigger the proper events associated with adding, deleting, or updating an entity.

Parameters:
ratingsStats - the entity to add, update, or merge
merge - boolean value for whether to merge the entity. The default value is false. Setting merge to true is more expensive and should only be true when ratingsStats is transient. See LEP-5473 for a detailed discussion of this method.
Returns:
true if the portlet can be displayed via Ajax
Throws:
com.liferay.portal.SystemException

updateImpl

RatingsStats updateImpl(RatingsStats ratingsStats,
                        boolean merge)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

@Transactional(propagation=SUPPORTS,
               readOnly=true)
RatingsStats findByPrimaryKey(long statsId)
                              throws com.liferay.portal.SystemException,
                                     NoSuchStatsException
Throws:
com.liferay.portal.SystemException
NoSuchStatsException

fetchByPrimaryKey

RatingsStats fetchByPrimaryKey(long statsId)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_C

@Transactional(propagation=SUPPORTS,
               readOnly=true)
RatingsStats findByC_C(long classNameId,
                                     long classPK)
                       throws com.liferay.portal.SystemException,
                              NoSuchStatsException
Throws:
com.liferay.portal.SystemException
NoSuchStatsException

fetchByC_C

RatingsStats fetchByC_C(long classNameId,
                        long classPK)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                                    int start,
                                                                    int end)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<RatingsStats> findAll()
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<RatingsStats> findAll(int start,
                                                   int end)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<RatingsStats> findAll(int start,
                                                   int end,
                                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByC_C

void removeByC_C(long classNameId,
                 long classPK)
                 throws com.liferay.portal.SystemException,
                        NoSuchStatsException
Throws:
com.liferay.portal.SystemException
NoSuchStatsException

removeAll

void removeAll()
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByC_C

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByC_C(long classNameId,
                             long classPK)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException