|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@ProviderType public interface ListTypePersistence
The persistence interface for the list type service.
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()
Returns the number of list types. |
int |
countByN_T(String name,
String type)
Returns the number of list types where name = ? and type = ?. |
int |
countByType(String type)
Returns the number of list types where type = ?. |
ListType |
create(long listTypeId)
Creates a new list type with the primary key. |
ListType |
fetchByN_T(String name,
String type)
Returns the list type where name = ? and type = ? or returns null if it could not be found. |
ListType |
fetchByN_T(String name,
String type,
boolean retrieveFromCache)
Returns the list type where name = ? and type = ? or returns null if it could not be found, optionally using the finder cache. |
ListType |
fetchByPrimaryKey(long listTypeId)
Returns the list type with the primary key or returns null if it could not be found. |
Map<Serializable,ListType> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
|
ListType |
fetchByType_First(String type,
OrderByComparator<ListType> orderByComparator)
Returns the first list type in the ordered set where type = ?. |
ListType |
fetchByType_Last(String type,
OrderByComparator<ListType> orderByComparator)
Returns the last list type in the ordered set where type = ?. |
List<ListType> |
findAll()
Returns all the list types. |
List<ListType> |
findAll(int start,
int end)
Returns a range of all the list types. |
List<ListType> |
findAll(int start,
int end,
OrderByComparator<ListType> orderByComparator)
Returns an ordered range of all the list types. |
List<ListType> |
findAll(int start,
int end,
OrderByComparator<ListType> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the list types. |
ListType |
findByN_T(String name,
String type)
Returns the list type where name = ? and type = ? or throws a NoSuchListTypeException if it could not be found. |
ListType |
findByPrimaryKey(long listTypeId)
Returns the list type with the primary key or throws a NoSuchListTypeException if it could not be found. |
ListType |
findByType_First(String type,
OrderByComparator<ListType> orderByComparator)
Returns the first list type in the ordered set where type = ?. |
ListType |
findByType_Last(String type,
OrderByComparator<ListType> orderByComparator)
Returns the last list type in the ordered set where type = ?. |
ListType[] |
findByType_PrevAndNext(long listTypeId,
String type,
OrderByComparator<ListType> orderByComparator)
Returns the list types before and after the current list type in the ordered set where type = ?. |
List<ListType> |
findByType(String type)
Returns all the list types where type = ?. |
List<ListType> |
findByType(String type,
int start,
int end)
Returns a range of all the list types where type = ?. |
List<ListType> |
findByType(String type,
int start,
int end,
OrderByComparator<ListType> orderByComparator)
Returns an ordered range of all the list types where type = ?. |
List<ListType> |
findByType(String type,
int start,
int end,
OrderByComparator<ListType> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the list types where type = ?. |
Set<String> |
getBadColumnNames()
|
ListType |
remove(long listTypeId)
Removes the list type with the primary key from the database. |
void |
removeAll()
Removes all the list types from the database. |
ListType |
removeByN_T(String name,
String type)
Removes the list type where name = ? and type = ? from the database. |
void |
removeByType(String type)
Removes all the list types where type = ? from the database. |
ListType |
updateImpl(ListType listType)
|
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update |
| Method Detail |
|---|
List<ListType> findByType(String type)
type - the type
List<ListType> findByType(String type,
int start,
int end)
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 ListTypeModelImpl. 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.
type - the typestart - the lower bound of the range of list typesend - the upper bound of the range of list types (not inclusive)
List<ListType> findByType(String type,
int start,
int end,
OrderByComparator<ListType> orderByComparator)
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 ListTypeModelImpl. 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.
type - the typestart - the lower bound of the range of list typesend - the upper bound of the range of list types (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
List<ListType> findByType(String type,
int start,
int end,
OrderByComparator<ListType> orderByComparator,
boolean retrieveFromCache)
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 ListTypeModelImpl. 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.
type - the typestart - the lower bound of the range of list typesend - the upper bound of the range of list types (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
ListType findByType_First(String type,
OrderByComparator<ListType> orderByComparator)
throws NoSuchListTypeException
type - the typeorderByComparator - the comparator to order the set by (optionally null)
NoSuchListTypeException - if a matching list type could not be found
ListType fetchByType_First(String type,
OrderByComparator<ListType> orderByComparator)
type - the typeorderByComparator - the comparator to order the set by (optionally null)
null if a matching list type could not be found
ListType findByType_Last(String type,
OrderByComparator<ListType> orderByComparator)
throws NoSuchListTypeException
type - the typeorderByComparator - the comparator to order the set by (optionally null)
NoSuchListTypeException - if a matching list type could not be found
ListType fetchByType_Last(String type,
OrderByComparator<ListType> orderByComparator)
type - the typeorderByComparator - the comparator to order the set by (optionally null)
null if a matching list type could not be found
ListType[] findByType_PrevAndNext(long listTypeId,
String type,
OrderByComparator<ListType> orderByComparator)
throws NoSuchListTypeException
listTypeId - the primary key of the current list typetype - the typeorderByComparator - the comparator to order the set by (optionally null)
NoSuchListTypeException - if a list type with the primary key could not be foundvoid removeByType(String type)
type - the typeint countByType(String type)
type - the type
ListType findByN_T(String name,
String type)
throws NoSuchListTypeException
NoSuchListTypeException if it could not be found.
name - the nametype - the type
NoSuchListTypeException - if a matching list type could not be found
ListType fetchByN_T(String name,
String type)
null if it could not be found. Uses the finder cache.
name - the nametype - the type
null if a matching list type could not be found
ListType fetchByN_T(String name,
String type,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
name - the nametype - the typeretrieveFromCache - whether to retrieve from the finder cache
null if a matching list type could not be found
ListType removeByN_T(String name,
String type)
throws NoSuchListTypeException
name - the nametype - the type
NoSuchListTypeException
int countByN_T(String name,
String type)
name - the nametype - the type
void cacheResult(ListType listType)
listType - the list typevoid cacheResult(List<ListType> listTypes)
listTypes - the list typesListType create(long listTypeId)
listTypeId - the primary key for the new list type
ListType remove(long listTypeId)
throws NoSuchListTypeException
listTypeId - the primary key of the list type
NoSuchListTypeException - if a list type with the primary key could not be foundListType updateImpl(ListType listType)
ListType findByPrimaryKey(long listTypeId)
throws NoSuchListTypeException
NoSuchListTypeException if it could not be found.
listTypeId - the primary key of the list type
NoSuchListTypeException - if a list type with the primary key could not be foundListType fetchByPrimaryKey(long listTypeId)
null if it could not be found.
listTypeId - the primary key of the list type
null if a list type with the primary key could not be foundMap<Serializable,ListType> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys in interface BasePersistence<ListType>List<ListType> findAll()
List<ListType> findAll(int start,
int end)
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 ListTypeModelImpl. 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.
start - the lower bound of the range of list typesend - the upper bound of the range of list types (not inclusive)
List<ListType> findAll(int start,
int end,
OrderByComparator<ListType> orderByComparator)
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 ListTypeModelImpl. 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.
start - the lower bound of the range of list typesend - the upper bound of the range of list types (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
List<ListType> findAll(int start,
int end,
OrderByComparator<ListType> orderByComparator,
boolean retrieveFromCache)
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 ListTypeModelImpl. 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.
start - the lower bound of the range of list typesend - the upper bound of the range of list types (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
void removeAll()
int countAll()
Set<String> getBadColumnNames()
getBadColumnNames in interface BasePersistence<ListType>
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||