Interface ListTypePersistence
- All Superinterfaces:
BasePersistence<ListType>
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(ListType listType) Caches the list type in the entity cache if it is enabled.void
cacheResult
(List<ListType> listTypes) Caches the list types 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 = ?.int
countByUuid
(String uuid) Returns the number of list types where uuid = ?.int
countByUuid_C
(String uuid, long companyId) Returns the number of list types where uuid = ? and companyId = ?.create
(long listTypeId) Creates a new list type with the primary key.fetchByC_N_T
(long companyId, String name, String type) Returns the list type where companyId = ? and name = ? and type = ? or returnsnull
if it could not be found.fetchByC_N_T
(long companyId, String name, String type, boolean useFinderCache) Returns the list type where companyId = ? and name = ? and type = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByC_T_First
(long companyId, String type, OrderByComparator<ListType> orderByComparator) Returns the first list type in the ordered set where companyId = ? and type = ?.fetchByC_T_Last
(long companyId, String type, OrderByComparator<ListType> orderByComparator) Returns the last list type in the ordered set where companyId = ? and type = ?.fetchByCompanyId_First
(long companyId, OrderByComparator<ListType> orderByComparator) Returns the first list type in the ordered set where companyId = ?.fetchByCompanyId_Last
(long companyId, OrderByComparator<ListType> orderByComparator) Returns the last list type in the ordered set where companyId = ?.fetchByPrimaryKey
(long listTypeId) Returns the list type with the primary key or returnsnull
if it could not be found.fetchByUuid_C_First
(String uuid, long companyId, OrderByComparator<ListType> orderByComparator) Returns the first list type in the ordered set where uuid = ? and companyId = ?.fetchByUuid_C_Last
(String uuid, long companyId, OrderByComparator<ListType> orderByComparator) Returns the last list type in the ordered set where uuid = ? and companyId = ?.fetchByUuid_First
(String uuid, OrderByComparator<ListType> orderByComparator) Returns the first list type in the ordered set where uuid = ?.fetchByUuid_Last
(String uuid, OrderByComparator<ListType> orderByComparator) Returns the last list type in the ordered set where uuid = ?.findAll()
Returns all the list types.findAll
(int start, int end) Returns a range of all the list types.findAll
(int start, int end, OrderByComparator<ListType> orderByComparator) Returns an ordered range of all the list types.findAll
(int start, int end, OrderByComparator<ListType> orderByComparator, boolean useFinderCache) Returns an ordered range of all the list types.findByC_N_T
(long companyId, String name, String type) Returns the list type where companyId = ? and name = ? and type = ? or throws aNoSuchListTypeException
if it could not be found.Returns all the list types where companyId = ? and type = ?.Returns a range of all the list types where companyId = ? and type = ?.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 = ?.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 = ?.findByC_T_First
(long companyId, String type, OrderByComparator<ListType> orderByComparator) Returns the first list type in the ordered set where companyId = ? and type = ?.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 = ?.findByCompanyId
(long companyId) Returns all the list types where companyId = ?.findByCompanyId
(long companyId, int start, int end) Returns a range of all the list types where companyId = ?.findByCompanyId
(long companyId, int start, int end, OrderByComparator<ListType> orderByComparator) Returns an ordered range of all the list types where companyId = ?.findByCompanyId
(long companyId, int start, int end, OrderByComparator<ListType> orderByComparator, boolean useFinderCache) Returns an ordered range of all the list types where companyId = ?.findByCompanyId_First
(long companyId, OrderByComparator<ListType> orderByComparator) Returns the first list type in the ordered set where companyId = ?.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 = ?.findByPrimaryKey
(long listTypeId) Returns the list type with the primary key or throws aNoSuchListTypeException
if it could not be found.findByUuid
(String uuid) Returns all the list types where uuid = ?.findByUuid
(String uuid, int start, int end) Returns a range of all the list types where uuid = ?.findByUuid
(String uuid, int start, int end, OrderByComparator<ListType> orderByComparator) Returns an ordered range of all the list types where uuid = ?.findByUuid
(String uuid, int start, int end, OrderByComparator<ListType> orderByComparator, boolean useFinderCache) Returns an ordered range of all the list types where uuid = ?.findByUuid_C
(String uuid, long companyId) Returns all the list types where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end) Returns a range of all the list types where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end, OrderByComparator<ListType> orderByComparator) Returns an ordered range of all the list types where uuid = ? and companyId = ?.findByUuid_C
(String uuid, long companyId, int start, int end, OrderByComparator<ListType> orderByComparator, boolean useFinderCache) Returns an ordered range of all the list types where uuid = ? and companyId = ?.findByUuid_C_First
(String uuid, long companyId, OrderByComparator<ListType> orderByComparator) Returns the first list type in the ordered set where uuid = ? and companyId = ?.findByUuid_C_Last
(String uuid, long companyId, OrderByComparator<ListType> orderByComparator) Returns the last list type in the ordered set where uuid = ? and companyId = ?.ListType[]
findByUuid_C_PrevAndNext
(long listTypeId, String uuid, long companyId, OrderByComparator<ListType> orderByComparator) Returns the list types before and after the current list type in the ordered set where uuid = ? and companyId = ?.findByUuid_First
(String uuid, OrderByComparator<ListType> orderByComparator) Returns the first list type in the ordered set where uuid = ?.findByUuid_Last
(String uuid, OrderByComparator<ListType> orderByComparator) Returns the last list type in the ordered set where uuid = ?.ListType[]
findByUuid_PrevAndNext
(long listTypeId, String uuid, OrderByComparator<ListType> orderByComparator) Returns the list types before and after the current list type in the ordered set where uuid = ?.remove
(long listTypeId) Removes the list type with the primary key from the database.void
Removes all the list types from the database.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.void
removeByUuid
(String uuid) Removes all the list types where uuid = ? from the database.void
removeByUuid_C
(String uuid, long companyId) Removes all the list types where uuid = ? and companyId = ? from the database.updateImpl
(ListType listType) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
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, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
findByUuid
Returns all the list types where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching list types
-
findByUuid
Returns a range of all the list types where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromListTypeModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of list typesend
- the upper bound of the range of list types (not inclusive)- Returns:
- the range of matching list types
-
findByUuid
List<ListType> findByUuid(String uuid, int start, int end, OrderByComparator<ListType> orderByComparator) Returns an ordered range of all the list types where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromListTypeModelImpl
.- Parameters:
uuid
- the uuidstart
- 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 (optionallynull
)- Returns:
- the ordered range of matching list types
-
findByUuid
List<ListType> findByUuid(String uuid, int start, int end, OrderByComparator<ListType> orderByComparator, boolean useFinderCache) Returns an ordered range of all the list types where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromListTypeModelImpl
.- Parameters:
uuid
- the uuidstart
- 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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching list types
-
findByUuid_First
ListType findByUuid_First(String uuid, OrderByComparator<ListType> orderByComparator) throws NoSuchListTypeException Returns the first list type in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching list type
- Throws:
NoSuchListTypeException
- if a matching list type could not be found
-
fetchByUuid_First
Returns the first list type in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching list type, or
null
if a matching list type could not be found
-
findByUuid_Last
ListType findByUuid_Last(String uuid, OrderByComparator<ListType> orderByComparator) throws NoSuchListTypeException Returns the last list type in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching list type
- Throws:
NoSuchListTypeException
- if a matching list type could not be found
-
fetchByUuid_Last
Returns the last list type in the ordered set where uuid = ?.- Parameters:
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching list type, or
null
if a matching list type could not be found
-
findByUuid_PrevAndNext
ListType[] findByUuid_PrevAndNext(long listTypeId, String uuid, OrderByComparator<ListType> orderByComparator) throws NoSuchListTypeException Returns the list types before and after the current list type in the ordered set where uuid = ?.- Parameters:
listTypeId
- the primary key of the current list typeuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next list type
- Throws:
NoSuchListTypeException
- if a list type with the primary key could not be found
-
removeByUuid
Removes all the list types where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of list types where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching list types
-
findByUuid_C
Returns all the list types where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the matching list types
-
findByUuid_C
Returns a range of all the list types where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromListTypeModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of list typesend
- the upper bound of the range of list types (not inclusive)- Returns:
- the range of matching list types
-
findByUuid_C
List<ListType> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<ListType> orderByComparator) Returns an ordered range of all the list types where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromListTypeModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- 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 (optionallynull
)- Returns:
- the ordered range of matching list types
-
findByUuid_C
List<ListType> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<ListType> orderByComparator, boolean useFinderCache) Returns an ordered range of all the list types where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromListTypeModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- 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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching list types
-
findByUuid_C_First
ListType findByUuid_C_First(String uuid, long companyId, OrderByComparator<ListType> orderByComparator) throws NoSuchListTypeException Returns the first list type in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching list type
- Throws:
NoSuchListTypeException
- if a matching list type could not be found
-
fetchByUuid_C_First
ListType fetchByUuid_C_First(String uuid, long companyId, OrderByComparator<ListType> orderByComparator) Returns the first list type in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching list type, or
null
if a matching list type could not be found
-
findByUuid_C_Last
ListType findByUuid_C_Last(String uuid, long companyId, OrderByComparator<ListType> orderByComparator) throws NoSuchListTypeException Returns the last list type in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching list type
- Throws:
NoSuchListTypeException
- if a matching list type could not be found
-
fetchByUuid_C_Last
ListType fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<ListType> orderByComparator) Returns the last list type in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching list type, or
null
if a matching list type could not be found
-
findByUuid_C_PrevAndNext
ListType[] findByUuid_C_PrevAndNext(long listTypeId, String uuid, long companyId, OrderByComparator<ListType> orderByComparator) throws NoSuchListTypeException Returns the list types before and after the current list type in the ordered set where uuid = ? and companyId = ?.- Parameters:
listTypeId
- the primary key of the current list typeuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next list type
- Throws:
NoSuchListTypeException
- if a list type with the primary key could not be found
-
removeByUuid_C
Removes all the list types where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of list types where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching list types
-
findByCompanyId
Returns all the list types where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching list types
-
findByCompanyId
Returns a range of all the list types where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromListTypeModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of list typesend
- the upper bound of the range of list types (not inclusive)- Returns:
- the range of matching list types
-
findByCompanyId
List<ListType> findByCompanyId(long companyId, int start, int end, OrderByComparator<ListType> orderByComparator) Returns an ordered range of all the list types where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromListTypeModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching list types
-
findByCompanyId
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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromListTypeModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching list types
-
findByCompanyId_First
ListType findByCompanyId_First(long companyId, OrderByComparator<ListType> orderByComparator) throws NoSuchListTypeException Returns the first list type in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching list type
- Throws:
NoSuchListTypeException
- if a matching list type could not be found
-
fetchByCompanyId_First
Returns the first list type in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching list type, or
null
if a matching list type could not be found
-
findByCompanyId_Last
ListType findByCompanyId_Last(long companyId, OrderByComparator<ListType> orderByComparator) throws NoSuchListTypeException Returns the last list type in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching list type
- Throws:
NoSuchListTypeException
- if a matching list type could not be found
-
fetchByCompanyId_Last
Returns the last list type in the ordered set where companyId = ?.- Parameters:
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching list type, or
null
if a matching list type could not be found
-
findByCompanyId_PrevAndNext
ListType[] findByCompanyId_PrevAndNext(long listTypeId, long companyId, OrderByComparator<ListType> orderByComparator) throws NoSuchListTypeException Returns the list types before and after the current list type in the ordered set where companyId = ?.- Parameters:
listTypeId
- the primary key of the current list typecompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next list type
- Throws:
NoSuchListTypeException
- if a list type with the primary key could not be found
-
removeByCompanyId
void removeByCompanyId(long companyId) Removes all the list types where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
int countByCompanyId(long companyId) Returns the number of list types where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the number of matching list types
-
findByC_T
Returns all the list types where companyId = ? and type = ?.- Parameters:
companyId
- the company IDtype
- the type- Returns:
- the matching list types
-
findByC_T
Returns a range of all the list types where companyId = ? and type = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromListTypeModelImpl
.- Parameters:
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)- Returns:
- the range of matching list types
-
findByC_T
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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromListTypeModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of matching list types
-
findByC_T
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 = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromListTypeModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching list types
-
findByC_T_First
ListType findByC_T_First(long companyId, String type, OrderByComparator<ListType> orderByComparator) throws NoSuchListTypeException Returns the first list type in the ordered set where companyId = ? and type = ?.- Parameters:
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching list type
- Throws:
NoSuchListTypeException
- if a matching list type could not be found
-
fetchByC_T_First
ListType fetchByC_T_First(long companyId, String type, OrderByComparator<ListType> orderByComparator) Returns the first list type in the ordered set where companyId = ? and type = ?.- Parameters:
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching list type, or
null
if a matching list type could not be found
-
findByC_T_Last
ListType findByC_T_Last(long companyId, String type, OrderByComparator<ListType> orderByComparator) throws NoSuchListTypeException Returns the last list type in the ordered set where companyId = ? and type = ?.- Parameters:
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching list type
- Throws:
NoSuchListTypeException
- if a matching list type could not be found
-
fetchByC_T_Last
ListType fetchByC_T_Last(long companyId, String type, OrderByComparator<ListType> orderByComparator) Returns the last list type in the ordered set where companyId = ? and type = ?.- Parameters:
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching list type, or
null
if a matching list type could not be found
-
findByC_T_PrevAndNext
ListType[] findByC_T_PrevAndNext(long listTypeId, long companyId, String type, OrderByComparator<ListType> orderByComparator) throws NoSuchListTypeException Returns the list types before and after the current list type in the ordered set where companyId = ? and type = ?.- Parameters:
listTypeId
- the primary key of the current list typecompanyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next list type
- Throws:
NoSuchListTypeException
- if a list type with the primary key could not be found
-
removeByC_T
Removes all the list types where companyId = ? and type = ? from the database.- Parameters:
companyId
- the company IDtype
- the type
-
countByC_T
Returns the number of list types where companyId = ? and type = ?.- Parameters:
companyId
- the company IDtype
- the type- Returns:
- the number of matching list types
-
findByC_N_T
Returns the list type where companyId = ? and name = ? and type = ? or throws aNoSuchListTypeException
if it could not be found.- Parameters:
companyId
- the company IDname
- the nametype
- the type- Returns:
- the matching list type
- Throws:
NoSuchListTypeException
- if a matching list type could not be found
-
fetchByC_N_T
Returns the list type where companyId = ? and name = ? and type = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
companyId
- the company IDname
- the nametype
- the type- Returns:
- the matching list type, or
null
if a matching list type could not be found
-
fetchByC_N_T
Returns the list type where companyId = ? and name = ? and type = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
companyId
- the company IDname
- the nametype
- the typeuseFinderCache
- whether to use the finder cache- Returns:
- the matching list type, or
null
if a matching list type could not be found
-
removeByC_N_T
Removes the list type where companyId = ? and name = ? and type = ? from the database.- Parameters:
companyId
- the company IDname
- the nametype
- the type- Returns:
- the list type that was removed
- Throws:
NoSuchListTypeException
-
countByC_N_T
Returns the number of list types where companyId = ? and name = ? and type = ?.- Parameters:
companyId
- the company IDname
- the nametype
- the type- Returns:
- the number of matching list types
-
cacheResult
Caches the list type in the entity cache if it is enabled.- Parameters:
listType
- the list type
-
cacheResult
Caches the list types in the entity cache if it is enabled.- Parameters:
listTypes
- the list types
-
create
Creates a new list type with the primary key. Does not add the list type to the database.- Parameters:
listTypeId
- the primary key for the new list type- Returns:
- the new list type
-
remove
Removes the list type with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
listTypeId
- the primary key of the list type- Returns:
- the list type that was removed
- Throws:
NoSuchListTypeException
- if a list type with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
Returns the list type with the primary key or throws aNoSuchListTypeException
if it could not be found.- Parameters:
listTypeId
- the primary key of the list type- Returns:
- the list type
- Throws:
NoSuchListTypeException
- if a list type with the primary key could not be found
-
fetchByPrimaryKey
Returns the list type with the primary key or returnsnull
if it could not be found.- Parameters:
listTypeId
- the primary key of the list type- Returns:
- the list type, or
null
if a list type with the primary key could not be found
-
findAll
Returns all the list types.- Returns:
- the list types
-
findAll
Returns a range of all the list types.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromListTypeModelImpl
.- Parameters:
start
- the lower bound of the range of list typesend
- the upper bound of the range of list types (not inclusive)- Returns:
- the range of list types
-
findAll
Returns an ordered range of all the list types.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromListTypeModelImpl
.- Parameters:
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 (optionallynull
)- Returns:
- the ordered range of list types
-
findAll
List<ListType> findAll(int start, int end, OrderByComparator<ListType> orderByComparator, boolean useFinderCache) Returns an ordered range of all the list types.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromListTypeModelImpl
.- Parameters:
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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of list types
-
removeAll
void removeAll()Removes all the list types from the database. -
countAll
int countAll()Returns the number of list types.- Returns:
- the number of list types
-