|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<ShoppingOrderItem>
com.liferay.portlet.shopping.service.persistence.ShoppingOrderItemPersistenceImpl
public class ShoppingOrderItemPersistenceImpl
The persistence for the shopping order item service.
Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regnerate this class.
Caching information and settings can be found in portal.properties
ShoppingOrderItemPersistence,
ShoppingOrderItemUtil| Field Summary | |
|---|---|
static String |
FINDER_CLASS_NAME_ENTITY
|
static String |
FINDER_CLASS_NAME_LIST
|
static FinderPath |
FINDER_PATH_COUNT_ALL
|
static FinderPath |
FINDER_PATH_COUNT_BY_ORDERID
|
static FinderPath |
FINDER_PATH_FIND_ALL
|
static FinderPath |
FINDER_PATH_FIND_BY_ORDERID
|
protected ResourcePersistence |
resourcePersistence
|
protected ShoppingCartPersistence |
shoppingCartPersistence
|
protected ShoppingCategoryPersistence |
shoppingCategoryPersistence
|
protected ShoppingCouponPersistence |
shoppingCouponPersistence
|
protected ShoppingItemFieldPersistence |
shoppingItemFieldPersistence
|
protected ShoppingItemPersistence |
shoppingItemPersistence
|
protected ShoppingItemPricePersistence |
shoppingItemPricePersistence
|
protected ShoppingOrderItemPersistence |
shoppingOrderItemPersistence
|
protected ShoppingOrderPersistence |
shoppingOrderPersistence
|
protected UserPersistence |
userPersistence
|
| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
COUNT_COLUMN_NAME, 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(ShoppingOrderItem shoppingOrderItem)
Clears the cache for the shopping order item. |
int |
countAll()
Counts all the shopping order items. |
int |
countByOrderId(long orderId)
Counts all the shopping order items where orderId = ?. |
ShoppingOrderItem |
create(long orderItemId)
Creates a new shopping order item with the primary key. |
ShoppingOrderItem |
fetchByPrimaryKey(long orderItemId)
Finds the shopping order item with the primary key or returns null if it could not be found. |
ShoppingOrderItem |
fetchByPrimaryKey(Serializable primaryKey)
Finds the shopping order item with the primary key or returns null if it could not be found. |
List<ShoppingOrderItem> |
findAll()
Finds all the shopping order items. |
List<ShoppingOrderItem> |
findAll(int start,
int end)
Finds a range of all the shopping order items. |
List<ShoppingOrderItem> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the shopping order items. |
ShoppingOrderItem |
findByOrderId_First(long orderId,
OrderByComparator orderByComparator)
Finds the first shopping order item in the ordered set where orderId = ?. |
ShoppingOrderItem |
findByOrderId_Last(long orderId,
OrderByComparator orderByComparator)
Finds the last shopping order item in the ordered set where orderId = ?. |
ShoppingOrderItem[] |
findByOrderId_PrevAndNext(long orderItemId,
long orderId,
OrderByComparator orderByComparator)
Finds the shopping order items before and after the current shopping order item in the ordered set where orderId = ?. |
List<ShoppingOrderItem> |
findByOrderId(long orderId)
Finds all the shopping order items where orderId = ?. |
List<ShoppingOrderItem> |
findByOrderId(long orderId,
int start,
int end)
Finds a range of all the shopping order items where orderId = ?. |
List<ShoppingOrderItem> |
findByOrderId(long orderId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the shopping order items where orderId = ?. |
ShoppingOrderItem |
findByPrimaryKey(long orderItemId)
Finds the shopping order item with the primary key or throws a NoSuchOrderItemException if it could not be found. |
ShoppingOrderItem |
findByPrimaryKey(Serializable primaryKey)
Finds 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, getDataSource, 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 |
|---|
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update |
| Field Detail |
|---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST
public static final FinderPath FINDER_PATH_FIND_BY_ORDERID
public static final FinderPath FINDER_PATH_COUNT_BY_ORDERID
public static final FinderPath FINDER_PATH_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 ShoppingOrderItemPersistenceshoppingOrderItem - the shopping order item to cachepublic void cacheResult(List<ShoppingOrderItem> shoppingOrderItems)
cacheResult in interface ShoppingOrderItemPersistenceshoppingOrderItems - the shopping order items to cachepublic 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 ShoppingOrderItem create(long orderItemId)
create in interface ShoppingOrderItemPersistenceorderItemId - the primary key for the new shopping order item
public ShoppingOrderItem remove(Serializable primaryKey)
throws NoSuchModelException,
SystemException
remove in interface BasePersistence<ShoppingOrderItem>remove in class BasePersistenceImpl<ShoppingOrderItem>primaryKey - the primary key of the shopping order item to remove
NoSuchModelException - if a shopping order item with the primary key could not be found
SystemException - if a system exception occurred
public ShoppingOrderItem remove(long orderItemId)
throws NoSuchOrderItemException,
SystemException
remove in interface ShoppingOrderItemPersistenceorderItemId - the primary key of the shopping order item to remove
NoSuchOrderItemException - if a shopping order item with the primary key could not be found
SystemException - if a system exception occurred
protected ShoppingOrderItem removeImpl(ShoppingOrderItem shoppingOrderItem)
throws SystemException
BasePersistenceImplBasePersistenceImpl.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 occurred
public ShoppingOrderItem updateImpl(ShoppingOrderItem shoppingOrderItem,
boolean merge)
throws SystemException
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface ShoppingOrderItemPersistenceupdateImpl 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 to find
NoSuchModelException - if a shopping order item with the primary key could not be found
SystemException - if a system exception occurred
public ShoppingOrderItem findByPrimaryKey(long orderItemId)
throws NoSuchOrderItemException,
SystemException
NoSuchOrderItemException if it could not be found.
findByPrimaryKey in interface ShoppingOrderItemPersistenceorderItemId - the primary key of the shopping order item to find
NoSuchOrderItemException - if a shopping order item with the primary key could not be found
SystemException - if a system exception occurred
public 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 to find
null if a shopping order item with the primary key could not be found
SystemException - if a system exception occurred
public ShoppingOrderItem fetchByPrimaryKey(long orderItemId)
throws SystemException
null if it could not be found.
fetchByPrimaryKey in interface ShoppingOrderItemPersistenceorderItemId - the primary key of the shopping order item to find
null if a shopping order item with the primary key could not be found
SystemException - if a system exception occurred
public List<ShoppingOrderItem> findByOrderId(long orderId)
throws SystemException
findByOrderId in interface ShoppingOrderItemPersistenceorderId - the order id to search with
SystemException - if a system exception occurred
public 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 ShoppingOrderItemPersistenceorderId - the order id to search withstart - the lower bound of the range of shopping order items to returnend - the upper bound of the range of shopping order items to return (not inclusive)
SystemException - if a system exception occurred
public 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 ShoppingOrderItemPersistenceorderId - the order id to search withstart - the lower bound of the range of shopping order items to returnend - the upper bound of the range of shopping order items to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public ShoppingOrderItem findByOrderId_First(long orderId,
OrderByComparator orderByComparator)
throws NoSuchOrderItemException,
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_First in interface ShoppingOrderItemPersistenceorderId - the order id to search withorderByComparator - the comparator to order the set by
NoSuchOrderItemException - if a matching shopping order item could not be found
SystemException - if a system exception occurred
public ShoppingOrderItem findByOrderId_Last(long orderId,
OrderByComparator orderByComparator)
throws NoSuchOrderItemException,
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_Last in interface ShoppingOrderItemPersistenceorderId - the order id to search withorderByComparator - the comparator to order the set by
NoSuchOrderItemException - if a matching shopping order item could not be found
SystemException - if a system exception occurred
public ShoppingOrderItem[] findByOrderId_PrevAndNext(long orderItemId,
long orderId,
OrderByComparator orderByComparator)
throws NoSuchOrderItemException,
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_PrevAndNext in interface ShoppingOrderItemPersistenceorderItemId - the primary key of the current shopping order itemorderId - the order id to search withorderByComparator - the comparator to order the set by
NoSuchOrderItemException - if a shopping order item with the primary key could not be found
SystemException - if a system exception occurred
protected ShoppingOrderItem getByOrderId_PrevAndNext(Session session,
ShoppingOrderItem shoppingOrderItem,
long orderId,
OrderByComparator orderByComparator,
boolean previous)
public List<ShoppingOrderItem> findAll()
throws SystemException
findAll in interface ShoppingOrderItemPersistenceSystemException - if a system exception occurred
public 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 ShoppingOrderItemPersistencestart - the lower bound of the range of shopping order items to returnend - the upper bound of the range of shopping order items to return (not inclusive)
SystemException - if a system exception occurred
public 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 ShoppingOrderItemPersistencestart - the lower bound of the range of shopping order items to returnend - the upper bound of the range of shopping order items to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public void removeByOrderId(long orderId)
throws SystemException
removeByOrderId in interface ShoppingOrderItemPersistenceorderId - the order id to search with
SystemException - if a system exception occurred
public void removeAll()
throws SystemException
removeAll in interface ShoppingOrderItemPersistenceSystemException - if a system exception occurred
public int countByOrderId(long orderId)
throws SystemException
countByOrderId in interface ShoppingOrderItemPersistenceorderId - the order id to search with
SystemException - if a system exception occurred
public int countAll()
throws SystemException
countAll in interface ShoppingOrderItemPersistenceSystemException - if a system exception occurredpublic void afterPropertiesSet()
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||