@ProviderType
public class ListTypeUtil
extends java.lang.Object
ListTypePersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
ListTypePersistence,
ListTypePersistenceImpl| Constructor and Description |
|---|
ListTypeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(java.util.List<ListType> listTypes)
Caches the list types in the entity cache if it is enabled.
|
static void |
cacheResult(ListType listType)
Caches the list type in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(ListType listType) |
static int |
countAll()
Returns the number of list types.
|
static int |
countByType(java.lang.String type)
Returns the number of list types where type = ?.
|
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery) |
static ListType |
create(int listTypeId)
Creates a new list type with the primary key.
|
static ListType |
fetchByPrimaryKey(int listTypeId)
Returns the list type with the primary key or returns
null if it could not be found. |
static ListType |
fetchByType_First(java.lang.String type,
OrderByComparator orderByComparator)
Returns the first list type in the ordered set where type = ?.
|
static ListType |
fetchByType_Last(java.lang.String type,
OrderByComparator orderByComparator)
Returns the last list type in the ordered set where type = ?.
|
static java.util.List<ListType> |
findAll()
Returns all the list types.
|
static java.util.List<ListType> |
findAll(int start,
int end)
Returns a range of all the list types.
|
static java.util.List<ListType> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the list types.
|
static ListType |
findByPrimaryKey(int listTypeId)
Returns the list type with the primary key or throws a
NoSuchListTypeException if it could not be found. |
static ListType |
findByType_First(java.lang.String type,
OrderByComparator orderByComparator)
Returns the first list type in the ordered set where type = ?.
|
static ListType |
findByType_Last(java.lang.String type,
OrderByComparator orderByComparator)
Returns the last list type in the ordered set where type = ?.
|
static ListType[] |
findByType_PrevAndNext(int listTypeId,
java.lang.String type,
OrderByComparator orderByComparator)
Returns the list types before and after the current list type in the ordered set where type = ?.
|
static java.util.List<ListType> |
findByType(java.lang.String type)
Returns all the list types where type = ?.
|
static java.util.List<ListType> |
findByType(java.lang.String type,
int start,
int end)
Returns a range of all the list types where type = ?.
|
static java.util.List<ListType> |
findByType(java.lang.String type,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the list types where type = ?.
|
static java.util.List<ListType> |
findWithDynamicQuery(DynamicQuery dynamicQuery) |
static java.util.List<ListType> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<ListType> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator) |
static ListTypePersistence |
getPersistence() |
static ListType |
remove(int listTypeId)
Removes the list type with the primary key from the database.
|
static void |
removeAll()
Removes all the list types from the database.
|
static void |
removeByType(java.lang.String type)
Removes all the list types where type = ? from the database.
|
void |
setPersistence(ListTypePersistence persistence)
Deprecated.
As of 6.2.0
|
static ListType |
update(ListType listType) |
static ListType |
update(ListType listType,
ServiceContext serviceContext) |
static ListType |
updateImpl(ListType listType) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(ListType listType)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemExceptionBasePersistence.countWithDynamicQuery(DynamicQuery)public static java.util.List<ListType> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery)public static java.util.List<ListType> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
public static java.util.List<ListType> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
public static ListType update(ListType listType) throws SystemException
public static ListType update(ListType listType, ServiceContext serviceContext) throws SystemException
public static java.util.List<ListType> findByType(java.lang.String type) throws SystemException
type - the typeSystemException - if a system exception occurredpublic static java.util.List<ListType> findByType(java.lang.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. 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)SystemException - if a system exception occurredpublic static java.util.List<ListType> findByType(java.lang.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. 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)SystemException - if a system exception occurredpublic static ListType findByType_First(java.lang.String type, OrderByComparator orderByComparator) throws NoSuchListTypeException, SystemException
type - the typeorderByComparator - the comparator to order the set by (optionally null)NoSuchListTypeException - if a matching list type could not be foundSystemException - if a system exception occurredpublic static ListType fetchByType_First(java.lang.String type, OrderByComparator orderByComparator) throws SystemException
type - the typeorderByComparator - the comparator to order the set by (optionally null)null if a matching list type could not be foundSystemException - if a system exception occurredpublic static ListType findByType_Last(java.lang.String type, OrderByComparator orderByComparator) throws NoSuchListTypeException, SystemException
type - the typeorderByComparator - the comparator to order the set by (optionally null)NoSuchListTypeException - if a matching list type could not be foundSystemException - if a system exception occurredpublic static ListType fetchByType_Last(java.lang.String type, OrderByComparator orderByComparator) throws SystemException
type - the typeorderByComparator - the comparator to order the set by (optionally null)null if a matching list type could not be foundSystemException - if a system exception occurredpublic static ListType[] findByType_PrevAndNext(int listTypeId, java.lang.String type, OrderByComparator orderByComparator) throws NoSuchListTypeException, SystemException
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 foundSystemException - if a system exception occurredpublic static void removeByType(java.lang.String type)
throws SystemException
type - the typeSystemException - if a system exception occurredpublic static int countByType(java.lang.String type)
throws SystemException
type - the typeSystemException - if a system exception occurredpublic static void cacheResult(ListType listType)
listType - the list typepublic static void cacheResult(java.util.List<ListType> listTypes)
listTypes - the list typespublic static ListType create(int listTypeId)
listTypeId - the primary key for the new list typepublic static ListType remove(int listTypeId) throws NoSuchListTypeException, SystemException
listTypeId - the primary key of the list typeNoSuchListTypeException - if a list type with the primary key could not be foundSystemException - if a system exception occurredpublic static ListType updateImpl(ListType listType) throws SystemException
SystemExceptionpublic static ListType findByPrimaryKey(int listTypeId) throws NoSuchListTypeException, SystemException
NoSuchListTypeException if it could not be found.listTypeId - the primary key of the list typeNoSuchListTypeException - if a list type with the primary key could not be foundSystemException - if a system exception occurredpublic static ListType fetchByPrimaryKey(int listTypeId) throws SystemException
null if it could not be found.listTypeId - the primary key of the list typenull if a list type with the primary key could not be foundSystemException - if a system exception occurredpublic static java.util.List<ListType> findAll() throws SystemException
SystemException - if a system exception occurredpublic static java.util.List<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. 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)SystemException - if a system exception occurredpublic static java.util.List<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. 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)SystemException - if a system exception occurredpublic static void removeAll()
throws SystemException
SystemException - if a system exception occurredpublic static int countAll()
throws SystemException
SystemException - if a system exception occurredpublic static ListTypePersistence getPersistence()
public void setPersistence(ListTypePersistence persistence)