@ProviderType public interface ListTypePersistence extends BasePersistence<ListType>
Caching information and settings can be found in portal.properties
ListTypeUtil
Modifier and Type | Method and Description |
---|---|
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 |
countByC_N_T(long companyId,
String name,
String type)
Returns the number of list types where companyId = ? and name = ? and type = ?.
|
int |
countByC_T(long companyId,
String type)
Returns the number of list types where companyId = ? and type = ?.
|
int |
countByCompanyId(long companyId)
Returns the number of list types where companyId = ?.
|
ListType |
create(long listTypeId)
Creates a new list type with the primary key.
|
ListType |
fetchByC_N_T(long companyId,
String name,
String type)
Returns the list type where companyId = ? and name = ? and type = ? or returns
null if it could not be found. |
ListType |
fetchByC_N_T(long companyId,
String name,
String type,
boolean useFinderCache)
Returns the list type where companyId = ? and name = ? and type = ? or returns
null if it could not be found, optionally using the finder cache. |
ListType |
fetchByC_T_First(long companyId,
String type,
OrderByComparator<ListType> orderByComparator)
Returns the first list type in the ordered set where companyId = ? and type = ?.
|
ListType |
fetchByC_T_Last(long companyId,
String type,
OrderByComparator<ListType> orderByComparator)
Returns the last list type in the ordered set where companyId = ? and type = ?.
|
ListType |
fetchByCompanyId_First(long companyId,
OrderByComparator<ListType> orderByComparator)
Returns the first list type in the ordered set where companyId = ?.
|
ListType |
fetchByCompanyId_Last(long companyId,
OrderByComparator<ListType> orderByComparator)
Returns the last list type in the ordered set where companyId = ?.
|
ListType |
fetchByPrimaryKey(long listTypeId)
Returns the list type with the primary key or returns
null if it could not be found. |
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 useFinderCache)
Returns an ordered range of all the list types.
|
ListType |
findByC_N_T(long companyId,
String name,
String type)
Returns the list type where companyId = ? and name = ? and type = ? or throws a
NoSuchListTypeException if it could not be found. |
ListType |
findByC_T_First(long companyId,
String type,
OrderByComparator<ListType> orderByComparator)
Returns the first list type in the ordered set where companyId = ? and type = ?.
|
ListType |
findByC_T_Last(long companyId,
String type,
OrderByComparator<ListType> orderByComparator)
Returns the last list type in the ordered set where companyId = ? and type = ?.
|
ListType[] |
findByC_T_PrevAndNext(long listTypeId,
long companyId,
String type,
OrderByComparator<ListType> orderByComparator)
Returns the list types before and after the current list type in the ordered set where companyId = ? and type = ?.
|
List<ListType> |
findByC_T(long companyId,
String type)
Returns all the list types where companyId = ? and type = ?.
|
List<ListType> |
findByC_T(long companyId,
String type,
int start,
int end)
Returns a range of all the list types where companyId = ? and type = ?.
|
List<ListType> |
findByC_T(long companyId,
String type,
int start,
int end,
OrderByComparator<ListType> orderByComparator)
Returns an ordered range of all the list types where companyId = ? and type = ?.
|
List<ListType> |
findByC_T(long companyId,
String type,
int start,
int end,
OrderByComparator<ListType> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the list types where companyId = ? and type = ?.
|
ListType |
findByCompanyId_First(long companyId,
OrderByComparator<ListType> orderByComparator)
Returns the first list type in the ordered set where companyId = ?.
|
ListType |
findByCompanyId_Last(long companyId,
OrderByComparator<ListType> orderByComparator)
Returns the last list type in the ordered set where companyId = ?.
|
ListType[] |
findByCompanyId_PrevAndNext(long listTypeId,
long companyId,
OrderByComparator<ListType> orderByComparator)
Returns the list types before and after the current list type in the ordered set where companyId = ?.
|
List<ListType> |
findByCompanyId(long companyId)
Returns all the list types where companyId = ?.
|
List<ListType> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the list types where companyId = ?.
|
List<ListType> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<ListType> orderByComparator)
Returns an ordered range of all the list types where companyId = ?.
|
List<ListType> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<ListType> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the list types where companyId = ?.
|
ListType |
findByPrimaryKey(long listTypeId)
Returns the list type with the primary key or throws a
NoSuchListTypeException if it could not be found. |
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 |
removeByC_N_T(long companyId,
String name,
String type)
Removes the list type where companyId = ? and name = ? and type = ? from the database.
|
void |
removeByC_T(long companyId,
String type)
Removes all the list types where companyId = ? and type = ? from the database.
|
void |
removeByCompanyId(long companyId)
Removes all the list types where companyId = ? from the database.
|
ListType |
updateImpl(ListType listType) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
List<ListType> findByCompanyId(long companyId)
companyId
- the company IDList<ListType> findByCompanyId(long companyId, 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, then the query will include the default ORDER BY logic from ListTypeModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of list typesend
- the upper bound of the range of list types (not inclusive)List<ListType> findByCompanyId(long companyId, 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, then the query will include the default ORDER BY logic from ListTypeModelImpl
.
companyId
- the company IDstart
- 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> findByCompanyId(long companyId, int start, int end, OrderByComparator<ListType> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from ListTypeModelImpl
.
companyId
- the company IDstart
- 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
)useFinderCache
- whether to use the finder cacheListType findByCompanyId_First(long companyId, OrderByComparator<ListType> orderByComparator) throws NoSuchListTypeException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchListTypeException
- if a matching list type could not be foundListType fetchByCompanyId_First(long companyId, OrderByComparator<ListType> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching list type could not be foundListType findByCompanyId_Last(long companyId, OrderByComparator<ListType> orderByComparator) throws NoSuchListTypeException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchListTypeException
- if a matching list type could not be foundListType fetchByCompanyId_Last(long companyId, OrderByComparator<ListType> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching list type could not be foundListType[] findByCompanyId_PrevAndNext(long listTypeId, long companyId, OrderByComparator<ListType> orderByComparator) throws NoSuchListTypeException
listTypeId
- the primary key of the current list typecompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchListTypeException
- if a list type with the primary key could not be foundvoid removeByCompanyId(long companyId)
companyId
- the company IDint countByCompanyId(long companyId)
companyId
- the company IDList<ListType> findByC_T(long companyId, String type)
companyId
- the company IDtype
- the typeList<ListType> findByC_T(long companyId, 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, then the query will include the default ORDER BY logic from ListTypeModelImpl
.
companyId
- the company IDtype
- the typestart
- the lower bound of the range of list typesend
- the upper bound of the range of list types (not inclusive)List<ListType> findByC_T(long companyId, 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, then the query will include the default ORDER BY logic from ListTypeModelImpl
.
companyId
- the company IDtype
- 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> findByC_T(long companyId, String type, int start, int end, OrderByComparator<ListType> orderByComparator, boolean useFinderCache)
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, then the query will include the default ORDER BY logic from ListTypeModelImpl
.
companyId
- the company IDtype
- 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
)useFinderCache
- whether to use the finder cacheListType findByC_T_First(long companyId, String type, OrderByComparator<ListType> orderByComparator) throws NoSuchListTypeException
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchListTypeException
- if a matching list type could not be foundListType fetchByC_T_First(long companyId, String type, OrderByComparator<ListType> orderByComparator)
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching list type could not be foundListType findByC_T_Last(long companyId, String type, OrderByComparator<ListType> orderByComparator) throws NoSuchListTypeException
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchListTypeException
- if a matching list type could not be foundListType fetchByC_T_Last(long companyId, String type, OrderByComparator<ListType> orderByComparator)
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching list type could not be foundListType[] findByC_T_PrevAndNext(long listTypeId, long companyId, String type, OrderByComparator<ListType> orderByComparator) throws NoSuchListTypeException
listTypeId
- the primary key of the current list typecompanyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchListTypeException
- if a list type with the primary key could not be foundvoid removeByC_T(long companyId, String type)
companyId
- the company IDtype
- the typeint countByC_T(long companyId, String type)
companyId
- the company IDtype
- the typeListType findByC_N_T(long companyId, String name, String type) throws NoSuchListTypeException
NoSuchListTypeException
if it could not be found.companyId
- the company IDname
- the nametype
- the typeNoSuchListTypeException
- if a matching list type could not be foundListType fetchByC_N_T(long companyId, String name, String type)
null
if it could not be found. Uses the finder cache.companyId
- the company IDname
- the nametype
- the typenull
if a matching list type could not be foundListType fetchByC_N_T(long companyId, String name, String type, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDname
- the nametype
- the typeuseFinderCache
- whether to use the finder cachenull
if a matching list type could not be foundListType removeByC_N_T(long companyId, String name, String type) throws NoSuchListTypeException
companyId
- the company IDname
- the nametype
- the typeNoSuchListTypeException
int countByC_N_T(long companyId, String name, String type)
companyId
- the company IDname
- the nametype
- the typevoid 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 typeListType remove(long listTypeId) throws NoSuchListTypeException
listTypeId
- the primary key of the list typeNoSuchListTypeException
- if a list type with the primary key could not be foundListType findByPrimaryKey(long listTypeId) throws NoSuchListTypeException
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 foundListType fetchByPrimaryKey(long listTypeId)
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 foundList<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, then the query will include the default ORDER BY logic from ListTypeModelImpl
.
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, then the query will include the default ORDER BY logic from ListTypeModelImpl
.
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 useFinderCache)
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, then the query will include the default ORDER BY logic from ListTypeModelImpl
.
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
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()