|
Liferay 6.2-ce-ga5 | |||||||||
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 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)
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, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl |
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, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, 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_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
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
Constructor Detail |
---|
public ShoppingOrderItemPersistenceImpl()
Method Detail |
---|
public 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from ShoppingOrderItemModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from ShoppingOrderItemModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 void removeByOrderId(long orderId) throws SystemException
removeByOrderId
in interface ShoppingOrderItemPersistence
orderId
- the order ID
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 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) 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 update
SystemException
- if a system exception occurredprotected ShoppingOrderItem toUnwrappedModel(ShoppingOrderItem shoppingOrderItem)
public ShoppingOrderItem findByPrimaryKey(Serializable primaryKey) throws NoSuchOrderItemException, 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
NoSuchOrderItemException
- 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> 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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from ShoppingOrderItemModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil.ALL_POS
), then the query will include the default ORDER BY logic from ShoppingOrderItemModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 removeAll() throws SystemException
removeAll
in interface ShoppingOrderItemPersistence
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.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |