com.liferay.portlet.shopping.service.persistence
Class ShoppingItemPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.shopping.model.ShoppingItem>
      extended by com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistenceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.shopping.model.ShoppingItem>, com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence

public class ShoppingItemPersistenceImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.shopping.model.ShoppingItem>
implements com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence

The persistence implementation for the shopping item service.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
See Also:
ShoppingItemPersistence, ShoppingItemUtil
Generated:

Nested Class Summary
protected  class ShoppingItemPersistenceImpl.ContainsShoppingItemPrice
           
 
Field Summary
protected  ShoppingItemPersistenceImpl.ContainsShoppingItemPrice containsShoppingItemPrice
           
static java.lang.String FINDER_CLASS_NAME_ENTITY
           
static java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_CONTAINS_SHOPPINGITEMPRICE
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_S
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_G_C
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_LARGEIMAGEID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_MEDIUMIMAGEID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_SMALLIMAGEID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_C_S
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_LARGEIMAGEID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_MEDIUMIMAGEID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_SMALLIMAGEID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_SHOPPINGITEMPRICES
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_SHOPPINGITEMPRICES_SIZE
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C
           
protected  com.liferay.portal.service.persistence.ImagePersistence imagePersistence
           
protected  com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence
           
protected  com.liferay.portlet.shopping.service.persistence.ShoppingCartPersistence shoppingCartPersistence
           
protected  com.liferay.portlet.shopping.service.persistence.ShoppingCategoryPersistence shoppingCategoryPersistence
           
protected  com.liferay.portlet.shopping.service.persistence.ShoppingCouponPersistence shoppingCouponPersistence
           
protected  com.liferay.portlet.shopping.service.persistence.ShoppingItemFieldPersistence shoppingItemFieldPersistence
           
protected  com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence shoppingItemPersistence
           
protected  com.liferay.portlet.shopping.service.persistence.ShoppingItemPricePersistence shoppingItemPricePersistence
           
protected  com.liferay.portlet.shopping.service.persistence.ShoppingOrderItemPersistence shoppingOrderItemPersistence
           
protected  com.liferay.portlet.shopping.service.persistence.ShoppingOrderPersistence shoppingOrderPersistence
           
protected  com.liferay.portal.service.persistence.UserPersistence userPersistence
           
 
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(java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> shoppingItems)
          Caches the shopping items in the entity cache if it is enabled.
 void cacheResult(com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
          Caches the shopping item in the entity cache if it is enabled.
 void clearCache()
          Clears the cache for all shopping items.
 void clearCache(java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> shoppingItems)
           
 void clearCache(com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
          Clears the cache for the shopping item.
protected  void clearUniqueFindersCache(com.liferay.portlet.shopping.model.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, java.lang.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 = ?.
 com.liferay.portlet.shopping.model.ShoppingItem create(long itemId)
          Creates a new shopping item with the primary key.
 void destroy()
           
 com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S(long companyId, java.lang.String sku)
          Returns the shopping item where companyId = ? and sku = ? or returns null if it could not be found.
 com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S(long companyId, java.lang.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.
 com.liferay.portlet.shopping.model.ShoppingItem fetchByLargeImageId(long largeImageId)
          Returns the shopping item where largeImageId = ? or returns null if it could not be found.
 com.liferay.portlet.shopping.model.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.
 com.liferay.portlet.shopping.model.ShoppingItem fetchByMediumImageId(long mediumImageId)
          Returns the shopping item where mediumImageId = ? or returns null if it could not be found.
 com.liferay.portlet.shopping.model.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.
 com.liferay.portlet.shopping.model.ShoppingItem fetchByPrimaryKey(long itemId)
          Returns the shopping item with the primary key or returns null if it could not be found.
 com.liferay.portlet.shopping.model.ShoppingItem fetchByPrimaryKey(java.io.Serializable primaryKey)
          Returns the shopping item with the primary key or returns null if it could not be found.
 com.liferay.portlet.shopping.model.ShoppingItem fetchBySmallImageId(long smallImageId)
          Returns the shopping item where smallImageId = ? or returns null if it could not be found.
 com.liferay.portlet.shopping.model.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 = ?.
 com.liferay.portlet.shopping.model.ShoppingItem[] filterFindByG_C_PrevAndNext(long itemId, long groupId, long categoryId, com.liferay.portal.kernel.util.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 = ?.
 java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> filterFindByG_C(long groupId, long categoryId)
          Returns all the shopping items that the user has permission to view where groupId = ? and categoryId = ?.
 java.util.List<com.liferay.portlet.shopping.model.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 = ?.
 java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> filterFindByG_C(long groupId, long categoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the shopping items that the user has permissions to view where groupId = ? and categoryId = ?.
protected  com.liferay.portlet.shopping.model.ShoppingItem filterGetByG_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.shopping.model.ShoppingItem shoppingItem, long groupId, long categoryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
 java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll()
          Returns all the shopping items.
 java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(int start, int end)
          Returns a range of all the shopping items.
 java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the shopping items.
 com.liferay.portlet.shopping.model.ShoppingItem findByC_S(long companyId, java.lang.String sku)
          Returns the shopping item where companyId = ? and sku = ? or throws a NoSuchItemException if it could not be found.
 com.liferay.portlet.shopping.model.ShoppingItem findByG_C_First(long groupId, long categoryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first shopping item in the ordered set where groupId = ? and categoryId = ?.
 com.liferay.portlet.shopping.model.ShoppingItem findByG_C_Last(long groupId, long categoryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last shopping item in the ordered set where groupId = ? and categoryId = ?.
 com.liferay.portlet.shopping.model.ShoppingItem[] findByG_C_PrevAndNext(long itemId, long groupId, long categoryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the shopping items before and after the current shopping item in the ordered set where groupId = ? and categoryId = ?.
 java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByG_C(long groupId, long categoryId)
          Returns all the shopping items where groupId = ? and categoryId = ?.
 java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByG_C(long groupId, long categoryId, int start, int end)
          Returns a range of all the shopping items where groupId = ? and categoryId = ?.
 java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByG_C(long groupId, long categoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the shopping items where groupId = ? and categoryId = ?.
 com.liferay.portlet.shopping.model.ShoppingItem findByLargeImageId(long largeImageId)
          Returns the shopping item where largeImageId = ? or throws a NoSuchItemException if it could not be found.
 com.liferay.portlet.shopping.model.ShoppingItem findByMediumImageId(long mediumImageId)
          Returns the shopping item where mediumImageId = ? or throws a NoSuchItemException if it could not be found.
 com.liferay.portlet.shopping.model.ShoppingItem findByPrimaryKey(long itemId)
          Returns the shopping item with the primary key or throws a NoSuchItemException if it could not be found.
 com.liferay.portlet.shopping.model.ShoppingItem findByPrimaryKey(java.io.Serializable primaryKey)
          Returns the shopping item with the primary key or throws a NoSuchModelException if it could not be found.
 com.liferay.portlet.shopping.model.ShoppingItem findBySmallImageId(long smallImageId)
          Returns the shopping item where smallImageId = ? or throws a NoSuchItemException if it could not be found.
protected  com.liferay.portlet.shopping.model.ShoppingItem getByG_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.shopping.model.ShoppingItem shoppingItem, long groupId, long categoryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(long pk)
          Returns all the shopping item prices associated with the shopping item.
 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(long pk, int start, int end)
          Returns a range of all the shopping item prices associated with the shopping item.
 java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(long pk, int start, int end, com.liferay.portal.kernel.util.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.
 com.liferay.portlet.shopping.model.ShoppingItem remove(long itemId)
          Removes the shopping item with the primary key from the database.
 com.liferay.portlet.shopping.model.ShoppingItem remove(java.io.Serializable primaryKey)
          Removes the shopping item with the primary key from the database.
 void removeAll()
          Removes all the shopping items from the database.
 void removeByC_S(long companyId, java.lang.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.
 void removeByLargeImageId(long largeImageId)
          Removes the shopping item where largeImageId = ? from the database.
 void removeByMediumImageId(long mediumImageId)
          Removes the shopping item where mediumImageId = ? from the database.
 void removeBySmallImageId(long smallImageId)
          Removes the shopping item where smallImageId = ? from the database.
protected  com.liferay.portlet.shopping.model.ShoppingItem removeImpl(com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
           
protected  com.liferay.portlet.shopping.model.ShoppingItem toUnwrappedModel(com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
           
 com.liferay.portlet.shopping.model.ShoppingItem updateImpl(com.liferay.portlet.shopping.model.ShoppingItem shoppingItem, boolean merge)
           
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, 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

FINDER_CLASS_NAME_ENTITY

public static final java.lang.String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_FETCH_BY_SMALLIMAGEID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_SMALLIMAGEID

FINDER_PATH_COUNT_BY_SMALLIMAGEID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_SMALLIMAGEID

FINDER_PATH_FETCH_BY_MEDIUMIMAGEID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_MEDIUMIMAGEID

FINDER_PATH_COUNT_BY_MEDIUMIMAGEID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_MEDIUMIMAGEID

FINDER_PATH_FETCH_BY_LARGEIMAGEID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_LARGEIMAGEID

FINDER_PATH_COUNT_BY_LARGEIMAGEID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_LARGEIMAGEID

FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C

FINDER_PATH_COUNT_BY_G_C

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_G_C

FINDER_PATH_FETCH_BY_C_S

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_C_S

FINDER_PATH_COUNT_BY_C_S

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_S

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_GET_SHOPPINGITEMPRICES

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_SHOPPINGITEMPRICES

FINDER_PATH_GET_SHOPPINGITEMPRICES_SIZE

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_SHOPPINGITEMPRICES_SIZE

FINDER_PATH_CONTAINS_SHOPPINGITEMPRICE

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_CONTAINS_SHOPPINGITEMPRICE

shoppingCartPersistence

@BeanReference(type=com.liferay.portlet.shopping.service.persistence.ShoppingCartPersistence.class)
protected com.liferay.portlet.shopping.service.persistence.ShoppingCartPersistence shoppingCartPersistence

shoppingCategoryPersistence

@BeanReference(type=com.liferay.portlet.shopping.service.persistence.ShoppingCategoryPersistence.class)
protected com.liferay.portlet.shopping.service.persistence.ShoppingCategoryPersistence shoppingCategoryPersistence

shoppingCouponPersistence

@BeanReference(type=com.liferay.portlet.shopping.service.persistence.ShoppingCouponPersistence.class)
protected com.liferay.portlet.shopping.service.persistence.ShoppingCouponPersistence shoppingCouponPersistence

shoppingItemPersistence

@BeanReference(type=com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence.class)
protected com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence shoppingItemPersistence

shoppingItemFieldPersistence

@BeanReference(type=com.liferay.portlet.shopping.service.persistence.ShoppingItemFieldPersistence.class)
protected com.liferay.portlet.shopping.service.persistence.ShoppingItemFieldPersistence shoppingItemFieldPersistence

shoppingItemPricePersistence

@BeanReference(type=com.liferay.portlet.shopping.service.persistence.ShoppingItemPricePersistence.class)
protected com.liferay.portlet.shopping.service.persistence.ShoppingItemPricePersistence shoppingItemPricePersistence

shoppingOrderPersistence

@BeanReference(type=com.liferay.portlet.shopping.service.persistence.ShoppingOrderPersistence.class)
protected com.liferay.portlet.shopping.service.persistence.ShoppingOrderPersistence shoppingOrderPersistence

shoppingOrderItemPersistence

@BeanReference(type=com.liferay.portlet.shopping.service.persistence.ShoppingOrderItemPersistence.class)
protected com.liferay.portlet.shopping.service.persistence.ShoppingOrderItemPersistence shoppingOrderItemPersistence

imagePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ImagePersistence.class)
protected com.liferay.portal.service.persistence.ImagePersistence imagePersistence

resourcePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourcePersistence.class)
protected com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserPersistence.class)
protected com.liferay.portal.service.persistence.UserPersistence userPersistence

containsShoppingItemPrice

protected ShoppingItemPersistenceImpl.ContainsShoppingItemPrice containsShoppingItemPrice
Constructor Detail

ShoppingItemPersistenceImpl

public ShoppingItemPersistenceImpl()
Method Detail

cacheResult

public void cacheResult(com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
Caches the shopping item in the entity cache if it is enabled.

Specified by:
cacheResult in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
shoppingItem - the shopping item

cacheResult

public void cacheResult(java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> shoppingItems)
Caches the shopping items in the entity cache if it is enabled.

Specified by:
cacheResult in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
shoppingItems - the shopping items

clearCache

public void clearCache()
Clears the cache for all shopping items.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.shopping.model.ShoppingItem>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.shopping.model.ShoppingItem>

clearCache

public void clearCache(com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
Clears the cache for the shopping item.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.shopping.model.ShoppingItem>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.shopping.model.ShoppingItem>

clearCache

public void clearCache(java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> shoppingItems)
Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.shopping.model.ShoppingItem>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.shopping.model.ShoppingItem>

clearUniqueFindersCache

protected void clearUniqueFindersCache(com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)

create

public com.liferay.portlet.shopping.model.ShoppingItem create(long itemId)
Creates a new shopping item with the primary key. Does not add the shopping item to the database.

Specified by:
create in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
itemId - the primary key for the new shopping item
Returns:
the new shopping item

remove

public com.liferay.portlet.shopping.model.ShoppingItem remove(long itemId)
                                                       throws com.liferay.portlet.shopping.NoSuchItemException,
                                                              com.liferay.portal.kernel.exception.SystemException
Removes the shopping item with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
itemId - the primary key of the shopping item
Returns:
the shopping item that was removed
Throws:
com.liferay.portlet.shopping.NoSuchItemException - if a shopping item with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

remove

public com.liferay.portlet.shopping.model.ShoppingItem remove(java.io.Serializable primaryKey)
                                                       throws com.liferay.portlet.shopping.NoSuchItemException,
                                                              com.liferay.portal.kernel.exception.SystemException
Removes the shopping item with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.shopping.model.ShoppingItem>
Overrides:
remove in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.shopping.model.ShoppingItem>
Parameters:
primaryKey - the primary key of the shopping item
Returns:
the shopping item that was removed
Throws:
com.liferay.portlet.shopping.NoSuchItemException - if a shopping item with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeImpl

protected com.liferay.portlet.shopping.model.ShoppingItem removeImpl(com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
                                                              throws com.liferay.portal.kernel.exception.SystemException
Overrides:
removeImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.shopping.model.ShoppingItem>
Throws:
com.liferay.portal.kernel.exception.SystemException

updateImpl

public com.liferay.portlet.shopping.model.ShoppingItem updateImpl(com.liferay.portlet.shopping.model.ShoppingItem shoppingItem,
                                                                  boolean merge)
                                                           throws com.liferay.portal.kernel.exception.SystemException
Specified by:
updateImpl in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Overrides:
updateImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.shopping.model.ShoppingItem>
Throws:
com.liferay.portal.kernel.exception.SystemException

toUnwrappedModel

protected com.liferay.portlet.shopping.model.ShoppingItem toUnwrappedModel(com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)

findByPrimaryKey

public com.liferay.portlet.shopping.model.ShoppingItem findByPrimaryKey(java.io.Serializable primaryKey)
                                                                 throws com.liferay.portal.NoSuchModelException,
                                                                        com.liferay.portal.kernel.exception.SystemException
Returns the shopping item with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.shopping.model.ShoppingItem>
Overrides:
findByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.shopping.model.ShoppingItem>
Parameters:
primaryKey - the primary key of the shopping item
Returns:
the shopping item
Throws:
com.liferay.portal.NoSuchModelException - if a shopping item with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByPrimaryKey

public com.liferay.portlet.shopping.model.ShoppingItem findByPrimaryKey(long itemId)
                                                                 throws com.liferay.portlet.shopping.NoSuchItemException,
                                                                        com.liferay.portal.kernel.exception.SystemException
Returns the shopping item with the primary key or throws a NoSuchItemException if it could not be found.

Specified by:
findByPrimaryKey in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
itemId - the primary key of the shopping item
Returns:
the shopping item
Throws:
com.liferay.portlet.shopping.NoSuchItemException - if a shopping item with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByPrimaryKey

public com.liferay.portlet.shopping.model.ShoppingItem fetchByPrimaryKey(java.io.Serializable primaryKey)
                                                                  throws com.liferay.portal.kernel.exception.SystemException
Returns the shopping item with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.shopping.model.ShoppingItem>
Overrides:
fetchByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.shopping.model.ShoppingItem>
Parameters:
primaryKey - the primary key of the shopping item
Returns:
the shopping item, or null if a shopping item with the primary key could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByPrimaryKey

public com.liferay.portlet.shopping.model.ShoppingItem fetchByPrimaryKey(long itemId)
                                                                  throws com.liferay.portal.kernel.exception.SystemException
Returns the shopping item with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
itemId - the primary key of the shopping item
Returns:
the shopping item, or null if a shopping item with the primary key could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findBySmallImageId

public com.liferay.portlet.shopping.model.ShoppingItem findBySmallImageId(long smallImageId)
                                                                   throws com.liferay.portlet.shopping.NoSuchItemException,
                                                                          com.liferay.portal.kernel.exception.SystemException
Returns the shopping item where smallImageId = ? or throws a NoSuchItemException if it could not be found.

Specified by:
findBySmallImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
smallImageId - the small image ID
Returns:
the matching shopping item
Throws:
com.liferay.portlet.shopping.NoSuchItemException - if a matching shopping item could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchBySmallImageId

public com.liferay.portlet.shopping.model.ShoppingItem fetchBySmallImageId(long smallImageId)
                                                                    throws com.liferay.portal.kernel.exception.SystemException
Returns the shopping item where smallImageId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchBySmallImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
smallImageId - the small image ID
Returns:
the matching shopping item, or null if a matching shopping item could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchBySmallImageId

public com.liferay.portlet.shopping.model.ShoppingItem fetchBySmallImageId(long smallImageId,
                                                                           boolean retrieveFromCache)
                                                                    throws com.liferay.portal.kernel.exception.SystemException
Returns the shopping item where smallImageId = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchBySmallImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
smallImageId - the small image ID
retrieveFromCache - whether to use the finder cache
Returns:
the matching shopping item, or null if a matching shopping item could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByMediumImageId

public com.liferay.portlet.shopping.model.ShoppingItem findByMediumImageId(long mediumImageId)
                                                                    throws com.liferay.portlet.shopping.NoSuchItemException,
                                                                           com.liferay.portal.kernel.exception.SystemException
Returns the shopping item where mediumImageId = ? or throws a NoSuchItemException if it could not be found.

Specified by:
findByMediumImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
mediumImageId - the medium image ID
Returns:
the matching shopping item
Throws:
com.liferay.portlet.shopping.NoSuchItemException - if a matching shopping item could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByMediumImageId

public com.liferay.portlet.shopping.model.ShoppingItem fetchByMediumImageId(long mediumImageId)
                                                                     throws com.liferay.portal.kernel.exception.SystemException
Returns the shopping item where mediumImageId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByMediumImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
mediumImageId - the medium image ID
Returns:
the matching shopping item, or null if a matching shopping item could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByMediumImageId

public com.liferay.portlet.shopping.model.ShoppingItem fetchByMediumImageId(long mediumImageId,
                                                                            boolean retrieveFromCache)
                                                                     throws com.liferay.portal.kernel.exception.SystemException
Returns the shopping item where mediumImageId = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByMediumImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
mediumImageId - the medium image ID
retrieveFromCache - whether to use the finder cache
Returns:
the matching shopping item, or null if a matching shopping item could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByLargeImageId

public com.liferay.portlet.shopping.model.ShoppingItem findByLargeImageId(long largeImageId)
                                                                   throws com.liferay.portlet.shopping.NoSuchItemException,
                                                                          com.liferay.portal.kernel.exception.SystemException
Returns the shopping item where largeImageId = ? or throws a NoSuchItemException if it could not be found.

Specified by:
findByLargeImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
largeImageId - the large image ID
Returns:
the matching shopping item
Throws:
com.liferay.portlet.shopping.NoSuchItemException - if a matching shopping item could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByLargeImageId

public com.liferay.portlet.shopping.model.ShoppingItem fetchByLargeImageId(long largeImageId)
                                                                    throws com.liferay.portal.kernel.exception.SystemException
Returns the shopping item where largeImageId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByLargeImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
largeImageId - the large image ID
Returns:
the matching shopping item, or null if a matching shopping item could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByLargeImageId

public com.liferay.portlet.shopping.model.ShoppingItem fetchByLargeImageId(long largeImageId,
                                                                           boolean retrieveFromCache)
                                                                    throws com.liferay.portal.kernel.exception.SystemException
Returns the shopping item where largeImageId = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByLargeImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
largeImageId - the large image ID
retrieveFromCache - whether to use the finder cache
Returns:
the matching shopping item, or null if a matching shopping item could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_C

public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByG_C(long groupId,
                                                                                 long categoryId)
                                                                          throws com.liferay.portal.kernel.exception.SystemException
Returns all the shopping items where groupId = ? and categoryId = ?.

Specified by:
findByG_C in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
groupId - the group ID
categoryId - the category ID
Returns:
the matching shopping items
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_C

public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByG_C(long groupId,
                                                                                 long categoryId,
                                                                                 int start,
                                                                                 int end)
                                                                          throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the shopping items where groupId = ? and categoryId = ?.

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.

Specified by:
findByG_C in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
groupId - the group ID
categoryId - the category ID
start - the lower bound of the range of shopping items
end - the upper bound of the range of shopping items (not inclusive)
Returns:
the range of matching shopping items
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_C

public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByG_C(long groupId,
                                                                                 long categoryId,
                                                                                 int start,
                                                                                 int end,
                                                                                 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                          throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the shopping items where groupId = ? and categoryId = ?.

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.

Specified by:
findByG_C in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
groupId - the group ID
categoryId - the category ID
start - the lower bound of the range of shopping items
end - the upper bound of the range of shopping items (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching shopping items
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_C_First

public com.liferay.portlet.shopping.model.ShoppingItem findByG_C_First(long groupId,
                                                                       long categoryId,
                                                                       com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                throws com.liferay.portlet.shopping.NoSuchItemException,
                                                                       com.liferay.portal.kernel.exception.SystemException
Returns the first shopping item in the ordered set where groupId = ? and categoryId = ?.

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.

Specified by:
findByG_C_First in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
groupId - the group ID
categoryId - the category ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching shopping item
Throws:
com.liferay.portlet.shopping.NoSuchItemException - if a matching shopping item could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_C_Last

public com.liferay.portlet.shopping.model.ShoppingItem findByG_C_Last(long groupId,
                                                                      long categoryId,
                                                                      com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                               throws com.liferay.portlet.shopping.NoSuchItemException,
                                                                      com.liferay.portal.kernel.exception.SystemException
Returns the last shopping item in the ordered set where groupId = ? and categoryId = ?.

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.

Specified by:
findByG_C_Last in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
groupId - the group ID
categoryId - the category ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching shopping item
Throws:
com.liferay.portlet.shopping.NoSuchItemException - if a matching shopping item could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByG_C_PrevAndNext

public com.liferay.portlet.shopping.model.ShoppingItem[] findByG_C_PrevAndNext(long itemId,
                                                                               long groupId,
                                                                               long categoryId,
                                                                               com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                        throws com.liferay.portlet.shopping.NoSuchItemException,
                                                                               com.liferay.portal.kernel.exception.SystemException
Returns the shopping items before and after the current shopping item in the ordered set where groupId = ? and categoryId = ?.

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.

Specified by:
findByG_C_PrevAndNext in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
itemId - the primary key of the current shopping item
groupId - the group ID
categoryId - the category ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next shopping item
Throws:
com.liferay.portlet.shopping.NoSuchItemException - if a shopping item with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByG_C_PrevAndNext

protected com.liferay.portlet.shopping.model.ShoppingItem getByG_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                               com.liferay.portlet.shopping.model.ShoppingItem shoppingItem,
                                                                               long groupId,
                                                                               long categoryId,
                                                                               com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                               boolean previous)

filterFindByG_C

public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> filterFindByG_C(long groupId,
                                                                                       long categoryId)
                                                                                throws com.liferay.portal.kernel.exception.SystemException
Returns all the shopping items that the user has permission to view where groupId = ? and categoryId = ?.

Specified by:
filterFindByG_C in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
groupId - the group ID
categoryId - the category ID
Returns:
the matching shopping items that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByG_C

public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> filterFindByG_C(long groupId,
                                                                                       long categoryId,
                                                                                       int start,
                                                                                       int end)
                                                                                throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the shopping items that the user has permission to view where groupId = ? and categoryId = ?.

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.

Specified by:
filterFindByG_C in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
groupId - the group ID
categoryId - the category ID
start - the lower bound of the range of shopping items
end - the upper bound of the range of shopping items (not inclusive)
Returns:
the range of matching shopping items that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByG_C

public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> filterFindByG_C(long groupId,
                                                                                       long categoryId,
                                                                                       int start,
                                                                                       int end,
                                                                                       com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the shopping items that the user has permissions to view where groupId = ? and categoryId = ?.

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.

Specified by:
filterFindByG_C in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
groupId - the group ID
categoryId - the category ID
start - the lower bound of the range of shopping items
end - the upper bound of the range of shopping items (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching shopping items that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByG_C_PrevAndNext

public com.liferay.portlet.shopping.model.ShoppingItem[] filterFindByG_C_PrevAndNext(long itemId,
                                                                                     long groupId,
                                                                                     long categoryId,
                                                                                     com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                              throws com.liferay.portlet.shopping.NoSuchItemException,
                                                                                     com.liferay.portal.kernel.exception.SystemException
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 = ?.

Specified by:
filterFindByG_C_PrevAndNext in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
itemId - the primary key of the current shopping item
groupId - the group ID
categoryId - the category ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next shopping item
Throws:
com.liferay.portlet.shopping.NoSuchItemException - if a shopping item with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterGetByG_C_PrevAndNext

protected com.liferay.portlet.shopping.model.ShoppingItem filterGetByG_C_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                     com.liferay.portlet.shopping.model.ShoppingItem shoppingItem,
                                                                                     long groupId,
                                                                                     long categoryId,
                                                                                     com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                     boolean previous)

findByC_S

public com.liferay.portlet.shopping.model.ShoppingItem findByC_S(long companyId,
                                                                 java.lang.String sku)
                                                          throws com.liferay.portlet.shopping.NoSuchItemException,
                                                                 com.liferay.portal.kernel.exception.SystemException
Returns the shopping item where companyId = ? and sku = ? or throws a NoSuchItemException if it could not be found.

Specified by:
findByC_S in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
companyId - the company ID
sku - the sku
Returns:
the matching shopping item
Throws:
com.liferay.portlet.shopping.NoSuchItemException - if a matching shopping item could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByC_S

public com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S(long companyId,
                                                                  java.lang.String sku)
                                                           throws com.liferay.portal.kernel.exception.SystemException
Returns the shopping item where companyId = ? and sku = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByC_S in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
companyId - the company ID
sku - the sku
Returns:
the matching shopping item, or null if a matching shopping item could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByC_S

public com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S(long companyId,
                                                                  java.lang.String sku,
                                                                  boolean retrieveFromCache)
                                                           throws com.liferay.portal.kernel.exception.SystemException
Returns the shopping item where companyId = ? and sku = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByC_S in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
companyId - the company ID
sku - the sku
retrieveFromCache - whether to use the finder cache
Returns:
the matching shopping item, or null if a matching shopping item could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll()
                                                                        throws com.liferay.portal.kernel.exception.SystemException
Returns all the shopping items.

Specified by:
findAll in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Returns:
the shopping items
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(int start,
                                                                               int end)
                                                                        throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the shopping items.

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.

Specified by:
findAll in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
start - the lower bound of the range of shopping items
end - the upper bound of the range of shopping items (not inclusive)
Returns:
the range of shopping items
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(int start,
                                                                               int end,
                                                                               com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                        throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the shopping items.

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.

Specified by:
findAll in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
start - the lower bound of the range of shopping items
end - the upper bound of the range of shopping items (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of shopping items
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeBySmallImageId

public void removeBySmallImageId(long smallImageId)
                          throws com.liferay.portlet.shopping.NoSuchItemException,
                                 com.liferay.portal.kernel.exception.SystemException
Removes the shopping item where smallImageId = ? from the database.

Specified by:
removeBySmallImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
smallImageId - the small image ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portlet.shopping.NoSuchItemException

removeByMediumImageId

public void removeByMediumImageId(long mediumImageId)
                           throws com.liferay.portlet.shopping.NoSuchItemException,
                                  com.liferay.portal.kernel.exception.SystemException
Removes the shopping item where mediumImageId = ? from the database.

Specified by:
removeByMediumImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
mediumImageId - the medium image ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portlet.shopping.NoSuchItemException

removeByLargeImageId

public void removeByLargeImageId(long largeImageId)
                          throws com.liferay.portlet.shopping.NoSuchItemException,
                                 com.liferay.portal.kernel.exception.SystemException
Removes the shopping item where largeImageId = ? from the database.

Specified by:
removeByLargeImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
largeImageId - the large image ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portlet.shopping.NoSuchItemException

removeByG_C

public void removeByG_C(long groupId,
                        long categoryId)
                 throws com.liferay.portal.kernel.exception.SystemException
Removes all the shopping items where groupId = ? and categoryId = ? from the database.

Specified by:
removeByG_C in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
groupId - the group ID
categoryId - the category ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByC_S

public void removeByC_S(long companyId,
                        java.lang.String sku)
                 throws com.liferay.portlet.shopping.NoSuchItemException,
                        com.liferay.portal.kernel.exception.SystemException
Removes the shopping item where companyId = ? and sku = ? from the database.

Specified by:
removeByC_S in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
companyId - the company ID
sku - the sku
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portlet.shopping.NoSuchItemException

removeAll

public void removeAll()
               throws com.liferay.portal.kernel.exception.SystemException
Removes all the shopping items from the database.

Specified by:
removeAll in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countBySmallImageId

public int countBySmallImageId(long smallImageId)
                        throws com.liferay.portal.kernel.exception.SystemException
Returns the number of shopping items where smallImageId = ?.

Specified by:
countBySmallImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
smallImageId - the small image ID
Returns:
the number of matching shopping items
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByMediumImageId

public int countByMediumImageId(long mediumImageId)
                         throws com.liferay.portal.kernel.exception.SystemException
Returns the number of shopping items where mediumImageId = ?.

Specified by:
countByMediumImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
mediumImageId - the medium image ID
Returns:
the number of matching shopping items
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByLargeImageId

public int countByLargeImageId(long largeImageId)
                        throws com.liferay.portal.kernel.exception.SystemException
Returns the number of shopping items where largeImageId = ?.

Specified by:
countByLargeImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
largeImageId - the large image ID
Returns:
the number of matching shopping items
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByG_C

public int countByG_C(long groupId,
                      long categoryId)
               throws com.liferay.portal.kernel.exception.SystemException
Returns the number of shopping items where groupId = ? and categoryId = ?.

Specified by:
countByG_C in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
groupId - the group ID
categoryId - the category ID
Returns:
the number of matching shopping items
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterCountByG_C

public int filterCountByG_C(long groupId,
                            long categoryId)
                     throws com.liferay.portal.kernel.exception.SystemException
Returns the number of shopping items that the user has permission to view where groupId = ? and categoryId = ?.

Specified by:
filterCountByG_C in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
groupId - the group ID
categoryId - the category ID
Returns:
the number of matching shopping items that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByC_S

public int countByC_S(long companyId,
                      java.lang.String sku)
               throws com.liferay.portal.kernel.exception.SystemException
Returns the number of shopping items where companyId = ? and sku = ?.

Specified by:
countByC_S in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
companyId - the company ID
sku - the sku
Returns:
the number of matching shopping items
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countAll

public int countAll()
             throws com.liferay.portal.kernel.exception.SystemException
Returns the number of shopping items.

Specified by:
countAll in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Returns:
the number of shopping items
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getShoppingItemPrices

public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(long pk)
                                                                                           throws com.liferay.portal.kernel.exception.SystemException
Returns all the shopping item prices associated with the shopping item.

Specified by:
getShoppingItemPrices in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
pk - the primary key of the shopping item
Returns:
the shopping item prices associated with the shopping item
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getShoppingItemPrices

public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(long pk,
                                                                                                  int start,
                                                                                                  int end)
                                                                                           throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the shopping item prices associated with the shopping item.

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.

Specified by:
getShoppingItemPrices in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
pk - the primary key of the shopping item
start - the lower bound of the range of shopping items
end - the upper bound of the range of shopping items (not inclusive)
Returns:
the range of shopping item prices associated with the shopping item
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getShoppingItemPrices

public java.util.List<com.liferay.portlet.shopping.model.ShoppingItemPrice> getShoppingItemPrices(long pk,
                                                                                                  int start,
                                                                                                  int end,
                                                                                                  com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                           throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the shopping item prices associated with the shopping item.

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.

Specified by:
getShoppingItemPrices in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
pk - the primary key of the shopping item
start - the lower bound of the range of shopping items
end - the upper bound of the range of shopping items (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of shopping item prices associated with the shopping item
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getShoppingItemPricesSize

public int getShoppingItemPricesSize(long pk)
                              throws com.liferay.portal.kernel.exception.SystemException
Returns the number of shopping item prices associated with the shopping item.

Specified by:
getShoppingItemPricesSize in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
pk - the primary key of the shopping item
Returns:
the number of shopping item prices associated with the shopping item
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

containsShoppingItemPrice

public boolean containsShoppingItemPrice(long pk,
                                         long shoppingItemPricePK)
                                  throws com.liferay.portal.kernel.exception.SystemException
Returns true if the shopping item price is associated with the shopping item.

Specified by:
containsShoppingItemPrice in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
pk - the primary key of the shopping item
shoppingItemPricePK - the primary key of the shopping item price
Returns:
true if the shopping item price is associated with the shopping item; false otherwise
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

containsShoppingItemPrices

public boolean containsShoppingItemPrices(long pk)
                                   throws com.liferay.portal.kernel.exception.SystemException
Returns true if the shopping item has any shopping item prices associated with it.

Specified by:
containsShoppingItemPrices in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistence
Parameters:
pk - the primary key of the shopping item to check for associations with shopping item prices
Returns:
true if the shopping item has any shopping item prices associated with it; false otherwise
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

afterPropertiesSet

public void afterPropertiesSet()
Initializes the shopping item persistence.


destroy

public void destroy()