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