@ProviderType
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
Caching information and settings can be found in portal.properties
ShoppingItemPersistence,
ShoppingItemUtil| Modifier and Type | Field and Description |
|---|---|
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_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_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 |
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, 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 and Description |
|---|
ShoppingItemPersistenceImpl() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected void |
cacheUniqueFindersCache(com.liferay.portlet.shopping.model.ShoppingItem shoppingItem,
boolean isNew) |
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) |
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 |
fetchByG_C_First(long groupId,
long categoryId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.shopping.model.ShoppingItem> orderByComparator)
Returns the first shopping item in the ordered set where groupId = ? and categoryId = ?.
|
com.liferay.portlet.shopping.model.ShoppingItem |
fetchByG_C_Last(long groupId,
long categoryId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.shopping.model.ShoppingItem> orderByComparator)
Returns the last shopping item in the ordered set where groupId = ? and categoryId = ?.
|
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. |
java.util.Map<java.io.Serializable,com.liferay.portlet.shopping.model.ShoppingItem> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
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<com.liferay.portlet.shopping.model.ShoppingItem> 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<com.liferay.portlet.shopping.model.ShoppingItem> 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<com.liferay.portlet.shopping.model.ShoppingItem> 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<com.liferay.portlet.shopping.model.ShoppingItem> 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<com.liferay.portlet.shopping.model.ShoppingItem> 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<com.liferay.portlet.shopping.model.ShoppingItem> 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<com.liferay.portlet.shopping.model.ShoppingItem> 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<com.liferay.portlet.shopping.model.ShoppingItem> 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 java.util.Set<java.lang.String> |
getBadColumnNames() |
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<com.liferay.portlet.shopping.model.ShoppingItem> orderByComparator,
boolean previous) |
protected java.util.Map<java.lang.String,java.lang.Integer> |
getTableColumnsMap() |
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.
|
com.liferay.portlet.shopping.model.ShoppingItem |
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.
|
com.liferay.portlet.shopping.model.ShoppingItem |
removeByLargeImageId(long largeImageId)
Removes the shopping item where largeImageId = ? from the database.
|
com.liferay.portlet.shopping.model.ShoppingItem |
removeByMediumImageId(long mediumImageId)
Removes the shopping item where mediumImageId = ? from the database.
|
com.liferay.portlet.shopping.model.ShoppingItem |
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) |
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImplclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, updatepublic static final java.lang.String FINDER_CLASS_NAME_ENTITY
public static final java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_SMALLIMAGEID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_SMALLIMAGEID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_MEDIUMIMAGEID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_MEDIUMIMAGEID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_LARGEIMAGEID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_LARGEIMAGEID
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_G_C
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_G_C
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_G_C
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_C_S
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_S
public com.liferay.portlet.shopping.model.ShoppingItem findBySmallImageId(long smallImageId)
throws com.liferay.portlet.shopping.NoSuchItemException
NoSuchItemException if it could not be found.findBySmallImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencesmallImageId - the small image IDcom.liferay.portlet.shopping.NoSuchItemException - if a matching shopping item could not be foundpublic com.liferay.portlet.shopping.model.ShoppingItem fetchBySmallImageId(long smallImageId)
null if it could not be found. Uses the finder cache.fetchBySmallImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencesmallImageId - the small image IDnull if a matching shopping item could not be foundpublic com.liferay.portlet.shopping.model.ShoppingItem fetchBySmallImageId(long smallImageId,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.fetchBySmallImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencesmallImageId - the small image IDretrieveFromCache - whether to use the finder cachenull if a matching shopping item could not be foundpublic com.liferay.portlet.shopping.model.ShoppingItem removeBySmallImageId(long smallImageId)
throws com.liferay.portlet.shopping.NoSuchItemException
removeBySmallImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencesmallImageId - the small image IDcom.liferay.portlet.shopping.NoSuchItemExceptionpublic int countBySmallImageId(long smallImageId)
countBySmallImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencesmallImageId - the small image IDpublic com.liferay.portlet.shopping.model.ShoppingItem findByMediumImageId(long mediumImageId)
throws com.liferay.portlet.shopping.NoSuchItemException
NoSuchItemException if it could not be found.findByMediumImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencemediumImageId - the medium image IDcom.liferay.portlet.shopping.NoSuchItemException - if a matching shopping item could not be foundpublic com.liferay.portlet.shopping.model.ShoppingItem fetchByMediumImageId(long mediumImageId)
null if it could not be found. Uses the finder cache.fetchByMediumImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencemediumImageId - the medium image IDnull if a matching shopping item could not be foundpublic com.liferay.portlet.shopping.model.ShoppingItem fetchByMediumImageId(long mediumImageId,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.fetchByMediumImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencemediumImageId - the medium image IDretrieveFromCache - whether to use the finder cachenull if a matching shopping item could not be foundpublic com.liferay.portlet.shopping.model.ShoppingItem removeByMediumImageId(long mediumImageId)
throws com.liferay.portlet.shopping.NoSuchItemException
removeByMediumImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencemediumImageId - the medium image IDcom.liferay.portlet.shopping.NoSuchItemExceptionpublic int countByMediumImageId(long mediumImageId)
countByMediumImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencemediumImageId - the medium image IDpublic com.liferay.portlet.shopping.model.ShoppingItem findByLargeImageId(long largeImageId)
throws com.liferay.portlet.shopping.NoSuchItemException
NoSuchItemException if it could not be found.findByLargeImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencelargeImageId - the large image IDcom.liferay.portlet.shopping.NoSuchItemException - if a matching shopping item could not be foundpublic com.liferay.portlet.shopping.model.ShoppingItem fetchByLargeImageId(long largeImageId)
null if it could not be found. Uses the finder cache.fetchByLargeImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencelargeImageId - the large image IDnull if a matching shopping item could not be foundpublic com.liferay.portlet.shopping.model.ShoppingItem fetchByLargeImageId(long largeImageId,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.fetchByLargeImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencelargeImageId - the large image IDretrieveFromCache - whether to use the finder cachenull if a matching shopping item could not be foundpublic com.liferay.portlet.shopping.model.ShoppingItem removeByLargeImageId(long largeImageId)
throws com.liferay.portlet.shopping.NoSuchItemException
removeByLargeImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencelargeImageId - the large image IDcom.liferay.portlet.shopping.NoSuchItemExceptionpublic int countByLargeImageId(long largeImageId)
countByLargeImageId in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencelargeImageId - the large image IDpublic java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByG_C(long groupId,
long categoryId)
findByG_C in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencegroupId - the group IDcategoryId - the category IDpublic java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findByG_C(long groupId,
long categoryId,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from ShoppingItemModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByG_C in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencegroupId - the group IDcategoryId - the category IDstart - the lower bound of the range of shopping itemsend - the upper bound of the range of shopping items (not inclusive)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<com.liferay.portlet.shopping.model.ShoppingItem> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from ShoppingItemModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByG_C in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencegroupId - the group IDcategoryId - the category IDstart - the lower bound of the range of shopping itemsend - the upper bound of the range of shopping items (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public com.liferay.portlet.shopping.model.ShoppingItem findByG_C_First(long groupId,
long categoryId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.shopping.model.ShoppingItem> orderByComparator)
throws com.liferay.portlet.shopping.NoSuchItemException
findByG_C_First in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencegroupId - the group IDcategoryId - the category IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.portlet.shopping.NoSuchItemException - if a matching shopping item could not be foundpublic com.liferay.portlet.shopping.model.ShoppingItem fetchByG_C_First(long groupId,
long categoryId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.shopping.model.ShoppingItem> orderByComparator)
fetchByG_C_First in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencegroupId - the group IDcategoryId - the category IDorderByComparator - the comparator to order the set by (optionally null)null if a matching shopping item could not be foundpublic com.liferay.portlet.shopping.model.ShoppingItem findByG_C_Last(long groupId,
long categoryId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.shopping.model.ShoppingItem> orderByComparator)
throws com.liferay.portlet.shopping.NoSuchItemException
findByG_C_Last in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencegroupId - the group IDcategoryId - the category IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.portlet.shopping.NoSuchItemException - if a matching shopping item could not be foundpublic com.liferay.portlet.shopping.model.ShoppingItem fetchByG_C_Last(long groupId,
long categoryId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.shopping.model.ShoppingItem> orderByComparator)
fetchByG_C_Last in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencegroupId - the group IDcategoryId - the category IDorderByComparator - the comparator to order the set by (optionally null)null if a matching shopping item could not be foundpublic com.liferay.portlet.shopping.model.ShoppingItem[] findByG_C_PrevAndNext(long itemId,
long groupId,
long categoryId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.shopping.model.ShoppingItem> orderByComparator)
throws com.liferay.portlet.shopping.NoSuchItemException
findByG_C_PrevAndNext in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistenceitemId - the primary key of the current shopping itemgroupId - the group IDcategoryId - the category IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.portlet.shopping.NoSuchItemException - if a shopping item with the primary key could not be foundprotected 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<com.liferay.portlet.shopping.model.ShoppingItem> orderByComparator,
boolean previous)
public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> filterFindByG_C(long groupId,
long categoryId)
filterFindByG_C in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencegroupId - the group IDcategoryId - the category IDpublic java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> filterFindByG_C(long groupId,
long categoryId,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from ShoppingItemModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
filterFindByG_C in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencegroupId - the group IDcategoryId - the category IDstart - the lower bound of the range of shopping itemsend - the upper bound of the range of shopping items (not inclusive)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<com.liferay.portlet.shopping.model.ShoppingItem> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from ShoppingItemModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
filterFindByG_C in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencegroupId - the group IDcategoryId - the category IDstart - the lower bound of the range of shopping itemsend - the upper bound of the range of shopping items (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public com.liferay.portlet.shopping.model.ShoppingItem[] filterFindByG_C_PrevAndNext(long itemId,
long groupId,
long categoryId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.shopping.model.ShoppingItem> orderByComparator)
throws com.liferay.portlet.shopping.NoSuchItemException
filterFindByG_C_PrevAndNext in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistenceitemId - the primary key of the current shopping itemgroupId - the group IDcategoryId - the category IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.portlet.shopping.NoSuchItemException - if a shopping item with the primary key could not be foundprotected 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<com.liferay.portlet.shopping.model.ShoppingItem> orderByComparator,
boolean previous)
public void removeByG_C(long groupId,
long categoryId)
removeByG_C in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencegroupId - the group IDcategoryId - the category IDpublic int countByG_C(long groupId,
long categoryId)
countByG_C in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencegroupId - the group IDcategoryId - the category IDpublic int filterCountByG_C(long groupId,
long categoryId)
filterCountByG_C in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencegroupId - the group IDcategoryId - the category IDpublic com.liferay.portlet.shopping.model.ShoppingItem findByC_S(long companyId,
java.lang.String sku)
throws com.liferay.portlet.shopping.NoSuchItemException
NoSuchItemException if it could not be found.findByC_S in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencecompanyId - the company IDsku - the skucom.liferay.portlet.shopping.NoSuchItemException - if a matching shopping item could not be foundpublic com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S(long companyId,
java.lang.String sku)
null if it could not be found. Uses the finder cache.fetchByC_S in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencecompanyId - the company IDsku - the skunull if a matching shopping item could not be foundpublic com.liferay.portlet.shopping.model.ShoppingItem fetchByC_S(long companyId,
java.lang.String sku,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.fetchByC_S in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencecompanyId - the company IDsku - the skuretrieveFromCache - whether to use the finder cachenull if a matching shopping item could not be foundpublic com.liferay.portlet.shopping.model.ShoppingItem removeByC_S(long companyId,
java.lang.String sku)
throws com.liferay.portlet.shopping.NoSuchItemException
removeByC_S in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencecompanyId - the company IDsku - the skucom.liferay.portlet.shopping.NoSuchItemExceptionpublic int countByC_S(long companyId,
java.lang.String sku)
countByC_S in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencecompanyId - the company IDsku - the skupublic void cacheResult(com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
cacheResult in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistenceshoppingItem - the shopping itempublic void cacheResult(java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> shoppingItems)
cacheResult in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistenceshoppingItems - the shopping itemspublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.shopping.model.ShoppingItem>clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.shopping.model.ShoppingItem>public void clearCache(com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.shopping.model.ShoppingItem>clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.shopping.model.ShoppingItem>public void clearCache(java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> shoppingItems)
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.shopping.model.ShoppingItem>clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.shopping.model.ShoppingItem>protected void cacheUniqueFindersCache(com.liferay.portlet.shopping.model.ShoppingItem shoppingItem,
boolean isNew)
protected void clearUniqueFindersCache(com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
public com.liferay.portlet.shopping.model.ShoppingItem create(long itemId)
create in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistenceitemId - the primary key for the new shopping itempublic com.liferay.portlet.shopping.model.ShoppingItem remove(long itemId)
throws com.liferay.portlet.shopping.NoSuchItemException
remove in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistenceitemId - the primary key of the shopping itemcom.liferay.portlet.shopping.NoSuchItemException - if a shopping item with the primary key could not be foundpublic com.liferay.portlet.shopping.model.ShoppingItem remove(java.io.Serializable primaryKey)
throws com.liferay.portlet.shopping.NoSuchItemException
remove in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.shopping.model.ShoppingItem>remove in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.shopping.model.ShoppingItem>primaryKey - the primary key of the shopping itemcom.liferay.portlet.shopping.NoSuchItemException - if a shopping item with the primary key could not be foundprotected com.liferay.portlet.shopping.model.ShoppingItem removeImpl(com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
removeImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.shopping.model.ShoppingItem>public com.liferay.portlet.shopping.model.ShoppingItem updateImpl(com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
updateImpl in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistenceupdateImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.shopping.model.ShoppingItem>protected com.liferay.portlet.shopping.model.ShoppingItem toUnwrappedModel(com.liferay.portlet.shopping.model.ShoppingItem shoppingItem)
public com.liferay.portlet.shopping.model.ShoppingItem findByPrimaryKey(java.io.Serializable primaryKey)
throws com.liferay.portlet.shopping.NoSuchItemException
NoSuchModelException if it could not be found.findByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.shopping.model.ShoppingItem>findByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.shopping.model.ShoppingItem>primaryKey - the primary key of the shopping itemcom.liferay.portlet.shopping.NoSuchItemException - if a shopping item with the primary key could not be foundpublic com.liferay.portlet.shopping.model.ShoppingItem findByPrimaryKey(long itemId)
throws com.liferay.portlet.shopping.NoSuchItemException
NoSuchItemException if it could not be found.findByPrimaryKey in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistenceitemId - the primary key of the shopping itemcom.liferay.portlet.shopping.NoSuchItemException - if a shopping item with the primary key could not be foundpublic com.liferay.portlet.shopping.model.ShoppingItem fetchByPrimaryKey(java.io.Serializable primaryKey)
null if it could not be found.fetchByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.shopping.model.ShoppingItem>fetchByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.shopping.model.ShoppingItem>primaryKey - the primary key of the shopping itemnull if a shopping item with the primary key could not be foundpublic com.liferay.portlet.shopping.model.ShoppingItem fetchByPrimaryKey(long itemId)
null if it could not be found.fetchByPrimaryKey in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistenceitemId - the primary key of the shopping itemnull if a shopping item with the primary key could not be foundpublic java.util.Map<java.io.Serializable,com.liferay.portlet.shopping.model.ShoppingItem> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.shopping.model.ShoppingItem>fetchByPrimaryKeys in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencefetchByPrimaryKeys in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.shopping.model.ShoppingItem>public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll()
findAll in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencepublic java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from ShoppingItemModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencestart - the lower bound of the range of shopping itemsend - the upper bound of the range of shopping items (not inclusive)public java.util.List<com.liferay.portlet.shopping.model.ShoppingItem> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.shopping.model.ShoppingItem> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from ShoppingItemModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencestart - the lower bound of the range of shopping itemsend - the upper bound of the range of shopping items (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public void removeAll()
removeAll in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistencepublic int countAll()
countAll in interface com.liferay.portlet.shopping.service.persistence.ShoppingItemPersistenceprotected java.util.Set<java.lang.String> getBadColumnNames()
getBadColumnNames in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.shopping.model.ShoppingItem>protected java.util.Map<java.lang.String,java.lang.Integer> getTableColumnsMap()
getTableColumnsMap in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.shopping.model.ShoppingItem>public void afterPropertiesSet()
public void destroy()