|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.persistence.impl.BasePersistenceImpl<ShoppingOrderItem> com.liferay.portlet.shopping.service.persistence.ShoppingOrderItemPersistenceImpl
public class ShoppingOrderItemPersistenceImpl
The persistence implementation for the shopping order item service.
Caching information and settings can be found in portal.properties
ShoppingOrderItemPersistence
,
ShoppingOrderItemUtil
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
---|
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR |
Constructor Summary | |
---|---|
ShoppingOrderItemPersistenceImpl()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Initializes the shopping order item persistence. |
void |
cacheResult(List<ShoppingOrderItem> shoppingOrderItems)
Caches the shopping order items in the entity cache if it is enabled. |
void |
cacheResult(ShoppingOrderItem shoppingOrderItem)
Caches the shopping order item in the entity cache if it is enabled. |
void |
clearCache()
Clears the cache for all shopping order items. |
void |
clearCache(List<ShoppingOrderItem> shoppingOrderItems)
Clears the cache for a List instances of this model. |
void |
clearCache(ShoppingOrderItem shoppingOrderItem)
Clears the cache for the shopping order item. |
int |
countAll()
Returns the number of shopping order items. |
int |
countByOrderId(long orderId)
Returns the number of shopping order items where orderId = ?. |
ShoppingOrderItem |
create(long orderItemId)
Creates a new shopping order item with the primary key. |
void |
destroy()
|
ShoppingOrderItem |
fetchByOrderId_First(long orderId,
OrderByComparator orderByComparator)
Returns the first shopping order item in the ordered set where orderId = ?. |
ShoppingOrderItem |
fetchByOrderId_Last(long orderId,
OrderByComparator orderByComparator)
Returns the last shopping order item in the ordered set where orderId = ?. |
ShoppingOrderItem |
fetchByPrimaryKey(long orderItemId)
Returns the shopping order item with the primary key or returns null if it could not be found. |
ShoppingOrderItem |
fetchByPrimaryKey(Serializable primaryKey)
Returns the shopping order item with the primary key or returns null if it could not be found. |
List<ShoppingOrderItem> |
findAll()
Returns all the shopping order items. |
List<ShoppingOrderItem> |
findAll(int start,
int end)
Returns a range of all the shopping order items. |
List<ShoppingOrderItem> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping order items. |
ShoppingOrderItem |
findByOrderId_First(long orderId,
OrderByComparator orderByComparator)
Returns the first shopping order item in the ordered set where orderId = ?. |
ShoppingOrderItem |
findByOrderId_Last(long orderId,
OrderByComparator orderByComparator)
Returns the last shopping order item in the ordered set where orderId = ?. |
ShoppingOrderItem[] |
findByOrderId_PrevAndNext(long orderItemId,
long orderId,
OrderByComparator orderByComparator)
Returns the shopping order items before and after the current shopping order item in the ordered set where orderId = ?. |
List<ShoppingOrderItem> |
findByOrderId(long orderId)
Returns all the shopping order items where orderId = ?. |
List<ShoppingOrderItem> |
findByOrderId(long orderId,
int start,
int end)
Returns a range of all the shopping order items where orderId = ?. |
List<ShoppingOrderItem> |
findByOrderId(long orderId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping order items where orderId = ?. |
ShoppingOrderItem |
findByPrimaryKey(long orderItemId)
Returns the shopping order item with the primary key or throws a NoSuchOrderItemException if it could not be found. |
ShoppingOrderItem |
findByPrimaryKey(Serializable primaryKey)
Returns the shopping order item with the primary key or throws a NoSuchModelException if it could not be found. |
protected ShoppingOrderItem |
getByOrderId_PrevAndNext(Session session,
ShoppingOrderItem shoppingOrderItem,
long orderId,
OrderByComparator orderByComparator,
boolean previous)
|
ShoppingOrderItem |
remove(long orderItemId)
Removes the shopping order item with the primary key from the database. |
ShoppingOrderItem |
remove(Serializable primaryKey)
Removes the shopping order item with the primary key from the database. |
void |
removeAll()
Removes all the shopping order items from the database. |
void |
removeByOrderId(long orderId)
Removes all the shopping order items where orderId = ? from the database. |
protected ShoppingOrderItem |
removeImpl(ShoppingOrderItem shoppingOrderItem)
Removes the model instance from the database. |
protected ShoppingOrderItem |
toUnwrappedModel(ShoppingOrderItem shoppingOrderItem)
|
ShoppingOrderItem |
updateImpl(ShoppingOrderItem shoppingOrderItem,
boolean merge)
Updates the model instance in the database or adds it if it does not yet exist. |
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
---|
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getClassLoader, getDataSource, getDB, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
---|
closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update |
Field Detail |
---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_ORDERID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ORDERID
public static final FinderPath FINDER_PATH_COUNT_BY_ORDERID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
@BeanReference(type=ShoppingCartPersistence.class) protected ShoppingCartPersistence shoppingCartPersistence
@BeanReference(type=ShoppingCategoryPersistence.class) protected ShoppingCategoryPersistence shoppingCategoryPersistence
@BeanReference(type=ShoppingCouponPersistence.class) protected ShoppingCouponPersistence shoppingCouponPersistence
@BeanReference(type=ShoppingItemPersistence.class) protected ShoppingItemPersistence shoppingItemPersistence
@BeanReference(type=ShoppingItemFieldPersistence.class) protected ShoppingItemFieldPersistence shoppingItemFieldPersistence
@BeanReference(type=ShoppingItemPricePersistence.class) protected ShoppingItemPricePersistence shoppingItemPricePersistence
@BeanReference(type=ShoppingOrderPersistence.class) protected ShoppingOrderPersistence shoppingOrderPersistence
@BeanReference(type=ShoppingOrderItemPersistence.class) protected ShoppingOrderItemPersistence shoppingOrderItemPersistence
@BeanReference(type=ResourcePersistence.class) protected ResourcePersistence resourcePersistence
@BeanReference(type=UserPersistence.class) protected UserPersistence userPersistence
Constructor Detail |
---|
public ShoppingOrderItemPersistenceImpl()
Method Detail |
---|
public void cacheResult(ShoppingOrderItem shoppingOrderItem)
cacheResult
in interface ShoppingOrderItemPersistence
shoppingOrderItem
- the shopping order itempublic void cacheResult(List<ShoppingOrderItem> shoppingOrderItems)
cacheResult
in interface ShoppingOrderItemPersistence
shoppingOrderItems
- the shopping order itemspublic void clearCache()
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<ShoppingOrderItem>
clearCache
in class BasePersistenceImpl<ShoppingOrderItem>
public void clearCache(ShoppingOrderItem shoppingOrderItem)
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<ShoppingOrderItem>
clearCache
in class BasePersistenceImpl<ShoppingOrderItem>
shoppingOrderItem
- the instance of this model to clear the cache forpublic void clearCache(List<ShoppingOrderItem> shoppingOrderItems)
BasePersistence
The EntityCache
and FinderCache
are both cleared by this
method.
clearCache
in interface BasePersistence<ShoppingOrderItem>
clearCache
in class BasePersistenceImpl<ShoppingOrderItem>
shoppingOrderItems
- the List instances of this model to clear the cache forpublic ShoppingOrderItem create(long orderItemId)
create
in interface ShoppingOrderItemPersistence
orderItemId
- the primary key for the new shopping order item
public ShoppingOrderItem remove(long orderItemId) throws NoSuchOrderItemException, SystemException
remove
in interface ShoppingOrderItemPersistence
orderItemId
- the primary key of the shopping order item
NoSuchOrderItemException
- if a shopping order item with the primary key could not be found
SystemException
- if a system exception occurredpublic ShoppingOrderItem remove(Serializable primaryKey) throws NoSuchOrderItemException, SystemException
remove
in interface BasePersistence<ShoppingOrderItem>
remove
in class BasePersistenceImpl<ShoppingOrderItem>
primaryKey
- the primary key of the shopping order item
NoSuchOrderItemException
- if a shopping order item with the primary key could not be found
SystemException
- if a system exception occurredprotected ShoppingOrderItem removeImpl(ShoppingOrderItem shoppingOrderItem) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.update(BaseModel,
boolean)
depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl
in class BasePersistenceImpl<ShoppingOrderItem>
shoppingOrderItem
- the model instance to remove
SystemException
- if a system exception occurredpublic ShoppingOrderItem updateImpl(ShoppingOrderItem shoppingOrderItem, boolean merge) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.remove(BaseModel)
depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl
in interface ShoppingOrderItemPersistence
updateImpl
in class BasePersistenceImpl<ShoppingOrderItem>
shoppingOrderItem
- the model instance to updatemerge
- whether to merge the model instance with the current
session. See BatchSession.update(
com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean)
for an explanation.
SystemException
- if a system exception occurredprotected ShoppingOrderItem toUnwrappedModel(ShoppingOrderItem shoppingOrderItem)
public ShoppingOrderItem findByPrimaryKey(Serializable primaryKey) throws NoSuchModelException, SystemException
NoSuchModelException
if it could not be found.
findByPrimaryKey
in interface BasePersistence<ShoppingOrderItem>
findByPrimaryKey
in class BasePersistenceImpl<ShoppingOrderItem>
primaryKey
- the primary key of the shopping order item
NoSuchModelException
- if a shopping order item with the primary key could not be found
SystemException
- if a system exception occurredpublic ShoppingOrderItem findByPrimaryKey(long orderItemId) throws NoSuchOrderItemException, SystemException
NoSuchOrderItemException
if it could not be found.
findByPrimaryKey
in interface ShoppingOrderItemPersistence
orderItemId
- the primary key of the shopping order item
NoSuchOrderItemException
- if a shopping order item with the primary key could not be found
SystemException
- if a system exception occurredpublic ShoppingOrderItem fetchByPrimaryKey(Serializable primaryKey) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface BasePersistence<ShoppingOrderItem>
fetchByPrimaryKey
in class BasePersistenceImpl<ShoppingOrderItem>
primaryKey
- the primary key of the shopping order item
null
if a shopping order item with the primary key could not be found
SystemException
- if a system exception occurredpublic ShoppingOrderItem fetchByPrimaryKey(long orderItemId) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface ShoppingOrderItemPersistence
orderItemId
- the primary key of the shopping order item
null
if a shopping order item with the primary key could not be found
SystemException
- if a system exception occurredpublic List<ShoppingOrderItem> findByOrderId(long orderId) throws SystemException
findByOrderId
in interface ShoppingOrderItemPersistence
orderId
- the order ID
SystemException
- if a system exception occurredpublic List<ShoppingOrderItem> findByOrderId(long orderId, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findByOrderId
in interface ShoppingOrderItemPersistence
orderId
- the order IDstart
- the lower bound of the range of shopping order itemsend
- the upper bound of the range of shopping order items (not inclusive)
SystemException
- if a system exception occurredpublic List<ShoppingOrderItem> findByOrderId(long orderId, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findByOrderId
in interface ShoppingOrderItemPersistence
orderId
- the order IDstart
- the lower bound of the range of shopping order itemsend
- the upper bound of the range of shopping order items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic ShoppingOrderItem findByOrderId_First(long orderId, OrderByComparator orderByComparator) throws NoSuchOrderItemException, SystemException
findByOrderId_First
in interface ShoppingOrderItemPersistence
orderId
- the order IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchOrderItemException
- if a matching shopping order item could not be found
SystemException
- if a system exception occurredpublic ShoppingOrderItem fetchByOrderId_First(long orderId, OrderByComparator orderByComparator) throws SystemException
fetchByOrderId_First
in interface ShoppingOrderItemPersistence
orderId
- the order IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching shopping order item could not be found
SystemException
- if a system exception occurredpublic ShoppingOrderItem findByOrderId_Last(long orderId, OrderByComparator orderByComparator) throws NoSuchOrderItemException, SystemException
findByOrderId_Last
in interface ShoppingOrderItemPersistence
orderId
- the order IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchOrderItemException
- if a matching shopping order item could not be found
SystemException
- if a system exception occurredpublic ShoppingOrderItem fetchByOrderId_Last(long orderId, OrderByComparator orderByComparator) throws SystemException
fetchByOrderId_Last
in interface ShoppingOrderItemPersistence
orderId
- the order IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching shopping order item could not be found
SystemException
- if a system exception occurredpublic ShoppingOrderItem[] findByOrderId_PrevAndNext(long orderItemId, long orderId, OrderByComparator orderByComparator) throws NoSuchOrderItemException, SystemException
findByOrderId_PrevAndNext
in interface ShoppingOrderItemPersistence
orderItemId
- the primary key of the current shopping order itemorderId
- the order IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchOrderItemException
- if a shopping order item with the primary key could not be found
SystemException
- if a system exception occurredprotected ShoppingOrderItem getByOrderId_PrevAndNext(Session session, ShoppingOrderItem shoppingOrderItem, long orderId, OrderByComparator orderByComparator, boolean previous)
public List<ShoppingOrderItem> findAll() throws SystemException
findAll
in interface ShoppingOrderItemPersistence
SystemException
- if a system exception occurredpublic List<ShoppingOrderItem> findAll(int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findAll
in interface ShoppingOrderItemPersistence
start
- the lower bound of the range of shopping order itemsend
- the upper bound of the range of shopping order items (not inclusive)
SystemException
- if a system exception occurredpublic List<ShoppingOrderItem> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findAll
in interface ShoppingOrderItemPersistence
start
- the lower bound of the range of shopping order itemsend
- the upper bound of the range of shopping order items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic void removeByOrderId(long orderId) throws SystemException
removeByOrderId
in interface ShoppingOrderItemPersistence
orderId
- the order ID
SystemException
- if a system exception occurredpublic void removeAll() throws SystemException
removeAll
in interface ShoppingOrderItemPersistence
SystemException
- if a system exception occurredpublic int countByOrderId(long orderId) throws SystemException
countByOrderId
in interface ShoppingOrderItemPersistence
orderId
- the order ID
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface ShoppingOrderItemPersistence
SystemException
- if a system exception occurredpublic void afterPropertiesSet()
public void destroy()
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |