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