1
22
23 package com.liferay.portlet.shopping.service.persistence;
24
25 import com.liferay.portal.service.persistence.BasePersistence;
26
27
40 public interface ShoppingCategoryPersistence extends BasePersistence {
41 public void cacheResult(
42 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory);
43
44 public void cacheResult(
45 java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> shoppingCategories);
46
47 public void clearCache();
48
49 public com.liferay.portlet.shopping.model.ShoppingCategory create(
50 long categoryId);
51
52 public com.liferay.portlet.shopping.model.ShoppingCategory remove(
53 long categoryId)
54 throws com.liferay.portal.SystemException,
55 com.liferay.portlet.shopping.NoSuchCategoryException;
56
57 public com.liferay.portlet.shopping.model.ShoppingCategory remove(
58 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
59 throws com.liferay.portal.SystemException;
60
61
64 public com.liferay.portlet.shopping.model.ShoppingCategory update(
65 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
66 throws com.liferay.portal.SystemException;
67
68
80 public com.liferay.portlet.shopping.model.ShoppingCategory update(
81 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory,
82 boolean merge) throws com.liferay.portal.SystemException;
83
84 public com.liferay.portlet.shopping.model.ShoppingCategory updateImpl(
85 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory,
86 boolean merge) throws com.liferay.portal.SystemException;
87
88 public com.liferay.portlet.shopping.model.ShoppingCategory findByPrimaryKey(
89 long categoryId)
90 throws com.liferay.portal.SystemException,
91 com.liferay.portlet.shopping.NoSuchCategoryException;
92
93 public com.liferay.portlet.shopping.model.ShoppingCategory fetchByPrimaryKey(
94 long categoryId) throws com.liferay.portal.SystemException;
95
96 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByGroupId(
97 long groupId) throws com.liferay.portal.SystemException;
98
99 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByGroupId(
100 long groupId, int start, int end)
101 throws com.liferay.portal.SystemException;
102
103 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByGroupId(
104 long groupId, int start, int end,
105 com.liferay.portal.kernel.util.OrderByComparator obc)
106 throws com.liferay.portal.SystemException;
107
108 public com.liferay.portlet.shopping.model.ShoppingCategory findByGroupId_First(
109 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException,
111 com.liferay.portlet.shopping.NoSuchCategoryException;
112
113 public com.liferay.portlet.shopping.model.ShoppingCategory findByGroupId_Last(
114 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
115 throws com.liferay.portal.SystemException,
116 com.liferay.portlet.shopping.NoSuchCategoryException;
117
118 public com.liferay.portlet.shopping.model.ShoppingCategory[] findByGroupId_PrevAndNext(
119 long categoryId, long groupId,
120 com.liferay.portal.kernel.util.OrderByComparator obc)
121 throws com.liferay.portal.SystemException,
122 com.liferay.portlet.shopping.NoSuchCategoryException;
123
124 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByG_P(
125 long groupId, long parentCategoryId)
126 throws com.liferay.portal.SystemException;
127
128 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByG_P(
129 long groupId, long parentCategoryId, int start, int end)
130 throws com.liferay.portal.SystemException;
131
132 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByG_P(
133 long groupId, long parentCategoryId, int start, int end,
134 com.liferay.portal.kernel.util.OrderByComparator obc)
135 throws com.liferay.portal.SystemException;
136
137 public com.liferay.portlet.shopping.model.ShoppingCategory findByG_P_First(
138 long groupId, long parentCategoryId,
139 com.liferay.portal.kernel.util.OrderByComparator obc)
140 throws com.liferay.portal.SystemException,
141 com.liferay.portlet.shopping.NoSuchCategoryException;
142
143 public com.liferay.portlet.shopping.model.ShoppingCategory findByG_P_Last(
144 long groupId, long parentCategoryId,
145 com.liferay.portal.kernel.util.OrderByComparator obc)
146 throws com.liferay.portal.SystemException,
147 com.liferay.portlet.shopping.NoSuchCategoryException;
148
149 public com.liferay.portlet.shopping.model.ShoppingCategory[] findByG_P_PrevAndNext(
150 long categoryId, long groupId, long parentCategoryId,
151 com.liferay.portal.kernel.util.OrderByComparator obc)
152 throws com.liferay.portal.SystemException,
153 com.liferay.portlet.shopping.NoSuchCategoryException;
154
155 public java.util.List<Object> findWithDynamicQuery(
156 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
157 throws com.liferay.portal.SystemException;
158
159 public java.util.List<Object> findWithDynamicQuery(
160 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
161 int end) throws com.liferay.portal.SystemException;
162
163 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findAll()
164 throws com.liferay.portal.SystemException;
165
166 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findAll(
167 int start, int end) throws com.liferay.portal.SystemException;
168
169 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findAll(
170 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
171 throws com.liferay.portal.SystemException;
172
173 public void removeByGroupId(long groupId)
174 throws com.liferay.portal.SystemException;
175
176 public void removeByG_P(long groupId, long parentCategoryId)
177 throws com.liferay.portal.SystemException;
178
179 public void removeAll() throws com.liferay.portal.SystemException;
180
181 public int countByGroupId(long groupId)
182 throws com.liferay.portal.SystemException;
183
184 public int countByG_P(long groupId, long parentCategoryId)
185 throws com.liferay.portal.SystemException;
186
187 public int countAll() throws com.liferay.portal.SystemException;
188 }