|
Liferay 6.2-ce-ga5 | |||||||||
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 Set<String> |
getBadColumnNames()
|
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)
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, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl |
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, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, 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_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
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
Constructor Detail |
---|
public ShoppingItemFieldPersistenceImpl()
Method Detail |
---|
public 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. 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 ShoppingItemFieldModelImpl
. 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.
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. 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 ShoppingItemFieldModelImpl
. 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.
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 void removeByItemId(long itemId) throws SystemException
removeByItemId
in interface ShoppingItemFieldPersistence
itemId
- the item ID
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 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) 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 update
SystemException
- if a system exception occurredprotected ShoppingItemField toUnwrappedModel(ShoppingItemField shoppingItemField)
public ShoppingItemField findByPrimaryKey(Serializable primaryKey) throws NoSuchItemFieldException, 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
NoSuchItemFieldException
- 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> 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. 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 ShoppingItemFieldModelImpl
. 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 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. 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 ShoppingItemFieldModelImpl
. 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 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 removeAll() throws SystemException
removeAll
in interface ShoppingItemFieldPersistence
SystemException
- if a system exception occurredpublic int countAll() throws SystemException
countAll
in interface ShoppingItemFieldPersistence
SystemException
- if a system exception occurredprotected Set<String> getBadColumnNames()
getBadColumnNames
in class BasePersistenceImpl<ShoppingItemField>
public void afterPropertiesSet()
public void destroy()
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |