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