Class ListTypeUtil
com.liferay.portal.service.persistence.impl.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
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(ListType listType) Caches the list type in the entity cache if it is enabled.static void
cacheResult
(List<ListType> listTypes) Caches the list types in the entity cache if it is enabled.static void
static void
clearCache
(ListType listType) static int
countAll()
Returns the number of list types.static int
countByC_N_T
(long companyId, String name, String type) Returns the number of list types where companyId = ? and name = ? and type = ?.static int
countByC_T
(long companyId, String type) Returns the number of list types where companyId = ? and type = ?.static int
countByCompanyId
(long companyId) Returns the number of list types where companyId = ?.static int
countByUuid
(String uuid) Returns the number of list types where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of list types where uuid = ? and companyId = ?.static long
countWithDynamicQuery
(DynamicQuery dynamicQuery) static ListType
create
(long listTypeId) Creates a new list type with the primary key.static ListType
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.static ListType
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.static ListType
fetchByC_T_First
(long companyId, String type, OrderByComparator<ListType> orderByComparator) Returns the first list type in the ordered set where companyId = ? and type = ?.static ListType
fetchByC_T_Last
(long companyId, String type, OrderByComparator<ListType> orderByComparator) Returns the last list type in the ordered set where companyId = ? and type = ?.static ListType
fetchByCompanyId_First
(long companyId, OrderByComparator<ListType> orderByComparator) Returns the first list type in the ordered set where companyId = ?.static ListType
fetchByCompanyId_Last
(long companyId, OrderByComparator<ListType> orderByComparator) Returns the last list type in the ordered set where companyId = ?.static ListType
fetchByPrimaryKey
(long listTypeId) Returns the list type with the primary key or returnsnull
if it could not be found.static Map<Serializable,
ListType> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static ListType
fetchByUuid_C_First
(String uuid, long companyId, OrderByComparator<ListType> orderByComparator) Returns the first list type in the ordered set where uuid = ? and companyId = ?.static ListType
fetchByUuid_C_Last
(String uuid, long companyId, OrderByComparator<ListType> orderByComparator) Returns the last list type in the ordered set where uuid = ? and companyId = ?.static ListType
fetchByUuid_First
(String uuid, OrderByComparator<ListType> orderByComparator) Returns the first list type in the ordered set where uuid = ?.static ListType
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.static ListType
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 = ?.static ListType
findByC_T_First
(long companyId, String type, OrderByComparator<ListType> orderByComparator) Returns the first list type in the ordered set where companyId = ? and type = ?.static ListType
findByC_T_Last
(long companyId, String type, OrderByComparator<ListType> orderByComparator) Returns the last list type in the ordered set where companyId = ? and type = ?.static 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 = ?.static ListType
findByCompanyId_First
(long companyId, OrderByComparator<ListType> orderByComparator) Returns the first list type in the ordered set where companyId = ?.static ListType
findByCompanyId_Last
(long companyId, OrderByComparator<ListType> orderByComparator) Returns the last list type in the ordered set where companyId = ?.static 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 = ?.static ListType
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 = ?.static ListType
findByUuid_C_First
(String uuid, long companyId, OrderByComparator<ListType> orderByComparator) Returns the first list type in the ordered set where uuid = ? and companyId = ?.static ListType
findByUuid_C_Last
(String uuid, long companyId, OrderByComparator<ListType> orderByComparator) Returns the last list type in the ordered set where uuid = ? and companyId = ?.static 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 = ?.static ListType
findByUuid_First
(String uuid, OrderByComparator<ListType> orderByComparator) Returns the first list type in the ordered set where uuid = ?.static ListType
findByUuid_Last
(String uuid, OrderByComparator<ListType> orderByComparator) Returns the last list type in the ordered set where uuid = ?.static 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 = ?.findWithDynamicQuery
(DynamicQuery dynamicQuery) findWithDynamicQuery
(DynamicQuery dynamicQuery, int start, int end) findWithDynamicQuery
(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<ListType> orderByComparator) static ListTypePersistence
static ListType
remove
(long listTypeId) Removes the list type with the primary key from the database.static void
Removes all the list types from the database.static ListType
removeByC_N_T
(long companyId, String name, String type) Removes the list type where companyId = ? and name = ? and type = ? from the database.static void
removeByC_T
(long companyId, String type) Removes all the list types where companyId = ? and type = ? from the database.static void
removeByCompanyId
(long companyId) Removes all the list types where companyId = ? from the database.static void
removeByUuid
(String uuid) Removes all the list types where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the list types where uuid = ? and companyId = ? from the database.static void
setPersistence
(ListTypePersistence persistence) static ListType
static ListType
update
(ListType listType, ServiceContext serviceContext) static ListType
updateImpl
(ListType listType)
-
Constructor Details
-
ListTypeUtil
public ListTypeUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
clearCache
-
countWithDynamicQuery
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
-
findWithDynamicQuery
-
findWithDynamicQuery
public static List<ListType> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<ListType> orderByComparator) -
update
-
update
-
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
public static 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
public static 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
public static 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 foundNoSuchListTypeException
-
fetchByUuid_First
public static ListType fetchByUuid_First(String uuid, OrderByComparator<ListType> orderByComparator) 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
public static 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 foundNoSuchListTypeException
-
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
public static 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 foundNoSuchListTypeException
-
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
public static 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
public static 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
public static 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 foundNoSuchListTypeException
-
fetchByUuid_C_First
public static 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
public static 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 foundNoSuchListTypeException
-
fetchByUuid_C_Last
public static 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
public static 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 foundNoSuchListTypeException
-
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
public static 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
public static 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
public static 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 foundNoSuchListTypeException
-
fetchByCompanyId_First
public static ListType fetchByCompanyId_First(long companyId, OrderByComparator<ListType> orderByComparator) 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
public static 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 foundNoSuchListTypeException
-
fetchByCompanyId_Last
public static ListType fetchByCompanyId_Last(long companyId, OrderByComparator<ListType> orderByComparator) 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
public static 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 foundNoSuchListTypeException
-
removeByCompanyId
public static void removeByCompanyId(long companyId) Removes all the list types where companyId = ? from the database.- Parameters:
companyId
- the company ID
-
countByCompanyId
public static 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
public static 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
public static 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
public static 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 foundNoSuchListTypeException
-
fetchByC_T_First
public static 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
public static 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 foundNoSuchListTypeException
-
fetchByC_T_Last
public static 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
public static 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 foundNoSuchListTypeException
-
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
public static ListType findByC_N_T(long companyId, String name, String type) throws NoSuchListTypeException 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 foundNoSuchListTypeException
-
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
public static ListType 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.- 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
public static ListType removeByC_N_T(long companyId, String name, String type) throws NoSuchListTypeException 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 foundNoSuchListTypeException
-
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 foundNoSuchListTypeException
-
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
public static List<ListType> findAll(int start, int end, OrderByComparator<ListType> orderByComparator) 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
public static 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
public static void removeAll()Removes all the list types from the database. -
countAll
public static int countAll()Returns the number of list types.- Returns:
- the number of list types
-
getPersistence
-
setPersistence
-