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