1
22
23 package com.liferay.portlet.ratings.service.persistence;
24
25
31 public interface RatingsEntryPersistence {
32 public com.liferay.portlet.ratings.model.RatingsEntry create(long entryId);
33
34 public com.liferay.portlet.ratings.model.RatingsEntry remove(long entryId)
35 throws com.liferay.portal.SystemException,
36 com.liferay.portlet.ratings.NoSuchEntryException;
37
38 public com.liferay.portlet.ratings.model.RatingsEntry remove(
39 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry)
40 throws com.liferay.portal.SystemException;
41
42 public com.liferay.portlet.ratings.model.RatingsEntry update(
43 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry)
44 throws com.liferay.portal.SystemException;
45
46 public com.liferay.portlet.ratings.model.RatingsEntry update(
47 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry,
48 boolean merge) throws com.liferay.portal.SystemException;
49
50 public com.liferay.portlet.ratings.model.RatingsEntry updateImpl(
51 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry,
52 boolean merge) throws com.liferay.portal.SystemException;
53
54 public com.liferay.portlet.ratings.model.RatingsEntry findByPrimaryKey(
55 long entryId)
56 throws com.liferay.portal.SystemException,
57 com.liferay.portlet.ratings.NoSuchEntryException;
58
59 public com.liferay.portlet.ratings.model.RatingsEntry fetchByPrimaryKey(
60 long entryId) throws com.liferay.portal.SystemException;
61
62 public java.util.List findByC_C(long classNameId, long classPK)
63 throws com.liferay.portal.SystemException;
64
65 public java.util.List findByC_C(long classNameId, long classPK, int begin,
66 int end) throws com.liferay.portal.SystemException;
67
68 public java.util.List findByC_C(long classNameId, long classPK, int begin,
69 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
70 throws com.liferay.portal.SystemException;
71
72 public com.liferay.portlet.ratings.model.RatingsEntry findByC_C_First(
73 long classNameId, long classPK,
74 com.liferay.portal.kernel.util.OrderByComparator obc)
75 throws com.liferay.portal.SystemException,
76 com.liferay.portlet.ratings.NoSuchEntryException;
77
78 public com.liferay.portlet.ratings.model.RatingsEntry findByC_C_Last(
79 long classNameId, long classPK,
80 com.liferay.portal.kernel.util.OrderByComparator obc)
81 throws com.liferay.portal.SystemException,
82 com.liferay.portlet.ratings.NoSuchEntryException;
83
84 public com.liferay.portlet.ratings.model.RatingsEntry[] findByC_C_PrevAndNext(
85 long entryId, long classNameId, long classPK,
86 com.liferay.portal.kernel.util.OrderByComparator obc)
87 throws com.liferay.portal.SystemException,
88 com.liferay.portlet.ratings.NoSuchEntryException;
89
90 public com.liferay.portlet.ratings.model.RatingsEntry findByU_C_C(
91 long userId, long classNameId, long classPK)
92 throws com.liferay.portal.SystemException,
93 com.liferay.portlet.ratings.NoSuchEntryException;
94
95 public com.liferay.portlet.ratings.model.RatingsEntry fetchByU_C_C(
96 long userId, long classNameId, long classPK)
97 throws com.liferay.portal.SystemException;
98
99 public java.util.List findWithDynamicQuery(
100 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
101 throws com.liferay.portal.SystemException;
102
103 public java.util.List findWithDynamicQuery(
104 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
105 int begin, int end) throws com.liferay.portal.SystemException;
106
107 public java.util.List findAll() throws com.liferay.portal.SystemException;
108
109 public java.util.List findAll(int begin, int end)
110 throws com.liferay.portal.SystemException;
111
112 public java.util.List findAll(int begin, int end,
113 com.liferay.portal.kernel.util.OrderByComparator obc)
114 throws com.liferay.portal.SystemException;
115
116 public void removeByC_C(long classNameId, long classPK)
117 throws com.liferay.portal.SystemException;
118
119 public void removeByU_C_C(long userId, long classNameId, long classPK)
120 throws com.liferay.portal.SystemException,
121 com.liferay.portlet.ratings.NoSuchEntryException;
122
123 public void removeAll() throws com.liferay.portal.SystemException;
124
125 public int countByC_C(long classNameId, long classPK)
126 throws com.liferay.portal.SystemException;
127
128 public int countByU_C_C(long userId, long classNameId, long classPK)
129 throws com.liferay.portal.SystemException;
130
131 public int countAll() throws com.liferay.portal.SystemException;
132 }