1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.shopping.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.shopping.model.ShoppingCategory;
20  
21  /**
22   * <a href="ShoppingCategoryPersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       ShoppingCategoryPersistenceImpl
31   * @see       ShoppingCategoryUtil
32   * @generated
33   */
34  public interface ShoppingCategoryPersistence extends BasePersistence<ShoppingCategory> {
35      public void cacheResult(
36          com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> shoppingCategories);
40  
41      public com.liferay.portlet.shopping.model.ShoppingCategory create(
42          long categoryId);
43  
44      public com.liferay.portlet.shopping.model.ShoppingCategory remove(
45          long categoryId)
46          throws com.liferay.portal.kernel.exception.SystemException,
47              com.liferay.portlet.shopping.NoSuchCategoryException;
48  
49      public com.liferay.portlet.shopping.model.ShoppingCategory updateImpl(
50          com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory,
51          boolean merge)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.shopping.model.ShoppingCategory findByPrimaryKey(
55          long categoryId)
56          throws com.liferay.portal.kernel.exception.SystemException,
57              com.liferay.portlet.shopping.NoSuchCategoryException;
58  
59      public com.liferay.portlet.shopping.model.ShoppingCategory fetchByPrimaryKey(
60          long categoryId)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByGroupId(
64          long groupId)
65          throws com.liferay.portal.kernel.exception.SystemException;
66  
67      public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByGroupId(
68          long groupId, int start, int end)
69          throws com.liferay.portal.kernel.exception.SystemException;
70  
71      public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByGroupId(
72          long groupId, int start, int end,
73          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
74          throws com.liferay.portal.kernel.exception.SystemException;
75  
76      public com.liferay.portlet.shopping.model.ShoppingCategory findByGroupId_First(
77          long groupId,
78          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79          throws com.liferay.portal.kernel.exception.SystemException,
80              com.liferay.portlet.shopping.NoSuchCategoryException;
81  
82      public com.liferay.portlet.shopping.model.ShoppingCategory findByGroupId_Last(
83          long groupId,
84          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
85          throws com.liferay.portal.kernel.exception.SystemException,
86              com.liferay.portlet.shopping.NoSuchCategoryException;
87  
88      public com.liferay.portlet.shopping.model.ShoppingCategory[] findByGroupId_PrevAndNext(
89          long categoryId, long groupId,
90          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
91          throws com.liferay.portal.kernel.exception.SystemException,
92              com.liferay.portlet.shopping.NoSuchCategoryException;
93  
94      public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> filterFindByGroupId(
95          long groupId)
96          throws com.liferay.portal.kernel.exception.SystemException;
97  
98      public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> filterFindByGroupId(
99          long groupId, int start, int end)
100         throws com.liferay.portal.kernel.exception.SystemException;
101 
102     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> filterFindByGroupId(
103         long groupId, int start, int end,
104         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
105         throws com.liferay.portal.kernel.exception.SystemException;
106 
107     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByG_P(
108         long groupId, long parentCategoryId)
109         throws com.liferay.portal.kernel.exception.SystemException;
110 
111     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByG_P(
112         long groupId, long parentCategoryId, int start, int end)
113         throws com.liferay.portal.kernel.exception.SystemException;
114 
115     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByG_P(
116         long groupId, long parentCategoryId, int start, int end,
117         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
118         throws com.liferay.portal.kernel.exception.SystemException;
119 
120     public com.liferay.portlet.shopping.model.ShoppingCategory findByG_P_First(
121         long groupId, long parentCategoryId,
122         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
123         throws com.liferay.portal.kernel.exception.SystemException,
124             com.liferay.portlet.shopping.NoSuchCategoryException;
125 
126     public com.liferay.portlet.shopping.model.ShoppingCategory findByG_P_Last(
127         long groupId, long parentCategoryId,
128         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
129         throws com.liferay.portal.kernel.exception.SystemException,
130             com.liferay.portlet.shopping.NoSuchCategoryException;
131 
132     public com.liferay.portlet.shopping.model.ShoppingCategory[] findByG_P_PrevAndNext(
133         long categoryId, long groupId, long parentCategoryId,
134         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
135         throws com.liferay.portal.kernel.exception.SystemException,
136             com.liferay.portlet.shopping.NoSuchCategoryException;
137 
138     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> filterFindByG_P(
139         long groupId, long parentCategoryId)
140         throws com.liferay.portal.kernel.exception.SystemException;
141 
142     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> filterFindByG_P(
143         long groupId, long parentCategoryId, int start, int end)
144         throws com.liferay.portal.kernel.exception.SystemException;
145 
146     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> filterFindByG_P(
147         long groupId, long parentCategoryId, int start, int end,
148         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149         throws com.liferay.portal.kernel.exception.SystemException;
150 
151     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findAll()
152         throws com.liferay.portal.kernel.exception.SystemException;
153 
154     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findAll(
155         int start, int end)
156         throws com.liferay.portal.kernel.exception.SystemException;
157 
158     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findAll(
159         int start, int end,
160         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
161         throws com.liferay.portal.kernel.exception.SystemException;
162 
163     public void removeByGroupId(long groupId)
164         throws com.liferay.portal.kernel.exception.SystemException;
165 
166     public void removeByG_P(long groupId, long parentCategoryId)
167         throws com.liferay.portal.kernel.exception.SystemException;
168 
169     public void removeAll()
170         throws com.liferay.portal.kernel.exception.SystemException;
171 
172     public int countByGroupId(long groupId)
173         throws com.liferay.portal.kernel.exception.SystemException;
174 
175     public int filterCountByGroupId(long groupId)
176         throws com.liferay.portal.kernel.exception.SystemException;
177 
178     public int countByG_P(long groupId, long parentCategoryId)
179         throws com.liferay.portal.kernel.exception.SystemException;
180 
181     public int filterCountByG_P(long groupId, long parentCategoryId)
182         throws com.liferay.portal.kernel.exception.SystemException;
183 
184     public int countAll()
185         throws com.liferay.portal.kernel.exception.SystemException;
186 }