1
22
23 package com.liferay.portlet.shopping.service.persistence;
24
25
31 public interface ShoppingCartPersistence {
32 public com.liferay.portlet.shopping.model.ShoppingCart create(long cartId);
33
34 public com.liferay.portlet.shopping.model.ShoppingCart remove(long cartId)
35 throws com.liferay.portal.SystemException,
36 com.liferay.portlet.shopping.NoSuchCartException;
37
38 public com.liferay.portlet.shopping.model.ShoppingCart remove(
39 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart)
40 throws com.liferay.portal.SystemException;
41
42 public com.liferay.portlet.shopping.model.ShoppingCart update(
43 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart)
44 throws com.liferay.portal.SystemException;
45
46 public com.liferay.portlet.shopping.model.ShoppingCart update(
47 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart,
48 boolean merge) throws com.liferay.portal.SystemException;
49
50 public com.liferay.portlet.shopping.model.ShoppingCart updateImpl(
51 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart,
52 boolean merge) throws com.liferay.portal.SystemException;
53
54 public com.liferay.portlet.shopping.model.ShoppingCart findByPrimaryKey(
55 long cartId)
56 throws com.liferay.portal.SystemException,
57 com.liferay.portlet.shopping.NoSuchCartException;
58
59 public com.liferay.portlet.shopping.model.ShoppingCart fetchByPrimaryKey(
60 long cartId) throws com.liferay.portal.SystemException;
61
62 public java.util.List findByGroupId(long groupId)
63 throws com.liferay.portal.SystemException;
64
65 public java.util.List findByGroupId(long groupId, int begin, int end)
66 throws com.liferay.portal.SystemException;
67
68 public java.util.List findByGroupId(long groupId, int begin, int end,
69 com.liferay.portal.kernel.util.OrderByComparator obc)
70 throws com.liferay.portal.SystemException;
71
72 public com.liferay.portlet.shopping.model.ShoppingCart findByGroupId_First(
73 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
74 throws com.liferay.portal.SystemException,
75 com.liferay.portlet.shopping.NoSuchCartException;
76
77 public com.liferay.portlet.shopping.model.ShoppingCart findByGroupId_Last(
78 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
79 throws com.liferay.portal.SystemException,
80 com.liferay.portlet.shopping.NoSuchCartException;
81
82 public com.liferay.portlet.shopping.model.ShoppingCart[] findByGroupId_PrevAndNext(
83 long cartId, long groupId,
84 com.liferay.portal.kernel.util.OrderByComparator obc)
85 throws com.liferay.portal.SystemException,
86 com.liferay.portlet.shopping.NoSuchCartException;
87
88 public java.util.List findByUserId(long userId)
89 throws com.liferay.portal.SystemException;
90
91 public java.util.List findByUserId(long userId, int begin, int end)
92 throws com.liferay.portal.SystemException;
93
94 public java.util.List findByUserId(long userId, int begin, int end,
95 com.liferay.portal.kernel.util.OrderByComparator obc)
96 throws com.liferay.portal.SystemException;
97
98 public com.liferay.portlet.shopping.model.ShoppingCart findByUserId_First(
99 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
100 throws com.liferay.portal.SystemException,
101 com.liferay.portlet.shopping.NoSuchCartException;
102
103 public com.liferay.portlet.shopping.model.ShoppingCart findByUserId_Last(
104 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
105 throws com.liferay.portal.SystemException,
106 com.liferay.portlet.shopping.NoSuchCartException;
107
108 public com.liferay.portlet.shopping.model.ShoppingCart[] findByUserId_PrevAndNext(
109 long cartId, long userId,
110 com.liferay.portal.kernel.util.OrderByComparator obc)
111 throws com.liferay.portal.SystemException,
112 com.liferay.portlet.shopping.NoSuchCartException;
113
114 public com.liferay.portlet.shopping.model.ShoppingCart findByG_U(
115 long groupId, long userId)
116 throws com.liferay.portal.SystemException,
117 com.liferay.portlet.shopping.NoSuchCartException;
118
119 public com.liferay.portlet.shopping.model.ShoppingCart fetchByG_U(
120 long groupId, long userId) throws com.liferay.portal.SystemException;
121
122 public java.util.List findWithDynamicQuery(
123 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
124 throws com.liferay.portal.SystemException;
125
126 public java.util.List findWithDynamicQuery(
127 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
128 int begin, int end) throws com.liferay.portal.SystemException;
129
130 public java.util.List findAll() throws com.liferay.portal.SystemException;
131
132 public java.util.List findAll(int begin, int end)
133 throws com.liferay.portal.SystemException;
134
135 public java.util.List findAll(int begin, int end,
136 com.liferay.portal.kernel.util.OrderByComparator obc)
137 throws com.liferay.portal.SystemException;
138
139 public void removeByGroupId(long groupId)
140 throws com.liferay.portal.SystemException;
141
142 public void removeByUserId(long userId)
143 throws com.liferay.portal.SystemException;
144
145 public void removeByG_U(long groupId, long userId)
146 throws com.liferay.portal.SystemException,
147 com.liferay.portlet.shopping.NoSuchCartException;
148
149 public void removeAll() throws com.liferay.portal.SystemException;
150
151 public int countByGroupId(long groupId)
152 throws com.liferay.portal.SystemException;
153
154 public int countByUserId(long userId)
155 throws com.liferay.portal.SystemException;
156
157 public int countByG_U(long groupId, long userId)
158 throws com.liferay.portal.SystemException;
159
160 public int countAll() throws com.liferay.portal.SystemException;
161 }