|
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<ShoppingItem> com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistenceImpl
public class ShoppingItemPersistenceImpl
The persistence implementation for the shopping item service.
Caching information and settings can be found in portal.properties
ShoppingItemPersistence
,
ShoppingItemUtil
Nested Class Summary | |
---|---|
protected class |
ShoppingItemPersistenceImpl.ContainsShoppingItemPrice
|
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 | |
---|---|
ShoppingItemPersistenceImpl()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Initializes the shopping item persistence. |
void |
cacheResult(List<ShoppingItem> shoppingItems)
Caches the shopping items in the entity cache if it is enabled. |
void |
cacheResult(ShoppingItem shoppingItem)
Caches the shopping item in the entity cache if it is enabled. |
protected void |
cacheUniqueFindersCache(ShoppingItem shoppingItem)
|
void |
clearCache()
Clears the cache for all shopping items. |
void |
clearCache(List<ShoppingItem> shoppingItems)
Clears the cache for a List instances of this model. |
void |
clearCache(ShoppingItem shoppingItem)
Clears the cache for the shopping item. |
protected void |
clearUniqueFindersCache(ShoppingItem shoppingItem)
|
boolean |
containsShoppingItemPrice(long pk,
long shoppingItemPricePK)
Returns true if the shopping item price is associated with the shopping item. |
boolean |
containsShoppingItemPrices(long pk)
Returns true if the shopping item has any shopping item prices associated with it. |
int |
countAll()
Returns the number of shopping items. |
int |
countByC_S(long companyId,
String sku)
Returns the number of shopping items where companyId = ? and sku = ?. |
int |
countByG_C(long groupId,
long categoryId)
Returns the number of shopping items where groupId = ? and categoryId = ?. |
int |
countByLargeImageId(long largeImageId)
Returns the number of shopping items where largeImageId = ?. |
int |
countByMediumImageId(long mediumImageId)
Returns the number of shopping items where mediumImageId = ?. |
int |
countBySmallImageId(long smallImageId)
Returns the number of shopping items where smallImageId = ?. |
ShoppingItem |
create(long itemId)
Creates a new shopping item with the primary key. |
void |
destroy()
|
ShoppingItem |
fetchByC_S(long companyId,
String sku)
Returns the shopping item where companyId = ? and sku = ? or returns null if it could not be found. |
ShoppingItem |
fetchByC_S(long companyId,
String sku,
boolean retrieveFromCache)
Returns the shopping item where companyId = ? and sku = ? or returns null if it could not be found, optionally using the finder cache. |
ShoppingItem |
fetchByG_C_First(long groupId,
long categoryId,
OrderByComparator orderByComparator)
Returns the first shopping item in the ordered set where groupId = ? and categoryId = ?. |
ShoppingItem |
fetchByG_C_Last(long groupId,
long categoryId,
OrderByComparator orderByComparator)
Returns the last shopping item in the ordered set where groupId = ? and categoryId = ?. |
ShoppingItem |
fetchByLargeImageId(long largeImageId)
Returns the shopping item where largeImageId = ? or returns null if it could not be found. |
ShoppingItem |
fetchByLargeImageId(long largeImageId,
boolean retrieveFromCache)
Returns the shopping item where largeImageId = ? or returns null if it could not be found, optionally using the finder cache. |
ShoppingItem |
fetchByMediumImageId(long mediumImageId)
Returns the shopping item where mediumImageId = ? or returns null if it could not be found. |
ShoppingItem |
fetchByMediumImageId(long mediumImageId,
boolean retrieveFromCache)
Returns the shopping item where mediumImageId = ? or returns null if it could not be found, optionally using the finder cache. |
ShoppingItem |
fetchByPrimaryKey(long itemId)
Returns the shopping item with the primary key or returns null if it could not be found. |
ShoppingItem |
fetchByPrimaryKey(Serializable primaryKey)
Returns the shopping item with the primary key or returns null if it could not be found. |
ShoppingItem |
fetchBySmallImageId(long smallImageId)
Returns the shopping item where smallImageId = ? or returns null if it could not be found. |
ShoppingItem |
fetchBySmallImageId(long smallImageId,
boolean retrieveFromCache)
Returns the shopping item where smallImageId = ? or returns null if it could not be found, optionally using the finder cache. |
int |
filterCountByG_C(long groupId,
long categoryId)
Returns the number of shopping items that the user has permission to view where groupId = ? and categoryId = ?. |
ShoppingItem[] |
filterFindByG_C_PrevAndNext(long itemId,
long groupId,
long categoryId,
OrderByComparator orderByComparator)
Returns the shopping items before and after the current shopping item in the ordered set of shopping items that the user has permission to view where groupId = ? and categoryId = ?. |
List<ShoppingItem> |
filterFindByG_C(long groupId,
long categoryId)
Returns all the shopping items that the user has permission to view where groupId = ? and categoryId = ?. |
List<ShoppingItem> |
filterFindByG_C(long groupId,
long categoryId,
int start,
int end)
Returns a range of all the shopping items that the user has permission to view where groupId = ? and categoryId = ?. |
List<ShoppingItem> |
filterFindByG_C(long groupId,
long categoryId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping items that the user has permissions to view where groupId = ? and categoryId = ?. |
protected ShoppingItem |
filterGetByG_C_PrevAndNext(Session session,
ShoppingItem shoppingItem,
long groupId,
long categoryId,
OrderByComparator orderByComparator,
boolean previous)
|
List<ShoppingItem> |
findAll()
Returns all the shopping items. |
List<ShoppingItem> |
findAll(int start,
int end)
Returns a range of all the shopping items. |
List<ShoppingItem> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping items. |
ShoppingItem |
findByC_S(long companyId,
String sku)
Returns the shopping item where companyId = ? and sku = ? or throws a NoSuchItemException if it could not be found. |
ShoppingItem |
findByG_C_First(long groupId,
long categoryId,
OrderByComparator orderByComparator)
Returns the first shopping item in the ordered set where groupId = ? and categoryId = ?. |
ShoppingItem |
findByG_C_Last(long groupId,
long categoryId,
OrderByComparator orderByComparator)
Returns the last shopping item in the ordered set where groupId = ? and categoryId = ?. |
ShoppingItem[] |
findByG_C_PrevAndNext(long itemId,
long groupId,
long categoryId,
OrderByComparator orderByComparator)
Returns the shopping items before and after the current shopping item in the ordered set where groupId = ? and categoryId = ?. |
List<ShoppingItem> |
findByG_C(long groupId,
long categoryId)
Returns all the shopping items where groupId = ? and categoryId = ?. |
List<ShoppingItem> |
findByG_C(long groupId,
long categoryId,
int start,
int end)
Returns a range of all the shopping items where groupId = ? and categoryId = ?. |
List<ShoppingItem> |
findByG_C(long groupId,
long categoryId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping items where groupId = ? and categoryId = ?. |
ShoppingItem |
findByLargeImageId(long largeImageId)
Returns the shopping item where largeImageId = ? or throws a NoSuchItemException if it could not be found. |
ShoppingItem |
findByMediumImageId(long mediumImageId)
Returns the shopping item where mediumImageId = ? or throws a NoSuchItemException if it could not be found. |
ShoppingItem |
findByPrimaryKey(long itemId)
Returns the shopping item with the primary key or throws a NoSuchItemException if it could not be found. |
ShoppingItem |
findByPrimaryKey(Serializable primaryKey)
Returns the shopping item with the primary key or throws a NoSuchModelException if it could not be found. |
ShoppingItem |
findBySmallImageId(long smallImageId)
Returns the shopping item where smallImageId = ? or throws a NoSuchItemException if it could not be found. |
protected ShoppingItem |
getByG_C_PrevAndNext(Session session,
ShoppingItem shoppingItem,
long groupId,
long categoryId,
OrderByComparator orderByComparator,
boolean previous)
|
List<ShoppingItemPrice> |
getShoppingItemPrices(long pk)
Returns all the shopping item prices associated with the shopping item. |
List<ShoppingItemPrice> |
getShoppingItemPrices(long pk,
int start,
int end)
Returns a range of all the shopping item prices associated with the shopping item. |
List<ShoppingItemPrice> |
getShoppingItemPrices(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping item prices associated with the shopping item. |
int |
getShoppingItemPricesSize(long pk)
Returns the number of shopping item prices associated with the shopping item. |
ShoppingItem |
remove(long itemId)
Removes the shopping item with the primary key from the database. |
ShoppingItem |
remove(Serializable primaryKey)
Removes the shopping item with the primary key from the database. |
void |
removeAll()
Removes all the shopping items from the database. |
ShoppingItem |
removeByC_S(long companyId,
String sku)
Removes the shopping item where companyId = ? and sku = ? from the database. |
void |
removeByG_C(long groupId,
long categoryId)
Removes all the shopping items where groupId = ? and categoryId = ? from the database. |
ShoppingItem |
removeByLargeImageId(long largeImageId)
Removes the shopping item where largeImageId = ? from the database. |
ShoppingItem |
removeByMediumImageId(long mediumImageId)
Removes the shopping item where mediumImageId = ? from the database. |
ShoppingItem |
removeBySmallImageId(long smallImageId)
Removes the shopping item where smallImageId = ? from the database. |
protected ShoppingItem |
removeImpl(ShoppingItem shoppingItem)
Removes the model instance from the database. |
protected ShoppingItem |
toUnwrappedModel(ShoppingItem shoppingItem)
|
ShoppingItem |
updateImpl(ShoppingItem shoppingItem,
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_FETCH_BY_SMALLIMAGEID
public static final FinderPath FINDER_PATH_COUNT_BY_SMALLIMAGEID
public static final FinderPath FINDER_PATH_FETCH_BY_MEDIUMIMAGEID
public static final FinderPath FINDER_PATH_COUNT_BY_MEDIUMIMAGEID
public static final FinderPath FINDER_PATH_FETCH_BY_LARGEIMAGEID
public static final FinderPath FINDER_PATH_COUNT_BY_LARGEIMAGEID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C
public static final FinderPath FINDER_PATH_COUNT_BY_G_C
public static final FinderPath FINDER_PATH_FETCH_BY_C_S
public static final FinderPath FINDER_PATH_COUNT_BY_C_S
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_GET_SHOPPINGITEMPRICES
public static final FinderPath FINDER_PATH_GET_SHOPPINGITEMPRICES_SIZE
public static final FinderPath FINDER_PATH_CONTAINS_SHOPPINGITEMPRICE
@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=ImagePersistence.class) protected ImagePersistence imagePersistence
@BeanReference(type=ResourcePersistence.class) protected ResourcePersistence resourcePersistence
@BeanReference(type=UserPersistence.class) protected UserPersistence userPersistence
protected ShoppingItemPersistenceImpl.ContainsShoppingItemPrice containsShoppingItemPrice
Constructor Detail |
---|
public ShoppingItemPersistenceImpl()
Method Detail |
---|
public void cacheResult(ShoppingItem shoppingItem)
cacheResult
in interface ShoppingItemPersistence
shoppingItem
- the shopping itempublic void cacheResult(List<ShoppingItem> shoppingItems)
cacheResult
in interface ShoppingItemPersistence
shoppingItems
- the shopping itemspublic void clearCache()
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<ShoppingItem>
clearCache
in class BasePersistenceImpl<ShoppingItem>
public void clearCache(ShoppingItem shoppingItem)
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<ShoppingItem>
clearCache
in class BasePersistenceImpl<ShoppingItem>
shoppingItem
- the instance of this model to clear the cache forpublic void clearCache(List<ShoppingItem> shoppingItems)
BasePersistence
The EntityCache
and FinderCache
are both cleared by this
method.
clearCache
in interface BasePersistence<ShoppingItem>
clearCache
in class BasePersistenceImpl<ShoppingItem>
shoppingItems
- the List instances of this model to clear the cache forprotected void cacheUniqueFindersCache(ShoppingItem shoppingItem)
protected void clearUniqueFindersCache(ShoppingItem shoppingItem)
public ShoppingItem create(long itemId)
create
in interface ShoppingItemPersistence
itemId
- the primary key for the new shopping item
public ShoppingItem remove(long itemId) throws NoSuchItemException, SystemException
remove
in interface ShoppingItemPersistence
itemId
- the primary key of the shopping item
NoSuchItemException
- if a shopping item with the primary key could not be found
SystemException
- if a system exception occurredpublic ShoppingItem remove(Serializable primaryKey) throws NoSuchItemException, SystemException
remove
in interface BasePersistence<ShoppingItem>
remove
in class BasePersistenceImpl<ShoppingItem>
primaryKey
- the primary key of the shopping item
NoSuchItemException
- if a shopping item with the primary key could not be found
SystemException
- if a system exception occurredprotected ShoppingItem removeImpl(ShoppingItem shoppingItem) 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<ShoppingItem>
shoppingItem
- the model instance to remove
SystemException
- if a system exception occurredpublic ShoppingItem updateImpl(ShoppingItem shoppingItem, 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 ShoppingItemPersistence
updateImpl
in class BasePersistenceImpl<ShoppingItem>
shoppingItem
- 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 ShoppingItem toUnwrappedModel(ShoppingItem shoppingItem)
public ShoppingItem findByPrimaryKey(Serializable primaryKey) throws NoSuchModelException, SystemException
NoSuchModelException
if it could not be found.
findByPrimaryKey
in interface BasePersistence<ShoppingItem>
findByPrimaryKey
in class BasePersistenceImpl<ShoppingItem>
primaryKey
- the primary key of the shopping item
NoSuchModelException
- if a shopping item with the primary key could not be found
SystemException
- if a system exception occurredpublic ShoppingItem findByPrimaryKey(long itemId) throws NoSuchItemException, SystemException
NoSuchItemException
if it could not be found.
findByPrimaryKey
in interface ShoppingItemPersistence
itemId
- the primary key of the shopping item
NoSuchItemException
- if a shopping item with the primary key could not be found
SystemException
- if a system exception occurredpublic ShoppingItem fetchByPrimaryKey(Serializable primaryKey) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface BasePersistence<ShoppingItem>
fetchByPrimaryKey
in class BasePersistenceImpl<ShoppingItem>
primaryKey
- the primary key of the shopping item
null
if a shopping item with the primary key could not be found
SystemException
- if a system exception occurredpublic ShoppingItem fetchByPrimaryKey(long itemId) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface ShoppingItemPersistence
itemId
- the primary key of the shopping item
null
if a shopping item with the primary key could not be found
SystemException
- if a system exception occurredpublic ShoppingItem findBySmallImageId(long smallImageId) throws NoSuchItemException, SystemException
NoSuchItemException
if it could not be found.
findBySmallImageId
in interface ShoppingItemPersistence
smallImageId
- the small image ID
NoSuchItemException
- if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic ShoppingItem fetchBySmallImageId(long smallImageId) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchBySmallImageId
in interface ShoppingItemPersistence
smallImageId
- the small image ID
null
if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic ShoppingItem fetchBySmallImageId(long smallImageId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchBySmallImageId
in interface ShoppingItemPersistence
smallImageId
- the small image IDretrieveFromCache
- whether to use the finder cache
null
if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic ShoppingItem findByMediumImageId(long mediumImageId) throws NoSuchItemException, SystemException
NoSuchItemException
if it could not be found.
findByMediumImageId
in interface ShoppingItemPersistence
mediumImageId
- the medium image ID
NoSuchItemException
- if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic ShoppingItem fetchByMediumImageId(long mediumImageId) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByMediumImageId
in interface ShoppingItemPersistence
mediumImageId
- the medium image ID
null
if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic ShoppingItem fetchByMediumImageId(long mediumImageId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByMediumImageId
in interface ShoppingItemPersistence
mediumImageId
- the medium image IDretrieveFromCache
- whether to use the finder cache
null
if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic ShoppingItem findByLargeImageId(long largeImageId) throws NoSuchItemException, SystemException
NoSuchItemException
if it could not be found.
findByLargeImageId
in interface ShoppingItemPersistence
largeImageId
- the large image ID
NoSuchItemException
- if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic ShoppingItem fetchByLargeImageId(long largeImageId) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByLargeImageId
in interface ShoppingItemPersistence
largeImageId
- the large image ID
null
if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic ShoppingItem fetchByLargeImageId(long largeImageId, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByLargeImageId
in interface ShoppingItemPersistence
largeImageId
- the large image IDretrieveFromCache
- whether to use the finder cache
null
if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic List<ShoppingItem> findByG_C(long groupId, long categoryId) throws SystemException
findByG_C
in interface ShoppingItemPersistence
groupId
- the group IDcategoryId
- the category ID
SystemException
- if a system exception occurredpublic List<ShoppingItem> findByG_C(long groupId, long categoryId, 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.
findByG_C
in interface ShoppingItemPersistence
groupId
- the group IDcategoryId
- the category IDstart
- the lower bound of the range of shopping itemsend
- the upper bound of the range of shopping items (not inclusive)
SystemException
- if a system exception occurredpublic List<ShoppingItem> findByG_C(long groupId, long categoryId, 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.
findByG_C
in interface ShoppingItemPersistence
groupId
- the group IDcategoryId
- the category IDstart
- the lower bound of the range of shopping itemsend
- the upper bound of the range of shopping items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic ShoppingItem findByG_C_First(long groupId, long categoryId, OrderByComparator orderByComparator) throws NoSuchItemException, SystemException
findByG_C_First
in interface ShoppingItemPersistence
groupId
- the group IDcategoryId
- the category IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchItemException
- if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic ShoppingItem fetchByG_C_First(long groupId, long categoryId, OrderByComparator orderByComparator) throws SystemException
fetchByG_C_First
in interface ShoppingItemPersistence
groupId
- the group IDcategoryId
- the category IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic ShoppingItem findByG_C_Last(long groupId, long categoryId, OrderByComparator orderByComparator) throws NoSuchItemException, SystemException
findByG_C_Last
in interface ShoppingItemPersistence
groupId
- the group IDcategoryId
- the category IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchItemException
- if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic ShoppingItem fetchByG_C_Last(long groupId, long categoryId, OrderByComparator orderByComparator) throws SystemException
fetchByG_C_Last
in interface ShoppingItemPersistence
groupId
- the group IDcategoryId
- the category IDorderByComparator
- the comparator to order the set by (optionally null
)
null
if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic ShoppingItem[] findByG_C_PrevAndNext(long itemId, long groupId, long categoryId, OrderByComparator orderByComparator) throws NoSuchItemException, SystemException
findByG_C_PrevAndNext
in interface ShoppingItemPersistence
itemId
- the primary key of the current shopping itemgroupId
- the group IDcategoryId
- the category IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchItemException
- if a shopping item with the primary key could not be found
SystemException
- if a system exception occurredprotected ShoppingItem getByG_C_PrevAndNext(Session session, ShoppingItem shoppingItem, long groupId, long categoryId, OrderByComparator orderByComparator, boolean previous)
public List<ShoppingItem> filterFindByG_C(long groupId, long categoryId) throws SystemException
filterFindByG_C
in interface ShoppingItemPersistence
groupId
- the group IDcategoryId
- the category ID
SystemException
- if a system exception occurredpublic List<ShoppingItem> filterFindByG_C(long groupId, long categoryId, 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.
filterFindByG_C
in interface ShoppingItemPersistence
groupId
- the group IDcategoryId
- the category IDstart
- the lower bound of the range of shopping itemsend
- the upper bound of the range of shopping items (not inclusive)
SystemException
- if a system exception occurredpublic List<ShoppingItem> filterFindByG_C(long groupId, long categoryId, 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.
filterFindByG_C
in interface ShoppingItemPersistence
groupId
- the group IDcategoryId
- the category IDstart
- the lower bound of the range of shopping itemsend
- the upper bound of the range of shopping items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic ShoppingItem[] filterFindByG_C_PrevAndNext(long itemId, long groupId, long categoryId, OrderByComparator orderByComparator) throws NoSuchItemException, SystemException
filterFindByG_C_PrevAndNext
in interface ShoppingItemPersistence
itemId
- the primary key of the current shopping itemgroupId
- the group IDcategoryId
- the category IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchItemException
- if a shopping item with the primary key could not be found
SystemException
- if a system exception occurredprotected ShoppingItem filterGetByG_C_PrevAndNext(Session session, ShoppingItem shoppingItem, long groupId, long categoryId, OrderByComparator orderByComparator, boolean previous)
public ShoppingItem findByC_S(long companyId, String sku) throws NoSuchItemException, SystemException
NoSuchItemException
if it could not be found.
findByC_S
in interface ShoppingItemPersistence
companyId
- the company IDsku
- the sku
NoSuchItemException
- if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic ShoppingItem fetchByC_S(long companyId, String sku) throws SystemException
null
if it could not be found. Uses the finder cache.
fetchByC_S
in interface ShoppingItemPersistence
companyId
- the company IDsku
- the sku
null
if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic ShoppingItem fetchByC_S(long companyId, String sku, boolean retrieveFromCache) throws SystemException
null
if it could not be found, optionally using the finder cache.
fetchByC_S
in interface ShoppingItemPersistence
companyId
- the company IDsku
- the skuretrieveFromCache
- whether to use the finder cache
null
if a matching shopping item could not be found
SystemException
- if a system exception occurredpublic List<ShoppingItem> findAll() throws SystemException
findAll
in interface ShoppingItemPersistence
SystemException
- if a system exception occurredpublic List<ShoppingItem> 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 ShoppingItemPersistence
start
- the lower bound of the range of shopping itemsend
- the upper bound of the range of shopping items (not inclusive)
SystemException
- if a system exception occurredpublic List<ShoppingItem> 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 ShoppingItemPersistence
start
- the lower bound of the range of shopping itemsend
- the upper bound of the range of shopping items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic ShoppingItem removeBySmallImageId(long smallImageId) throws NoSuchItemException, SystemException
removeBySmallImageId
in interface ShoppingItemPersistence
smallImageId
- the small image ID
SystemException
- if a system exception occurred
NoSuchItemException
public ShoppingItem removeByMediumImageId(long mediumImageId) throws NoSuchItemException, SystemException
removeByMediumImageId
in interface ShoppingItemPersistence
mediumImageId
- the medium image ID
SystemException
- if a system exception occurred
NoSuchItemException
public ShoppingItem removeByLargeImageId(long largeImageId) throws NoSuchItemException, SystemException
removeByLargeImageId
in interface ShoppingItemPersistence
largeImageId
- the large image ID
SystemException
- if a system exception occurred
NoSuchItemException
public void removeByG_C(long groupId, long categoryId) throws SystemException
removeByG_C
in interface ShoppingItemPersistence
groupId
- the group IDcategoryId
- the category ID
SystemException
- if a system exception occurredpublic ShoppingItem removeByC_S(long companyId, String sku) throws NoSuchItemException, SystemException
removeByC_S
in interface ShoppingItemPersistence
companyId
- the company IDsku
- the sku
SystemException
- if a system exception occurred
NoSuchItemException
public void removeAll() throws SystemException
removeAll
in interface ShoppingItemPersistence
SystemException
- if a system exception occurredpublic int countBySmallImageId(long smallImageId) throws SystemException
countBySmallImageId
in interface ShoppingItemPersistence
smallImageId
- the small image ID
SystemException
- if a system exception occurredpublic int countByMediumImageId(long mediumImageId) throws SystemException
countByMediumImageId
in interface ShoppingItemPersistence
mediumImageId
- the medium image ID
SystemException
- if a system exception occurredpublic int countByLargeImageId(long largeImageId) throws SystemException
countByLargeImageId
in interface ShoppingItemPersistence
largeImageId
- the large image ID
SystemException
- if a system exception occurredpublic int countByG_C(long groupId, long categoryId) throws SystemException
countByG_C
in interface ShoppingItemPersistence
groupId
- the group IDcategoryId
- the category ID
SystemException
- if a system exception occurredpublic int filterCountByG_C(long groupId, long categoryId) throws SystemException
filterCountByG_C
in interface ShoppingItemPersistence
groupId
- the group IDcategoryId
- the category ID
SystemException
- if a system exception occurredpublic int countByC_S(long companyId, String sku) throws SystemException
countByC_S
in interface ShoppingItemPersistence
companyId
- the company IDsku
- the sku
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface ShoppingItemPersistence
SystemException
- if a system exception occurredpublic List<ShoppingItemPrice> getShoppingItemPrices(long pk) throws SystemException
getShoppingItemPrices
in interface ShoppingItemPersistence
pk
- the primary key of the shopping item
SystemException
- if a system exception occurredpublic List<ShoppingItemPrice> getShoppingItemPrices(long pk, 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.
getShoppingItemPrices
in interface ShoppingItemPersistence
pk
- the primary key of the shopping itemstart
- the lower bound of the range of shopping itemsend
- the upper bound of the range of shopping items (not inclusive)
SystemException
- if a system exception occurredpublic List<ShoppingItemPrice> getShoppingItemPrices(long pk, 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.
getShoppingItemPrices
in interface ShoppingItemPersistence
pk
- the primary key of the shopping itemstart
- the lower bound of the range of shopping itemsend
- the upper bound of the range of shopping items (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic int getShoppingItemPricesSize(long pk) throws SystemException
getShoppingItemPricesSize
in interface ShoppingItemPersistence
pk
- the primary key of the shopping item
SystemException
- if a system exception occurredpublic boolean containsShoppingItemPrice(long pk, long shoppingItemPricePK) throws SystemException
true
if the shopping item price is associated with the shopping item.
containsShoppingItemPrice
in interface ShoppingItemPersistence
pk
- the primary key of the shopping itemshoppingItemPricePK
- the primary key of the shopping item price
true
if the shopping item price is associated with the shopping item; false
otherwise
SystemException
- if a system exception occurredpublic boolean containsShoppingItemPrices(long pk) throws SystemException
true
if the shopping item has any shopping item prices associated with it.
containsShoppingItemPrices
in interface ShoppingItemPersistence
pk
- the primary key of the shopping item to check for associations with shopping item prices
true
if the shopping item has any shopping item prices associated with it; false
otherwise
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 |