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 obc)
74          throws com.liferay.portal.kernel.exception.SystemException;
75  
76      public com.liferay.portlet.shopping.model.ShoppingCategory findByGroupId_First(
77          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
78          throws com.liferay.portal.kernel.exception.SystemException,
79              com.liferay.portlet.shopping.NoSuchCategoryException;
80  
81      public com.liferay.portlet.shopping.model.ShoppingCategory findByGroupId_Last(
82          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
83          throws com.liferay.portal.kernel.exception.SystemException,
84              com.liferay.portlet.shopping.NoSuchCategoryException;
85  
86      public com.liferay.portlet.shopping.model.ShoppingCategory[] findByGroupId_PrevAndNext(
87          long categoryId, long groupId,
88          com.liferay.portal.kernel.util.OrderByComparator obc)
89          throws com.liferay.portal.kernel.exception.SystemException,
90              com.liferay.portlet.shopping.NoSuchCategoryException;
91  
92      public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByG_P(
93          long groupId, long parentCategoryId)
94          throws com.liferay.portal.kernel.exception.SystemException;
95  
96      public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByG_P(
97          long groupId, long parentCategoryId, int start, int end)
98          throws com.liferay.portal.kernel.exception.SystemException;
99  
100     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByG_P(
101         long groupId, long parentCategoryId, int start, int end,
102         com.liferay.portal.kernel.util.OrderByComparator obc)
103         throws com.liferay.portal.kernel.exception.SystemException;
104 
105     public com.liferay.portlet.shopping.model.ShoppingCategory findByG_P_First(
106         long groupId, long parentCategoryId,
107         com.liferay.portal.kernel.util.OrderByComparator obc)
108         throws com.liferay.portal.kernel.exception.SystemException,
109             com.liferay.portlet.shopping.NoSuchCategoryException;
110 
111     public com.liferay.portlet.shopping.model.ShoppingCategory findByG_P_Last(
112         long groupId, long parentCategoryId,
113         com.liferay.portal.kernel.util.OrderByComparator obc)
114         throws com.liferay.portal.kernel.exception.SystemException,
115             com.liferay.portlet.shopping.NoSuchCategoryException;
116 
117     public com.liferay.portlet.shopping.model.ShoppingCategory[] findByG_P_PrevAndNext(
118         long categoryId, long groupId, long parentCategoryId,
119         com.liferay.portal.kernel.util.OrderByComparator obc)
120         throws com.liferay.portal.kernel.exception.SystemException,
121             com.liferay.portlet.shopping.NoSuchCategoryException;
122 
123     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findAll()
124         throws com.liferay.portal.kernel.exception.SystemException;
125 
126     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findAll(
127         int start, int end)
128         throws com.liferay.portal.kernel.exception.SystemException;
129 
130     public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findAll(
131         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
132         throws com.liferay.portal.kernel.exception.SystemException;
133 
134     public void removeByGroupId(long groupId)
135         throws com.liferay.portal.kernel.exception.SystemException;
136 
137     public void removeByG_P(long groupId, long parentCategoryId)
138         throws com.liferay.portal.kernel.exception.SystemException;
139 
140     public void removeAll()
141         throws com.liferay.portal.kernel.exception.SystemException;
142 
143     public int countByGroupId(long groupId)
144         throws com.liferay.portal.kernel.exception.SystemException;
145 
146     public int countByG_P(long groupId, long parentCategoryId)
147         throws com.liferay.portal.kernel.exception.SystemException;
148 
149     public int countAll()
150         throws com.liferay.portal.kernel.exception.SystemException;
151 }