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