1
22
23 package com.liferay.portlet.shopping.service.persistence;
24
25 import com.liferay.portal.service.persistence.BasePersistence;
26
27 import com.liferay.portlet.shopping.model.ShoppingCategory;
28
29
42 public interface ShoppingCategoryPersistence extends BasePersistence<ShoppingCategory> {
43 public void cacheResult(
44 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory);
45
46 public void cacheResult(
47 java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> shoppingCategories);
48
49 public com.liferay.portlet.shopping.model.ShoppingCategory create(
50 long categoryId);
51
52 public com.liferay.portlet.shopping.model.ShoppingCategory remove(
53 long categoryId)
54 throws com.liferay.portal.SystemException,
55 com.liferay.portlet.shopping.NoSuchCategoryException;
56
57
60 public com.liferay.portlet.shopping.model.ShoppingCategory update(
61 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
62 throws com.liferay.portal.SystemException;
63
64 public com.liferay.portlet.shopping.model.ShoppingCategory updateImpl(
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 findByPrimaryKey(
69 long categoryId)
70 throws com.liferay.portal.SystemException,
71 com.liferay.portlet.shopping.NoSuchCategoryException;
72
73 public com.liferay.portlet.shopping.model.ShoppingCategory fetchByPrimaryKey(
74 long categoryId) throws com.liferay.portal.SystemException;
75
76 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByGroupId(
77 long groupId) throws com.liferay.portal.SystemException;
78
79 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByGroupId(
80 long groupId, int start, int end)
81 throws com.liferay.portal.SystemException;
82
83 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByGroupId(
84 long groupId, int start, int end,
85 com.liferay.portal.kernel.util.OrderByComparator obc)
86 throws com.liferay.portal.SystemException;
87
88 public com.liferay.portlet.shopping.model.ShoppingCategory findByGroupId_First(
89 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
90 throws com.liferay.portal.SystemException,
91 com.liferay.portlet.shopping.NoSuchCategoryException;
92
93 public com.liferay.portlet.shopping.model.ShoppingCategory findByGroupId_Last(
94 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
95 throws com.liferay.portal.SystemException,
96 com.liferay.portlet.shopping.NoSuchCategoryException;
97
98 public com.liferay.portlet.shopping.model.ShoppingCategory[] findByGroupId_PrevAndNext(
99 long categoryId, long groupId,
100 com.liferay.portal.kernel.util.OrderByComparator obc)
101 throws com.liferay.portal.SystemException,
102 com.liferay.portlet.shopping.NoSuchCategoryException;
103
104 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByG_P(
105 long groupId, long parentCategoryId)
106 throws com.liferay.portal.SystemException;
107
108 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByG_P(
109 long groupId, long parentCategoryId, int start, int end)
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 start, int end,
114 com.liferay.portal.kernel.util.OrderByComparator obc)
115 throws com.liferay.portal.SystemException;
116
117 public com.liferay.portlet.shopping.model.ShoppingCategory findByG_P_First(
118 long groupId, long parentCategoryId,
119 com.liferay.portal.kernel.util.OrderByComparator obc)
120 throws com.liferay.portal.SystemException,
121 com.liferay.portlet.shopping.NoSuchCategoryException;
122
123 public com.liferay.portlet.shopping.model.ShoppingCategory findByG_P_Last(
124 long groupId, long parentCategoryId,
125 com.liferay.portal.kernel.util.OrderByComparator obc)
126 throws com.liferay.portal.SystemException,
127 com.liferay.portlet.shopping.NoSuchCategoryException;
128
129 public com.liferay.portlet.shopping.model.ShoppingCategory[] findByG_P_PrevAndNext(
130 long categoryId, long groupId, long parentCategoryId,
131 com.liferay.portal.kernel.util.OrderByComparator obc)
132 throws com.liferay.portal.SystemException,
133 com.liferay.portlet.shopping.NoSuchCategoryException;
134
135 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findAll()
136 throws com.liferay.portal.SystemException;
137
138 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findAll(
139 int start, int end) throws com.liferay.portal.SystemException;
140
141 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findAll(
142 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
143 throws com.liferay.portal.SystemException;
144
145 public void removeByGroupId(long groupId)
146 throws com.liferay.portal.SystemException;
147
148 public void removeByG_P(long groupId, long parentCategoryId)
149 throws com.liferay.portal.SystemException;
150
151 public void removeAll() throws com.liferay.portal.SystemException;
152
153 public int countByGroupId(long groupId)
154 throws com.liferay.portal.SystemException;
155
156 public int countByG_P(long groupId, long parentCategoryId)
157 throws com.liferay.portal.SystemException;
158
159 public int countAll() throws com.liferay.portal.SystemException;
160 }