001
014
015 package com.liferay.portlet.shopping.service.persistence;
016
017 import com.liferay.portal.service.persistence.BasePersistence;
018
019 import com.liferay.portlet.shopping.model.ShoppingCart;
020
021
027 public interface ShoppingCartPersistence extends BasePersistence<ShoppingCart> {
028 public void cacheResult(
029 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart);
030
031 public void cacheResult(
032 java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> shoppingCarts);
033
034 public com.liferay.portlet.shopping.model.ShoppingCart create(long cartId);
035
036 public com.liferay.portlet.shopping.model.ShoppingCart remove(long cartId)
037 throws com.liferay.portal.kernel.exception.SystemException,
038 com.liferay.portlet.shopping.NoSuchCartException;
039
040 public com.liferay.portlet.shopping.model.ShoppingCart updateImpl(
041 com.liferay.portlet.shopping.model.ShoppingCart shoppingCart,
042 boolean merge)
043 throws com.liferay.portal.kernel.exception.SystemException;
044
045 public com.liferay.portlet.shopping.model.ShoppingCart findByPrimaryKey(
046 long cartId)
047 throws com.liferay.portal.kernel.exception.SystemException,
048 com.liferay.portlet.shopping.NoSuchCartException;
049
050 public com.liferay.portlet.shopping.model.ShoppingCart fetchByPrimaryKey(
051 long cartId) throws com.liferay.portal.kernel.exception.SystemException;
052
053 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByGroupId(
054 long groupId)
055 throws com.liferay.portal.kernel.exception.SystemException;
056
057 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByGroupId(
058 long groupId, int start, int end)
059 throws com.liferay.portal.kernel.exception.SystemException;
060
061 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByGroupId(
062 long groupId, int start, int end,
063 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
064 throws com.liferay.portal.kernel.exception.SystemException;
065
066 public com.liferay.portlet.shopping.model.ShoppingCart findByGroupId_First(
067 long groupId,
068 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
069 throws com.liferay.portal.kernel.exception.SystemException,
070 com.liferay.portlet.shopping.NoSuchCartException;
071
072 public com.liferay.portlet.shopping.model.ShoppingCart findByGroupId_Last(
073 long groupId,
074 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075 throws com.liferay.portal.kernel.exception.SystemException,
076 com.liferay.portlet.shopping.NoSuchCartException;
077
078 public com.liferay.portlet.shopping.model.ShoppingCart[] findByGroupId_PrevAndNext(
079 long cartId, long groupId,
080 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
081 throws com.liferay.portal.kernel.exception.SystemException,
082 com.liferay.portlet.shopping.NoSuchCartException;
083
084 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByUserId(
085 long userId) throws com.liferay.portal.kernel.exception.SystemException;
086
087 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByUserId(
088 long userId, int start, int end)
089 throws com.liferay.portal.kernel.exception.SystemException;
090
091 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findByUserId(
092 long userId, int start, int end,
093 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096 public com.liferay.portlet.shopping.model.ShoppingCart findByUserId_First(
097 long userId,
098 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
099 throws com.liferay.portal.kernel.exception.SystemException,
100 com.liferay.portlet.shopping.NoSuchCartException;
101
102 public com.liferay.portlet.shopping.model.ShoppingCart findByUserId_Last(
103 long userId,
104 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
105 throws com.liferay.portal.kernel.exception.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 orderByComparator)
111 throws com.liferay.portal.kernel.exception.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.kernel.exception.SystemException,
117 com.liferay.portlet.shopping.NoSuchCartException;
118
119 public com.liferay.portlet.shopping.model.ShoppingCart fetchByG_U(
120 long groupId, long userId)
121 throws com.liferay.portal.kernel.exception.SystemException;
122
123 public com.liferay.portlet.shopping.model.ShoppingCart fetchByG_U(
124 long groupId, long userId, boolean retrieveFromCache)
125 throws com.liferay.portal.kernel.exception.SystemException;
126
127 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findAll()
128 throws com.liferay.portal.kernel.exception.SystemException;
129
130 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findAll(
131 int start, int end)
132 throws com.liferay.portal.kernel.exception.SystemException;
133
134 public java.util.List<com.liferay.portlet.shopping.model.ShoppingCart> findAll(
135 int start, int end,
136 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
137 throws com.liferay.portal.kernel.exception.SystemException;
138
139 public void removeByGroupId(long groupId)
140 throws com.liferay.portal.kernel.exception.SystemException;
141
142 public void removeByUserId(long userId)
143 throws com.liferay.portal.kernel.exception.SystemException;
144
145 public void removeByG_U(long groupId, long userId)
146 throws com.liferay.portal.kernel.exception.SystemException,
147 com.liferay.portlet.shopping.NoSuchCartException;
148
149 public void removeAll()
150 throws com.liferay.portal.kernel.exception.SystemException;
151
152 public int countByGroupId(long groupId)
153 throws com.liferay.portal.kernel.exception.SystemException;
154
155 public int countByUserId(long userId)
156 throws com.liferay.portal.kernel.exception.SystemException;
157
158 public int countByG_U(long groupId, long userId)
159 throws com.liferay.portal.kernel.exception.SystemException;
160
161 public int countAll()
162 throws com.liferay.portal.kernel.exception.SystemException;
163 }