1
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
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 }