|
Liferay 6.0.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<ShoppingItem>
com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistenceImpl
public class ShoppingItemPersistenceImpl
ShoppingItemPersistence,
ShoppingItemUtil| Nested Class Summary | |
|---|---|
protected class |
ShoppingItemPersistenceImpl.ContainsShoppingItemPrice
|
| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
COUNT_COLUMN_NAME, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR |
| Constructor Summary | |
|---|---|
ShoppingItemPersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
void |
cacheResult(List<ShoppingItem> shoppingItems)
|
void |
cacheResult(ShoppingItem shoppingItem)
|
void |
clearCache()
Clears the cache for all instances of this model. |
void |
clearCache(ShoppingItem shoppingItem)
Clears the cache for one instance of this model. |
boolean |
containsShoppingItemPrice(long pk,
long shoppingItemPricePK)
|
boolean |
containsShoppingItemPrices(long pk)
|
int |
countAll()
|
int |
countByC_S(long companyId,
String sku)
|
int |
countByG_C(long groupId,
long categoryId)
|
int |
countByLargeImageId(long largeImageId)
|
int |
countByMediumImageId(long mediumImageId)
|
int |
countBySmallImageId(long smallImageId)
|
ShoppingItem |
create(long itemId)
|
ShoppingItem |
fetchByC_S(long companyId,
String sku)
|
ShoppingItem |
fetchByC_S(long companyId,
String sku,
boolean retrieveFromCache)
|
ShoppingItem |
fetchByLargeImageId(long largeImageId)
|
ShoppingItem |
fetchByLargeImageId(long largeImageId,
boolean retrieveFromCache)
|
ShoppingItem |
fetchByMediumImageId(long mediumImageId)
|
ShoppingItem |
fetchByMediumImageId(long mediumImageId,
boolean retrieveFromCache)
|
ShoppingItem |
fetchByPrimaryKey(long itemId)
|
ShoppingItem |
fetchByPrimaryKey(Serializable primaryKey)
Finds an instance of this model by its primary key, or return null if it could not be found. |
ShoppingItem |
fetchBySmallImageId(long smallImageId)
|
ShoppingItem |
fetchBySmallImageId(long smallImageId,
boolean retrieveFromCache)
|
int |
filterCountByG_C(long groupId,
long categoryId)
|
List<ShoppingItem> |
filterFindByG_C(long groupId,
long categoryId)
|
List<ShoppingItem> |
filterFindByG_C(long groupId,
long categoryId,
int start,
int end)
|
List<ShoppingItem> |
filterFindByG_C(long groupId,
long categoryId,
int start,
int end,
OrderByComparator orderByComparator)
|
List<ShoppingItem> |
findAll()
|
List<ShoppingItem> |
findAll(int start,
int end)
|
List<ShoppingItem> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
|
ShoppingItem |
findByC_S(long companyId,
String sku)
|
ShoppingItem |
findByG_C_First(long groupId,
long categoryId,
OrderByComparator orderByComparator)
|
ShoppingItem |
findByG_C_Last(long groupId,
long categoryId,
OrderByComparator orderByComparator)
|
ShoppingItem[] |
findByG_C_PrevAndNext(long itemId,
long groupId,
long categoryId,
OrderByComparator orderByComparator)
|
List<ShoppingItem> |
findByG_C(long groupId,
long categoryId)
|
List<ShoppingItem> |
findByG_C(long groupId,
long categoryId,
int start,
int end)
|
List<ShoppingItem> |
findByG_C(long groupId,
long categoryId,
int start,
int end,
OrderByComparator orderByComparator)
|
ShoppingItem |
findByLargeImageId(long largeImageId)
|
ShoppingItem |
findByMediumImageId(long mediumImageId)
|
ShoppingItem |
findByPrimaryKey(long itemId)
|
ShoppingItem |
findByPrimaryKey(Serializable primaryKey)
Finds an instance of this model by its primary key, or throw an exception if it could not be found. |
ShoppingItem |
findBySmallImageId(long smallImageId)
|
protected ShoppingItem |
getByG_C_PrevAndNext(Session session,
ShoppingItem shoppingItem,
long groupId,
long categoryId,
OrderByComparator orderByComparator,
boolean previous)
|
List<ShoppingItemPrice> |
getShoppingItemPrices(long pk)
|
List<ShoppingItemPrice> |
getShoppingItemPrices(long pk,
int start,
int end)
|
List<ShoppingItemPrice> |
getShoppingItemPrices(long pk,
int start,
int end,
OrderByComparator orderByComparator)
|
int |
getShoppingItemPricesSize(long pk)
|
ShoppingItem |
remove(long itemId)
|
ShoppingItem |
remove(Serializable primaryKey)
Removes the model instance identified by the primary key from the database, and notifies the appropriate model listeners. |
void |
removeAll()
|
void |
removeByC_S(long companyId,
String sku)
|
void |
removeByG_C(long groupId,
long categoryId)
|
void |
removeByLargeImageId(long largeImageId)
|
void |
removeByMediumImageId(long mediumImageId)
|
void |
removeBySmallImageId(long smallImageId)
|
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, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update |
| Field Detail |
|---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST
public static final FinderPath FINDER_PATH_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_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_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 ShoppingItemPersistencepublic void cacheResult(List<ShoppingItem> shoppingItems)
cacheResult in interface ShoppingItemPersistencepublic void clearCache()
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
Caching information and settings can be found in
portal.properties
clearCache in interface BasePersistence<ShoppingItem>clearCache in class BasePersistenceImpl<ShoppingItem>public void clearCache(ShoppingItem shoppingItem)
BasePersistence
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 ShoppingItem create(long itemId)
create in interface ShoppingItemPersistence
public ShoppingItem remove(Serializable primaryKey)
throws NoSuchModelException,
SystemException
BasePersistence
remove in interface BasePersistence<ShoppingItem>remove in class BasePersistenceImpl<ShoppingItem>primaryKey - the primary key of the model instance to remove
NoSuchModelException - if an instance of this model with the
primary key does not exist
SystemException - if a system exception occurred
public ShoppingItem remove(long itemId)
throws NoSuchItemException,
SystemException
remove in interface ShoppingItemPersistenceNoSuchItemException
SystemException
protected ShoppingItem removeImpl(ShoppingItem shoppingItem)
throws SystemException
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<ShoppingItem>shoppingItem - the model instance to remove
SystemException - if a system exception occurred
public ShoppingItem updateImpl(ShoppingItem shoppingItem,
boolean merge)
throws SystemException
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface ShoppingItemPersistenceupdateImpl 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
BasePersistence
findByPrimaryKey in interface BasePersistence<ShoppingItem>findByPrimaryKey in class BasePersistenceImpl<ShoppingItem>primaryKey - the primary key of the model instance to find
NoSuchModelException - if an instance of this model with the
primary key does not exist
SystemException - if the primary key is null, or if a
system exception occurred
public ShoppingItem findByPrimaryKey(long itemId)
throws NoSuchItemException,
SystemException
findByPrimaryKey in interface ShoppingItemPersistenceNoSuchItemException
SystemException
public ShoppingItem fetchByPrimaryKey(Serializable primaryKey)
throws SystemException
BasePersistencenull if it could not be found.
fetchByPrimaryKey in interface BasePersistence<ShoppingItem>fetchByPrimaryKey in class BasePersistenceImpl<ShoppingItem>primaryKey - the primary key of the model instance to find
null if an instance of this
model with the primary key does not exist
SystemException - if the primary key is null, or if a
system exception occurred
public ShoppingItem fetchByPrimaryKey(long itemId)
throws SystemException
fetchByPrimaryKey in interface ShoppingItemPersistenceSystemException
public ShoppingItem findBySmallImageId(long smallImageId)
throws NoSuchItemException,
SystemException
findBySmallImageId in interface ShoppingItemPersistenceNoSuchItemException
SystemException
public ShoppingItem fetchBySmallImageId(long smallImageId)
throws SystemException
fetchBySmallImageId in interface ShoppingItemPersistenceSystemException
public ShoppingItem fetchBySmallImageId(long smallImageId,
boolean retrieveFromCache)
throws SystemException
fetchBySmallImageId in interface ShoppingItemPersistenceSystemException
public ShoppingItem findByMediumImageId(long mediumImageId)
throws NoSuchItemException,
SystemException
findByMediumImageId in interface ShoppingItemPersistenceNoSuchItemException
SystemException
public ShoppingItem fetchByMediumImageId(long mediumImageId)
throws SystemException
fetchByMediumImageId in interface ShoppingItemPersistenceSystemException
public ShoppingItem fetchByMediumImageId(long mediumImageId,
boolean retrieveFromCache)
throws SystemException
fetchByMediumImageId in interface ShoppingItemPersistenceSystemException
public ShoppingItem findByLargeImageId(long largeImageId)
throws NoSuchItemException,
SystemException
findByLargeImageId in interface ShoppingItemPersistenceNoSuchItemException
SystemException
public ShoppingItem fetchByLargeImageId(long largeImageId)
throws SystemException
fetchByLargeImageId in interface ShoppingItemPersistenceSystemException
public ShoppingItem fetchByLargeImageId(long largeImageId,
boolean retrieveFromCache)
throws SystemException
fetchByLargeImageId in interface ShoppingItemPersistenceSystemException
public List<ShoppingItem> findByG_C(long groupId,
long categoryId)
throws SystemException
findByG_C in interface ShoppingItemPersistenceSystemException
public List<ShoppingItem> findByG_C(long groupId,
long categoryId,
int start,
int end)
throws SystemException
findByG_C in interface ShoppingItemPersistenceSystemException
public List<ShoppingItem> findByG_C(long groupId,
long categoryId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
findByG_C in interface ShoppingItemPersistenceSystemException
public ShoppingItem findByG_C_First(long groupId,
long categoryId,
OrderByComparator orderByComparator)
throws NoSuchItemException,
SystemException
findByG_C_First in interface ShoppingItemPersistenceNoSuchItemException
SystemException
public ShoppingItem findByG_C_Last(long groupId,
long categoryId,
OrderByComparator orderByComparator)
throws NoSuchItemException,
SystemException
findByG_C_Last in interface ShoppingItemPersistenceNoSuchItemException
SystemException
public ShoppingItem[] findByG_C_PrevAndNext(long itemId,
long groupId,
long categoryId,
OrderByComparator orderByComparator)
throws NoSuchItemException,
SystemException
findByG_C_PrevAndNext in interface ShoppingItemPersistenceNoSuchItemException
SystemException
protected 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 ShoppingItemPersistenceSystemException
public List<ShoppingItem> filterFindByG_C(long groupId,
long categoryId,
int start,
int end)
throws SystemException
filterFindByG_C in interface ShoppingItemPersistenceSystemException
public List<ShoppingItem> filterFindByG_C(long groupId,
long categoryId,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
filterFindByG_C in interface ShoppingItemPersistenceSystemException
public ShoppingItem findByC_S(long companyId,
String sku)
throws NoSuchItemException,
SystemException
findByC_S in interface ShoppingItemPersistenceNoSuchItemException
SystemException
public ShoppingItem fetchByC_S(long companyId,
String sku)
throws SystemException
fetchByC_S in interface ShoppingItemPersistenceSystemException
public ShoppingItem fetchByC_S(long companyId,
String sku,
boolean retrieveFromCache)
throws SystemException
fetchByC_S in interface ShoppingItemPersistenceSystemException
public List<ShoppingItem> findAll()
throws SystemException
findAll in interface ShoppingItemPersistenceSystemException
public List<ShoppingItem> findAll(int start,
int end)
throws SystemException
findAll in interface ShoppingItemPersistenceSystemException
public List<ShoppingItem> findAll(int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
findAll in interface ShoppingItemPersistenceSystemException
public void removeBySmallImageId(long smallImageId)
throws NoSuchItemException,
SystemException
removeBySmallImageId in interface ShoppingItemPersistenceNoSuchItemException
SystemException
public void removeByMediumImageId(long mediumImageId)
throws NoSuchItemException,
SystemException
removeByMediumImageId in interface ShoppingItemPersistenceNoSuchItemException
SystemException
public void removeByLargeImageId(long largeImageId)
throws NoSuchItemException,
SystemException
removeByLargeImageId in interface ShoppingItemPersistenceNoSuchItemException
SystemException
public void removeByG_C(long groupId,
long categoryId)
throws SystemException
removeByG_C in interface ShoppingItemPersistenceSystemException
public void removeByC_S(long companyId,
String sku)
throws NoSuchItemException,
SystemException
removeByC_S in interface ShoppingItemPersistenceNoSuchItemException
SystemException
public void removeAll()
throws SystemException
removeAll in interface ShoppingItemPersistenceSystemException
public int countBySmallImageId(long smallImageId)
throws SystemException
countBySmallImageId in interface ShoppingItemPersistenceSystemException
public int countByMediumImageId(long mediumImageId)
throws SystemException
countByMediumImageId in interface ShoppingItemPersistenceSystemException
public int countByLargeImageId(long largeImageId)
throws SystemException
countByLargeImageId in interface ShoppingItemPersistenceSystemException
public int countByG_C(long groupId,
long categoryId)
throws SystemException
countByG_C in interface ShoppingItemPersistenceSystemException
public int filterCountByG_C(long groupId,
long categoryId)
throws SystemException
filterCountByG_C in interface ShoppingItemPersistenceSystemException
public int countByC_S(long companyId,
String sku)
throws SystemException
countByC_S in interface ShoppingItemPersistenceSystemException
public int countAll()
throws SystemException
countAll in interface ShoppingItemPersistenceSystemException
public List<ShoppingItemPrice> getShoppingItemPrices(long pk)
throws SystemException
getShoppingItemPrices in interface ShoppingItemPersistenceSystemException
public List<ShoppingItemPrice> getShoppingItemPrices(long pk,
int start,
int end)
throws SystemException
getShoppingItemPrices in interface ShoppingItemPersistenceSystemException
public List<ShoppingItemPrice> getShoppingItemPrices(long pk,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
getShoppingItemPrices in interface ShoppingItemPersistenceSystemException
public int getShoppingItemPricesSize(long pk)
throws SystemException
getShoppingItemPricesSize in interface ShoppingItemPersistenceSystemException
public boolean containsShoppingItemPrice(long pk,
long shoppingItemPricePK)
throws SystemException
containsShoppingItemPrice in interface ShoppingItemPersistenceSystemException
public boolean containsShoppingItemPrices(long pk)
throws SystemException
containsShoppingItemPrices in interface ShoppingItemPersistenceSystemExceptionpublic void afterPropertiesSet()
|
Liferay 6.0.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||