|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.service.persistence.impl.BasePersistenceImpl<ShoppingItemField> com.liferay.portlet.shopping.service.persistence.ShoppingItemFieldPersistenceImpl
public class ShoppingItemFieldPersistenceImpl
The persistence implementation for the shopping item field service.
Caching information and settings can be found in portal.properties
ShoppingItemFieldPersistence
,
ShoppingItemFieldUtil
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 | |
---|---|
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(List<ShoppingItemField> shoppingItemFields)
Clears the cache for a List instances of this model. |
void |
clearCache(ShoppingItemField shoppingItemField)
Clears the cache for the shopping item field. |
int |
countAll()
Returns the number of shopping item fields. |
int |
countByItemId(long itemId)
Returns the number of shopping item fields where itemId = ?. |
ShoppingItemField |
create(long itemFieldId)
Creates a new shopping item field with the primary key. |
void |
destroy()
|
ShoppingItemField |
fetchByItemId_First(long itemId,
OrderByComparator orderByComparator)
Returns the first shopping item field in the ordered set where itemId = ?. |
ShoppingItemField |
fetchByItemId_Last(long itemId,
OrderByComparator orderByComparator)
Returns the last shopping item field in the ordered set where itemId = ?. |
ShoppingItemField |
fetchByPrimaryKey(long itemFieldId)
Returns the shopping item field with the primary key or returns null if it could not be found. |
ShoppingItemField |
fetchByPrimaryKey(Serializable primaryKey)
Returns the shopping item field with the primary key or returns null if it could not be found. |
List<ShoppingItemField> |
findAll()
Returns all the shopping item fields. |
List<ShoppingItemField> |
findAll(int start,
int end)
Returns a range of all the shopping item fields. |
List<ShoppingItemField> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping item fields. |
ShoppingItemField |
findByItemId_First(long itemId,
OrderByComparator orderByComparator)
Returns the first shopping item field in the ordered set where itemId = ?. |
ShoppingItemField |
findByItemId_Last(long itemId,
OrderByComparator orderByComparator)
Returns the last shopping item field in the ordered set where itemId = ?. |
ShoppingItemField[] |
findByItemId_PrevAndNext(long itemFieldId,
long itemId,
OrderByComparator orderByComparator)
Returns the shopping item fields before and after the current shopping item field in the ordered set where itemId = ?. |
List<ShoppingItemField> |
findByItemId(long itemId)
Returns all the shopping item fields where itemId = ?. |
List<ShoppingItemField> |
findByItemId(long itemId,
int start,
int end)
Returns a range of all the shopping item fields where itemId = ?. |
List<ShoppingItemField> |
findByItemId(long itemId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the shopping item fields where itemId = ?. |
ShoppingItemField |
findByPrimaryKey(long itemFieldId)
Returns the shopping item field with the primary key or throws a NoSuchItemFieldException if it could not be found. |
ShoppingItemField |
findByPrimaryKey(Serializable primaryKey)
Returns 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, getClassLoader, getDataSource, getDB, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
---|
closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update |
Field Detail |
---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_ITEMID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ITEMID
public static final FinderPath FINDER_PATH_COUNT_BY_ITEMID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
@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 fieldpublic void cacheResult(List<ShoppingItemField> shoppingItemFields)
cacheResult
in interface ShoppingItemFieldPersistence
shoppingItemFields
- the shopping item fieldspublic 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 void clearCache(List<ShoppingItemField> shoppingItemFields)
BasePersistence
The EntityCache
and FinderCache
are both cleared by this
method.
clearCache
in interface BasePersistence<ShoppingItemField>
clearCache
in class BasePersistenceImpl<ShoppingItemField>
shoppingItemFields
- the List instances 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(long itemFieldId) throws NoSuchItemFieldException, SystemException
remove
in interface ShoppingItemFieldPersistence
itemFieldId
- the primary key of the shopping item field
NoSuchItemFieldException
- if a shopping item field with the primary key could not be found
SystemException
- if a system exception occurredpublic ShoppingItemField remove(Serializable primaryKey) throws NoSuchItemFieldException, SystemException
remove
in interface BasePersistence<ShoppingItemField>
remove
in class BasePersistenceImpl<ShoppingItemField>
primaryKey
- the primary key of the shopping item field
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
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
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
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
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
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 IDstart
- the lower bound of the range of shopping item fieldsend
- the upper bound of the range of shopping item fields (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 IDstart
- the lower bound of the range of shopping item fieldsend
- the upper bound of the range of shopping item fields (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic ShoppingItemField findByItemId_First(long itemId, OrderByComparator orderByComparator) throws NoSuchItemFieldException, SystemException
findByItemId_First
in interface ShoppingItemFieldPersistence
itemId
- the item IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchItemFieldException
- if a matching shopping item field could not be found
SystemException
- if a system exception occurredpublic ShoppingItemField fetchByItemId_First(long itemId, OrderByComparator orderByComparator) throws SystemException
fetchByItemId_First
in interface ShoppingItemFieldPersistence
itemId
- the item IDorderByComparator
- the comparator to order the set by (optionally null
)
null
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
findByItemId_Last
in interface ShoppingItemFieldPersistence
itemId
- the item IDorderByComparator
- the comparator to order the set by (optionally null
)
NoSuchItemFieldException
- if a matching shopping item field could not be found
SystemException
- if a system exception occurredpublic ShoppingItemField fetchByItemId_Last(long itemId, OrderByComparator orderByComparator) throws SystemException
fetchByItemId_Last
in interface ShoppingItemFieldPersistence
itemId
- the item IDorderByComparator
- the comparator to order the set by (optionally null
)
null
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
findByItemId_PrevAndNext
in interface ShoppingItemFieldPersistence
itemFieldId
- the primary key of the current shopping item fielditemId
- the item IDorderByComparator
- the comparator to order the set by (optionally null
)
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 fieldsend
- the upper bound of the range of shopping item fields (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 fieldsend
- the upper bound of the range of shopping item fields (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)
SystemException
- if a system exception occurredpublic void removeByItemId(long itemId) throws SystemException
removeByItemId
in interface ShoppingItemFieldPersistence
itemId
- the item ID
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
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface ShoppingItemFieldPersistence
SystemException
- if a system exception occurredpublic void afterPropertiesSet()
public void destroy()
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |