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.SystemException,
47 com.liferay.portlet.shopping.NoSuchCategoryException;
48
49
52 public com.liferay.portlet.shopping.model.ShoppingCategory update(
53 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory)
54 throws com.liferay.portal.SystemException;
55
56 public com.liferay.portlet.shopping.model.ShoppingCategory updateImpl(
57 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory,
58 boolean merge) throws com.liferay.portal.SystemException;
59
60 public com.liferay.portlet.shopping.model.ShoppingCategory findByPrimaryKey(
61 long categoryId)
62 throws com.liferay.portal.SystemException,
63 com.liferay.portlet.shopping.NoSuchCategoryException;
64
65 public com.liferay.portlet.shopping.model.ShoppingCategory fetchByPrimaryKey(
66 long categoryId) throws com.liferay.portal.SystemException;
67
68 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByGroupId(
69 long groupId) throws com.liferay.portal.SystemException;
70
71 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByGroupId(
72 long groupId, int start, int end)
73 throws com.liferay.portal.SystemException;
74
75 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByGroupId(
76 long groupId, int start, int end,
77 com.liferay.portal.kernel.util.OrderByComparator obc)
78 throws com.liferay.portal.SystemException;
79
80 public com.liferay.portlet.shopping.model.ShoppingCategory findByGroupId_First(
81 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
82 throws com.liferay.portal.SystemException,
83 com.liferay.portlet.shopping.NoSuchCategoryException;
84
85 public com.liferay.portlet.shopping.model.ShoppingCategory findByGroupId_Last(
86 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
87 throws com.liferay.portal.SystemException,
88 com.liferay.portlet.shopping.NoSuchCategoryException;
89
90 public com.liferay.portlet.shopping.model.ShoppingCategory[] findByGroupId_PrevAndNext(
91 long categoryId, long groupId,
92 com.liferay.portal.kernel.util.OrderByComparator obc)
93 throws com.liferay.portal.SystemException,
94 com.liferay.portlet.shopping.NoSuchCategoryException;
95
96 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findByG_P(
97 long groupId, long parentCategoryId)
98 throws com.liferay.portal.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 throws com.liferay.portal.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 com.liferay.portal.kernel.util.OrderByComparator obc)
107 throws com.liferay.portal.SystemException;
108
109 public com.liferay.portlet.shopping.model.ShoppingCategory findByG_P_First(
110 long groupId, long parentCategoryId,
111 com.liferay.portal.kernel.util.OrderByComparator obc)
112 throws com.liferay.portal.SystemException,
113 com.liferay.portlet.shopping.NoSuchCategoryException;
114
115 public com.liferay.portlet.shopping.model.ShoppingCategory findByG_P_Last(
116 long groupId, long parentCategoryId,
117 com.liferay.portal.kernel.util.OrderByComparator obc)
118 throws com.liferay.portal.SystemException,
119 com.liferay.portlet.shopping.NoSuchCategoryException;
120
121 public com.liferay.portlet.shopping.model.ShoppingCategory[] findByG_P_PrevAndNext(
122 long categoryId, long groupId, long parentCategoryId,
123 com.liferay.portal.kernel.util.OrderByComparator obc)
124 throws com.liferay.portal.SystemException,
125 com.liferay.portlet.shopping.NoSuchCategoryException;
126
127 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findAll()
128 throws com.liferay.portal.SystemException;
129
130 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findAll(
131 int start, int end) throws com.liferay.portal.SystemException;
132
133 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCategory> findAll(
134 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
135 throws com.liferay.portal.SystemException;
136
137 public void removeByGroupId(long groupId)
138 throws com.liferay.portal.SystemException;
139
140 public void removeByG_P(long groupId, long parentCategoryId)
141 throws com.liferay.portal.SystemException;
142
143 public void removeAll() throws com.liferay.portal.SystemException;
144
145 public int countByGroupId(long groupId)
146 throws com.liferay.portal.SystemException;
147
148 public int countByG_P(long groupId, long parentCategoryId)
149 throws com.liferay.portal.SystemException;
150
151 public int countAll() throws com.liferay.portal.SystemException;
152 }