|
Liferay 6.0.5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ShoppingItemFieldPersistence
The persistence interface for the shopping item field service.
Never modify or reference this interface directly. Always use ShoppingItemFieldUtil to access the shopping item field persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface.
Caching information and settings can be found in portal.properties
ShoppingItemFieldPersistenceImpl,
ShoppingItemFieldUtil| Method Summary | |
|---|---|
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. |
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. |
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 |
remove(long itemFieldId)
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. |
ShoppingItemField |
updateImpl(ShoppingItemField shoppingItemField,
boolean merge)
|
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update, update |
| Method Detail |
|---|
void cacheResult(ShoppingItemField shoppingItemField)
shoppingItemField - the shopping item field to cachevoid cacheResult(List<ShoppingItemField> shoppingItemFields)
shoppingItemFields - the shopping item fields to cacheShoppingItemField create(long itemFieldId)
itemFieldId - the primary key for the new shopping item field
ShoppingItemField remove(long itemFieldId)
throws SystemException,
NoSuchItemFieldException
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 occurred
ShoppingItemField updateImpl(ShoppingItemField shoppingItemField,
boolean merge)
throws SystemException
SystemException
ShoppingItemField findByPrimaryKey(long itemFieldId)
throws SystemException,
NoSuchItemFieldException
NoSuchItemFieldException if it could not be found.
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 occurred
ShoppingItemField fetchByPrimaryKey(long itemFieldId)
throws SystemException
null if it could not be found.
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 occurred
List<ShoppingItemField> findByItemId(long itemId)
throws SystemException
itemId - the item id to search with
SystemException - if a system exception occurred
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.
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 occurred
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.
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 occurred
ShoppingItemField findByItemId_First(long itemId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchItemFieldException
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.
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 occurred
ShoppingItemField findByItemId_Last(long itemId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchItemFieldException
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.
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 occurred
ShoppingItemField[] findByItemId_PrevAndNext(long itemFieldId,
long itemId,
OrderByComparator orderByComparator)
throws SystemException,
NoSuchItemFieldException
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.
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 occurred
List<ShoppingItemField> findAll()
throws SystemException
SystemException - if a system exception occurred
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.
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 occurred
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.
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 occurred
void removeByItemId(long itemId)
throws SystemException
itemId - the item id to search with
SystemException - if a system exception occurred
void removeAll()
throws SystemException
SystemException - if a system exception occurred
int countByItemId(long itemId)
throws SystemException
itemId - the item id to search with
SystemException - if a system exception occurred
int countAll()
throws SystemException
SystemException - if a system exception occurred
|
Liferay 6.0.5 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||