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 findByPrimaryKey(
51 long cartId)
52 throws com.liferay.portal.SystemException,
53 com.liferay.portlet.shopping.NoSuchCartException;
54
55 public com.liferay.portlet.shopping.model.ShoppingCart fetchByPrimaryKey(
56 long cartId) throws com.liferay.portal.SystemException;
57
58 public java.util.List findByGroupId(long groupId)
59 throws com.liferay.portal.SystemException;
60
61 public java.util.List findByGroupId(long groupId, int begin, int end)
62 throws com.liferay.portal.SystemException;
63
64 public java.util.List findByGroupId(long groupId, int begin, int end,
65 com.liferay.portal.kernel.util.OrderByComparator obc)
66 throws com.liferay.portal.SystemException;
67
68 public com.liferay.portlet.shopping.model.ShoppingCart findByGroupId_First(
69 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
70 throws com.liferay.portal.SystemException,
71 com.liferay.portlet.shopping.NoSuchCartException;
72
73 public com.liferay.portlet.shopping.model.ShoppingCart findByGroupId_Last(
74 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
75 throws com.liferay.portal.SystemException,
76 com.liferay.portlet.shopping.NoSuchCartException;
77
78 public com.liferay.portlet.shopping.model.ShoppingCart[] findByGroupId_PrevAndNext(
79 long cartId, long groupId,
80 com.liferay.portal.kernel.util.OrderByComparator obc)
81 throws com.liferay.portal.SystemException,
82 com.liferay.portlet.shopping.NoSuchCartException;
83
84 public java.util.List findByUserId(long userId)
85 throws com.liferay.portal.SystemException;
86
87 public java.util.List findByUserId(long userId, int begin, int end)
88 throws com.liferay.portal.SystemException;
89
90 public java.util.List findByUserId(long userId, int begin, int end,
91 com.liferay.portal.kernel.util.OrderByComparator obc)
92 throws com.liferay.portal.SystemException;
93
94 public com.liferay.portlet.shopping.model.ShoppingCart findByUserId_First(
95 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
96 throws com.liferay.portal.SystemException,
97 com.liferay.portlet.shopping.NoSuchCartException;
98
99 public com.liferay.portlet.shopping.model.ShoppingCart findByUserId_Last(
100 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
101 throws com.liferay.portal.SystemException,
102 com.liferay.portlet.shopping.NoSuchCartException;
103
104 public com.liferay.portlet.shopping.model.ShoppingCart[] findByUserId_PrevAndNext(
105 long cartId, long userId,
106 com.liferay.portal.kernel.util.OrderByComparator obc)
107 throws com.liferay.portal.SystemException,
108 com.liferay.portlet.shopping.NoSuchCartException;
109
110 public com.liferay.portlet.shopping.model.ShoppingCart findByG_U(
111 long groupId, long userId)
112 throws com.liferay.portal.SystemException,
113 com.liferay.portlet.shopping.NoSuchCartException;
114
115 public com.liferay.portlet.shopping.model.ShoppingCart fetchByG_U(
116 long groupId, long userId) throws com.liferay.portal.SystemException;
117
118 public java.util.List findWithDynamicQuery(
119 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
120 throws com.liferay.portal.SystemException;
121
122 public java.util.List findWithDynamicQuery(
123 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
124 int begin, int end) throws com.liferay.portal.SystemException;
125
126 public java.util.List findAll() throws com.liferay.portal.SystemException;
127
128 public java.util.List findAll(int begin, int end)
129 throws com.liferay.portal.SystemException;
130
131 public java.util.List findAll(int begin, int end,
132 com.liferay.portal.kernel.util.OrderByComparator obc)
133 throws com.liferay.portal.SystemException;
134
135 public void removeByGroupId(long groupId)
136 throws com.liferay.portal.SystemException;
137
138 public void removeByUserId(long userId)
139 throws com.liferay.portal.SystemException;
140
141 public void removeByG_U(long groupId, long userId)
142 throws com.liferay.portal.SystemException,
143 com.liferay.portlet.shopping.NoSuchCartException;
144
145 public void removeAll() throws com.liferay.portal.SystemException;
146
147 public int countByGroupId(long groupId)
148 throws com.liferay.portal.SystemException;
149
150 public int countByUserId(long userId)
151 throws com.liferay.portal.SystemException;
152
153 public int countByG_U(long groupId, long userId)
154 throws com.liferay.portal.SystemException;
155
156 public int countAll() throws com.liferay.portal.SystemException;
157 }