|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ListTypePersistence
The persistence interface for the list type service.
Never modify or reference this interface directly. Always use ListTypeUtil
to access the list type persistence. Modify service.xml
and rerun ServiceBuilder to regenerate this interface.
Caching information and settings can be found in portal.properties
ListTypePersistenceImpl
,
ListTypeUtil
Method Summary | |
---|---|
void |
cacheResult(List<ListType> listTypes)
Caches the list types in the entity cache if it is enabled. |
void |
cacheResult(ListType listType)
Caches the list type in the entity cache if it is enabled. |
int |
countAll()
Counts all the list types. |
int |
countByType(String type)
Counts all the list types where type = ?. |
ListType |
create(int listTypeId)
Creates a new list type with the primary key. |
ListType |
fetchByPrimaryKey(int listTypeId)
Finds the list type with the primary key or returns null if it could not be found. |
List<ListType> |
findAll()
Finds all the list types. |
List<ListType> |
findAll(int start,
int end)
Finds a range of all the list types. |
List<ListType> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the list types. |
ListType |
findByPrimaryKey(int listTypeId)
Finds the list type with the primary key or throws a NoSuchListTypeException if it could not be found. |
ListType |
findByType_First(String type,
OrderByComparator orderByComparator)
Finds the first list type in the ordered set where type = ?. |
ListType |
findByType_Last(String type,
OrderByComparator orderByComparator)
Finds the last list type in the ordered set where type = ?. |
ListType[] |
findByType_PrevAndNext(int listTypeId,
String type,
OrderByComparator orderByComparator)
Finds the list types before and after the current list type in the ordered set where type = ?. |
List<ListType> |
findByType(String type)
Finds all the list types where type = ?. |
List<ListType> |
findByType(String type,
int start,
int end)
Finds a range of all the list types where type = ?. |
List<ListType> |
findByType(String type,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the list types where type = ?. |
ListType |
remove(int listTypeId)
Removes the list type with the primary key from the database. |
void |
removeAll()
Removes all the list types from the database. |
void |
removeByType(String type)
Removes all the list types where type = ? from the database. |
ListType |
updateImpl(ListType listType,
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(ListType listType)
listType
- the list type to cachevoid cacheResult(List<ListType> listTypes)
listTypes
- the list types to cacheListType create(int listTypeId)
listTypeId
- the primary key for the new list type
ListType remove(int listTypeId) throws NoSuchListTypeException, SystemException
listTypeId
- the primary key of the list type to remove
NoSuchListTypeException
- if a list type with the primary key could not be found
SystemException
- if a system exception occurredListType updateImpl(ListType listType, boolean merge) throws SystemException
SystemException
ListType findByPrimaryKey(int listTypeId) throws NoSuchListTypeException, SystemException
NoSuchListTypeException
if it could not be found.
listTypeId
- the primary key of the list type to find
NoSuchListTypeException
- if a list type with the primary key could not be found
SystemException
- if a system exception occurredListType fetchByPrimaryKey(int listTypeId) throws SystemException
null
if it could not be found.
listTypeId
- the primary key of the list type to find
null
if a list type with the primary key could not be found
SystemException
- if a system exception occurredList<ListType> findByType(String type) throws SystemException
type
- the type to search with
SystemException
- if a system exception occurredList<ListType> findByType(String type, 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.
type
- the type to search withstart
- the lower bound of the range of list types to returnend
- the upper bound of the range of list types to return (not inclusive)
SystemException
- if a system exception occurredList<ListType> findByType(String type, 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.
type
- the type to search withstart
- the lower bound of the range of list types to returnend
- the upper bound of the range of list types to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredListType findByType_First(String type, OrderByComparator orderByComparator) throws NoSuchListTypeException, 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.
type
- the type to search withorderByComparator
- the comparator to order the set by
NoSuchListTypeException
- if a matching list type could not be found
SystemException
- if a system exception occurredListType findByType_Last(String type, OrderByComparator orderByComparator) throws NoSuchListTypeException, 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.
type
- the type to search withorderByComparator
- the comparator to order the set by
NoSuchListTypeException
- if a matching list type could not be found
SystemException
- if a system exception occurredListType[] findByType_PrevAndNext(int listTypeId, String type, OrderByComparator orderByComparator) throws NoSuchListTypeException, 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.
listTypeId
- the primary key of the current list typetype
- the type to search withorderByComparator
- the comparator to order the set by
NoSuchListTypeException
- if a list type with the primary key could not be found
SystemException
- if a system exception occurredList<ListType> findAll() throws SystemException
SystemException
- if a system exception occurredList<ListType> 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 list types to returnend
- the upper bound of the range of list types to return (not inclusive)
SystemException
- if a system exception occurredList<ListType> 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 list types to returnend
- the upper bound of the range of list types to return (not inclusive)orderByComparator
- the comparator to order the results by
SystemException
- if a system exception occurredvoid removeByType(String type) throws SystemException
type
- the type to search with
SystemException
- if a system exception occurredvoid removeAll() throws SystemException
SystemException
- if a system exception occurredint countByType(String type) throws SystemException
type
- the type to search with
SystemException
- if a system exception occurredint 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 |