001
014
015 package com.liferay.portlet.shopping.service.persistence;
016
017 import com.liferay.portal.service.persistence.BasePersistence;
018
019 import com.liferay.portlet.shopping.model.ShoppingCategory;
020
021
027 public interface ShoppingCategoryPersistence extends BasePersistence<ShoppingCategory> {
028 public void cacheResult(
029 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory);
030
031 public void cacheResult(
032 java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> shoppingCategories);
033
034 public com.liferay.portlet.shopping.model.ShoppingCategory create(
035 long categoryId);
036
037 public com.liferay.portlet.shopping.model.ShoppingCategory remove(
038 long categoryId)
039 throws com.liferay.portal.kernel.exception.SystemException,
040 com.liferay.portlet.shopping.NoSuchCategoryException;
041
042 public com.liferay.portlet.shopping.model.ShoppingCategory updateImpl(
043 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory,
044 boolean merge)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portlet.shopping.model.ShoppingCategory findByPrimaryKey(
048 long categoryId)
049 throws com.liferay.portal.kernel.exception.SystemException,
050 com.liferay.portlet.shopping.NoSuchCategoryException;
051
052 public com.liferay.portlet.shopping.model.ShoppingCategory fetchByPrimaryKey(
053 long categoryId)
054 throws com.liferay.portal.kernel.exception.SystemException;
055
056 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByGroupId(
057 long groupId)
058 throws com.liferay.portal.kernel.exception.SystemException;
059
060 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByGroupId(
061 long groupId, int start, int end)
062 throws com.liferay.portal.kernel.exception.SystemException;
063
064 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByGroupId(
065 long groupId, int start, int end,
066 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
067 throws com.liferay.portal.kernel.exception.SystemException;
068
069 public com.liferay.portlet.shopping.model.ShoppingCategory findByGroupId_First(
070 long groupId,
071 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072 throws com.liferay.portal.kernel.exception.SystemException,
073 com.liferay.portlet.shopping.NoSuchCategoryException;
074
075 public com.liferay.portlet.shopping.model.ShoppingCategory findByGroupId_Last(
076 long groupId,
077 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
078 throws com.liferay.portal.kernel.exception.SystemException,
079 com.liferay.portlet.shopping.NoSuchCategoryException;
080
081 public com.liferay.portlet.shopping.model.ShoppingCategory[] findByGroupId_PrevAndNext(
082 long categoryId, long groupId,
083 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
084 throws com.liferay.portal.kernel.exception.SystemException,
085 com.liferay.portlet.shopping.NoSuchCategoryException;
086
087 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> filterFindByGroupId(
088 long groupId)
089 throws com.liferay.portal.kernel.exception.SystemException;
090
091 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> filterFindByGroupId(
092 long groupId, int start, int end)
093 throws com.liferay.portal.kernel.exception.SystemException;
094
095 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> filterFindByGroupId(
096 long groupId, int start, int end,
097 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
098 throws com.liferay.portal.kernel.exception.SystemException;
099
100 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByG_P(
101 long groupId, long parentCategoryId)
102 throws com.liferay.portal.kernel.exception.SystemException;
103
104 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByG_P(
105 long groupId, long parentCategoryId, int start, int end)
106 throws com.liferay.portal.kernel.exception.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 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
111 throws com.liferay.portal.kernel.exception.SystemException;
112
113 public com.liferay.portlet.shopping.model.ShoppingCategory findByG_P_First(
114 long groupId, long parentCategoryId,
115 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116 throws com.liferay.portal.kernel.exception.SystemException,
117 com.liferay.portlet.shopping.NoSuchCategoryException;
118
119 public com.liferay.portlet.shopping.model.ShoppingCategory findByG_P_Last(
120 long groupId, long parentCategoryId,
121 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
122 throws com.liferay.portal.kernel.exception.SystemException,
123 com.liferay.portlet.shopping.NoSuchCategoryException;
124
125 public com.liferay.portlet.shopping.model.ShoppingCategory[] findByG_P_PrevAndNext(
126 long categoryId, long groupId, long parentCategoryId,
127 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
128 throws com.liferay.portal.kernel.exception.SystemException,
129 com.liferay.portlet.shopping.NoSuchCategoryException;
130
131 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> filterFindByG_P(
132 long groupId, long parentCategoryId)
133 throws com.liferay.portal.kernel.exception.SystemException;
134
135 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> filterFindByG_P(
136 long groupId, long parentCategoryId, int start, int end)
137 throws com.liferay.portal.kernel.exception.SystemException;
138
139 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> filterFindByG_P(
140 long groupId, long parentCategoryId, int start, int end,
141 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142 throws com.liferay.portal.kernel.exception.SystemException;
143
144 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findAll()
145 throws com.liferay.portal.kernel.exception.SystemException;
146
147 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findAll(
148 int start, int end)
149 throws com.liferay.portal.kernel.exception.SystemException;
150
151 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findAll(
152 int start, int end,
153 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156 public void removeByGroupId(long groupId)
157 throws com.liferay.portal.kernel.exception.SystemException;
158
159 public void removeByG_P(long groupId, long parentCategoryId)
160 throws com.liferay.portal.kernel.exception.SystemException;
161
162 public void removeAll()
163 throws com.liferay.portal.kernel.exception.SystemException;
164
165 public int countByGroupId(long groupId)
166 throws com.liferay.portal.kernel.exception.SystemException;
167
168 public int filterCountByGroupId(long groupId)
169 throws com.liferay.portal.kernel.exception.SystemException;
170
171 public int countByG_P(long groupId, long parentCategoryId)
172 throws com.liferay.portal.kernel.exception.SystemException;
173
174 public int filterCountByG_P(long groupId, long parentCategoryId)
175 throws com.liferay.portal.kernel.exception.SystemException;
176
177 public int countAll()
178 throws com.liferay.portal.kernel.exception.SystemException;
179 }