|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.persistence.impl.BasePersistenceImpl<ShoppingItemField> com.liferay.portlet.shopping.service.persistence.ShoppingItemFieldPersistenceImpl
public class ShoppingItemFieldPersistenceImpl
The persistence implementation for the shopping item field service.
Never modify or reference this class directly. Always use ShoppingItemFieldUtil
to access the shopping item field persistence. Modify service.xml
and rerun ServiceBuilder to regenerate this class.
Caching information and settings can be found in portal.properties
ShoppingItemFieldPersistence
,
ShoppingItemFieldUtil
Field Summary | |
---|---|
static String |
FINDER_CLASS_NAME_ENTITY
|
static String |
FINDER_CLASS_NAME_LIST
|
static FinderPath |
FINDER_PATH_COUNT_ALL
|
static FinderPath |
FINDER_PATH_COUNT_BY_ITEMID
|
static FinderPath |
FINDER_PATH_FIND_ALL
|
static FinderPath |
FINDER_PATH_FIND_BY_ITEMID
|
protected ResourcePersistence |
resourcePersistence
|
protected ShoppingCartPersistence |
shoppingCartPersistence
|
protected ShoppingCategoryPersistence |
shoppingCategoryPersistence
|
protected ShoppingCouponPersistence |
shoppingCouponPersistence
|
protected ShoppingItemFieldPersistence |
shoppingItemFieldPersistence
|
protected ShoppingItemPersistence |
shoppingItemPersistence
|
protected ShoppingItemPricePersistence |
shoppingItemPricePersistence
|
protected ShoppingOrderItemPersistence |
shoppingOrderItemPersistence
|
protected ShoppingOrderPersistence |
shoppingOrderPersistence
|
protected UserPersistence |
userPersistence
|
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 | |
---|---|
ShoppingItemFieldPersistenceImpl()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Initializes the shopping item field persistence. |
void |
cacheResult(List<ShoppingItemField> shoppingItemFields)
Caches the shopping item fields in the entity cache if it is enabled. |
void |
cacheResult(ShoppingItemField shoppingItemField)
Caches the shopping item field in the entity cache if it is enabled. |
void |
clearCache()
Clears the cache for all shopping item fields. |
void |
clearCache(ShoppingItemField shoppingItemField)
Clears the cache for the shopping item field. |
int |
countAll()
Counts all the shopping item fields. |
int |
countByItemId(long itemId)
Counts all the shopping item fields where itemId = ?. |
ShoppingItemField |
create(long itemFieldId)
Creates a new shopping item field with the primary key. |
ShoppingItemField |
fetchByPrimaryKey(long itemFieldId)
Finds the shopping item field with the primary key or returns null if it could not be found. |
ShoppingItemField |
fetchByPrimaryKey(Serializable primaryKey)
Finds the shopping item field with the primary key or returns null if it could not be found. |
List<ShoppingItemField> |
findAll()
Finds all the shopping item fields. |
List<ShoppingItemField> |
findAll(int start,
int end)
Finds a range of all the shopping item fields. |
List<ShoppingItemField> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the shopping item fields. |
ShoppingItemField |
findByItemId_First(long itemId,
OrderByComparator orderByComparator)
Finds the first shopping item field in the ordered set where itemId = ?. |
ShoppingItemField |
findByItemId_Last(long itemId,
OrderByComparator orderByComparator)
Finds the last shopping item field in the ordered set where itemId = ?. |
ShoppingItemField[] |
findByItemId_PrevAndNext(long itemFieldId,
long itemId,
OrderByComparator orderByComparator)
Finds the shopping item fields before and after the current shopping item field in the ordered set where itemId = ?. |
List<ShoppingItemField> |
findByItemId(long itemId)
Finds all the shopping item fields where itemId = ?. |
List<ShoppingItemField> |
findByItemId(long itemId,
int start,
int end)
Finds a range of all the shopping item fields where itemId = ?. |
List<ShoppingItemField> |
findByItemId(long itemId,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the shopping item fields where itemId = ?. |
ShoppingItemField |
findByPrimaryKey(long itemFieldId)
Finds the shopping item field with the primary key or throws a NoSuchItemFieldException if it could not be found. |
ShoppingItemField |
findByPrimaryKey(Serializable primaryKey)
Finds the shopping item field with the primary key or throws a NoSuchModelException if it could not be found. |
protected ShoppingItemField |
getByItemId_PrevAndNext(Session session,
ShoppingItemField shoppingItemField,
long itemId,
OrderByComparator orderByComparator,
boolean previous)
|
ShoppingItemField |
remove(long itemFieldId)
Removes the shopping item field with the primary key from the database. |
ShoppingItemField |
remove(Serializable primaryKey)
Removes the shopping item field with the primary key from the database. |
void |
removeAll()
Removes all the shopping item fields from the database. |
void |
removeByItemId(long itemId)
Removes all the shopping item fields where itemId = ? from the database. |
protected ShoppingItemField |
removeImpl(ShoppingItemField shoppingItemField)
Removes the model instance from the database. |
protected ShoppingItemField |
toUnwrappedModel(ShoppingItemField shoppingItemField)
|
ShoppingItemField |
updateImpl(ShoppingItemField shoppingItemField,
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_FIND_BY_ITEMID
public static final FinderPath FINDER_PATH_COUNT_BY_ITEMID
public static final FinderPath FINDER_PATH_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
@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=ResourcePersistence.class) protected ResourcePersistence resourcePersistence
@BeanReference(type=UserPersistence.class) protected UserPersistence userPersistence
Constructor Detail |
---|
public ShoppingItemFieldPersistenceImpl()
Method Detail |
---|
public void cacheResult(ShoppingItemField shoppingItemField)
cacheResult
in interface ShoppingItemFieldPersistence
shoppingItemField
- the shopping item field to cachepublic void cacheResult(List<ShoppingItemField> shoppingItemFields)
cacheResult
in interface ShoppingItemFieldPersistence
shoppingItemFields
- the shopping item fields to cachepublic void clearCache()
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<ShoppingItemField>
clearCache
in class BasePersistenceImpl<ShoppingItemField>
public void clearCache(ShoppingItemField shoppingItemField)
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface BasePersistence<ShoppingItemField>
clearCache
in class BasePersistenceImpl<ShoppingItemField>
shoppingItemField
- the instance of this model to clear the cache forpublic ShoppingItemField create(long itemFieldId)
create
in interface ShoppingItemFieldPersistence
itemFieldId
- the primary key for the new shopping item field
public ShoppingItemField remove(Serializable primaryKey) throws NoSuchModelException, SystemException
remove
in interface BasePersistence<ShoppingItemField>
remove
in class BasePersistenceImpl<ShoppingItemField>
primaryKey
- the primary key of the shopping item field to remove
NoSuchModelException
- if a shopping item field with the primary key could not be found
SystemException
- if a system exception occurredpublic ShoppingItemField remove(long itemFieldId) throws NoSuchItemFieldException, SystemException
remove
in interface ShoppingItemFieldPersistence
itemFieldId
- the primary key of the shopping item field to remove
NoSuchItemFieldException
- if a shopping item field with the primary key could not be found
SystemException
- if a system exception occurredprotected ShoppingItemField removeImpl(ShoppingItemField shoppingItemField) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.update(BaseModel,
boolean)
depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl
in class BasePersistenceImpl<ShoppingItemField>
shoppingItemField
- the model instance to remove
SystemException
- if a system exception occurredpublic ShoppingItemField updateImpl(ShoppingItemField shoppingItemField, boolean merge) throws SystemException
BasePersistenceImpl
BasePersistenceImpl.remove(BaseModel)
depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl
in interface ShoppingItemFieldPersistence
updateImpl
in class BasePersistenceImpl<ShoppingItemField>
shoppingItemField
- 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 ShoppingItemField toUnwrappedModel(ShoppingItemField shoppingItemField)
public ShoppingItemField findByPrimaryKey(Serializable primaryKey) throws NoSuchModelException, SystemException
NoSuchModelException
if it could not be found.
findByPrimaryKey
in interface BasePersistence<ShoppingItemField>
findByPrimaryKey
in class BasePersistenceImpl<ShoppingItemField>
primaryKey
- the primary key of the shopping item field to find
NoSuchModelException
- if a shopping item field with the primary key could not be found
SystemException
- if a system exception occurredpublic ShoppingItemField findByPrimaryKey(long itemFieldId) throws NoSuchItemFieldException, SystemException
NoSuchItemFieldException
if it could not be found.
findByPrimaryKey
in interface ShoppingItemFieldPersistence
itemFieldId
- the primary key of the shopping item field to find
NoSuchItemFieldException
- if a shopping item field with the primary key could not be found
SystemException
- if a system exception occurredpublic ShoppingItemField fetchByPrimaryKey(Serializable primaryKey) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface BasePersistence<ShoppingItemField>
fetchByPrimaryKey
in class BasePersistenceImpl<ShoppingItemField>
primaryKey
- the primary key of the shopping item field to find
null
if a shopping item field with the primary key could not be found
SystemException
- if a system exception occurredpublic ShoppingItemField fetchByPrimaryKey(long itemFieldId) throws SystemException
null
if it could not be found.
fetchByPrimaryKey
in interface ShoppingItemFieldPersistence
itemFieldId
- the primary key of the shopping item field to find
null
if a shopping item field with the primary key could not be found
SystemException
- if a system exception occurredpublic List<ShoppingItemField> findByItemId(long itemId) throws SystemException
findByItemId
in interface ShoppingItemFieldPersistence
itemId
- the item id to search with
SystemException
- if a system exception occurredpublic List<ShoppingItemField> findByItemId(long itemId, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findByItemId
in interface ShoppingItemFieldPersistence
itemId
- the item id to search withstart
- the lower bound of the range of shopping item fields to returnend
- the upper bound of the range of shopping item fields to return (not inclusive)
SystemException
- if a system exception occurredpublic List<ShoppingItemField> findByItemId(long itemId, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findByItemId
in interface ShoppingItemFieldPersistence
itemId
- the item id to search withstart
- the lower bound of the range of shopping item fields to returnend
- the upper bound of the range of shopping item fields to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic ShoppingItemField findByItemId_First(long itemId, OrderByComparator orderByComparator) throws NoSuchItemFieldException, SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findByItemId_First
in interface ShoppingItemFieldPersistence
itemId
- the item id to search withorderByComparator
- the comparator to order the set by
NoSuchItemFieldException
- if a matching shopping item field could not be found
SystemException
- if a system exception occurredpublic ShoppingItemField findByItemId_Last(long itemId, OrderByComparator orderByComparator) throws NoSuchItemFieldException, SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findByItemId_Last
in interface ShoppingItemFieldPersistence
itemId
- the item id to search withorderByComparator
- the comparator to order the set by
NoSuchItemFieldException
- if a matching shopping item field could not be found
SystemException
- if a system exception occurredpublic ShoppingItemField[] findByItemId_PrevAndNext(long itemFieldId, long itemId, OrderByComparator orderByComparator) throws NoSuchItemFieldException, SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findByItemId_PrevAndNext
in interface ShoppingItemFieldPersistence
itemFieldId
- the primary key of the current shopping item fielditemId
- the item id to search withorderByComparator
- the comparator to order the set by
NoSuchItemFieldException
- if a shopping item field with the primary key could not be found
SystemException
- if a system exception occurredprotected ShoppingItemField getByItemId_PrevAndNext(Session session, ShoppingItemField shoppingItemField, long itemId, OrderByComparator orderByComparator, boolean previous)
public List<ShoppingItemField> findAll() throws SystemException
findAll
in interface ShoppingItemFieldPersistence
SystemException
- if a system exception occurredpublic List<ShoppingItemField> findAll(int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findAll
in interface ShoppingItemFieldPersistence
start
- the lower bound of the range of shopping item fields to returnend
- the upper bound of the range of shopping item fields to return (not inclusive)
SystemException
- if a system exception occurredpublic List<ShoppingItemField> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil.ALL_POS
will return the full result set.
findAll
in interface ShoppingItemFieldPersistence
start
- the lower bound of the range of shopping item fields to returnend
- the upper bound of the range of shopping item fields to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredpublic void removeByItemId(long itemId) throws SystemException
removeByItemId
in interface ShoppingItemFieldPersistence
itemId
- the item id to search with
SystemException
- if a system exception occurredpublic void removeAll() throws SystemException
removeAll
in interface ShoppingItemFieldPersistence
SystemException
- if a system exception occurredpublic int countByItemId(long itemId) throws SystemException
countByItemId
in interface ShoppingItemFieldPersistence
itemId
- the item id to search with
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface ShoppingItemFieldPersistence
SystemException
- if a system exception occurredpublic void afterPropertiesSet()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |