1
22
23 package com.liferay.portlet.ratings.service.persistence;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Propagation;
28 import com.liferay.portal.kernel.annotation.Transactional;
29 import com.liferay.portal.service.persistence.BasePersistence;
30
31
37 @Transactional(rollbackFor = {
38 PortalException.class, SystemException.class})
39 public interface RatingsStatsPersistence extends BasePersistence {
40 public com.liferay.portlet.ratings.model.RatingsStats create(long statsId);
41
42 public com.liferay.portlet.ratings.model.RatingsStats remove(long statsId)
43 throws com.liferay.portal.SystemException,
44 com.liferay.portlet.ratings.NoSuchStatsException;
45
46 public com.liferay.portlet.ratings.model.RatingsStats remove(
47 com.liferay.portlet.ratings.model.RatingsStats ratingsStats)
48 throws com.liferay.portal.SystemException;
49
50
53 public com.liferay.portlet.ratings.model.RatingsStats update(
54 com.liferay.portlet.ratings.model.RatingsStats ratingsStats)
55 throws com.liferay.portal.SystemException;
56
57
70 public com.liferay.portlet.ratings.model.RatingsStats update(
71 com.liferay.portlet.ratings.model.RatingsStats ratingsStats,
72 boolean merge) throws com.liferay.portal.SystemException;
73
74 public com.liferay.portlet.ratings.model.RatingsStats updateImpl(
75 com.liferay.portlet.ratings.model.RatingsStats ratingsStats,
76 boolean merge) throws com.liferay.portal.SystemException;
77
78 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
79 public com.liferay.portlet.ratings.model.RatingsStats findByPrimaryKey(
80 long statsId)
81 throws com.liferay.portal.SystemException,
82 com.liferay.portlet.ratings.NoSuchStatsException;
83
84 public com.liferay.portlet.ratings.model.RatingsStats fetchByPrimaryKey(
85 long statsId) throws com.liferay.portal.SystemException;
86
87 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
88 public com.liferay.portlet.ratings.model.RatingsStats findByC_C(
89 long classNameId, long classPK)
90 throws com.liferay.portal.SystemException,
91 com.liferay.portlet.ratings.NoSuchStatsException;
92
93 public com.liferay.portlet.ratings.model.RatingsStats fetchByC_C(
94 long classNameId, long classPK)
95 throws com.liferay.portal.SystemException;
96
97 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
98 public java.util.List<Object> findWithDynamicQuery(
99 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
100 throws com.liferay.portal.SystemException;
101
102 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103 public java.util.List<Object> findWithDynamicQuery(
104 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
105 int end) throws com.liferay.portal.SystemException;
106
107 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108 public java.util.List<com.liferay.portlet.ratings.model.RatingsStats> findAll()
109 throws com.liferay.portal.SystemException;
110
111 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
112 public java.util.List<com.liferay.portlet.ratings.model.RatingsStats> findAll(
113 int start, int end) throws com.liferay.portal.SystemException;
114
115 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116 public java.util.List<com.liferay.portlet.ratings.model.RatingsStats> findAll(
117 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
118 throws com.liferay.portal.SystemException;
119
120 public void removeByC_C(long classNameId, long classPK)
121 throws com.liferay.portal.SystemException,
122 com.liferay.portlet.ratings.NoSuchStatsException;
123
124 public void removeAll() throws com.liferay.portal.SystemException;
125
126 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127 public int countByC_C(long classNameId, long classPK)
128 throws com.liferay.portal.SystemException;
129
130 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
131 public int countAll() throws com.liferay.portal.SystemException;
132 }