Class ListTypeUtil

Object
com.liferay.portal.kernel.service.persistence.ListTypeUtil

public class ListTypeUtil extends Object
The persistence utility for the list type service. This utility wraps 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 Details

    • ListTypeUtil

      public ListTypeUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
    • clearCache

      public static void clearCache(ListType listType)
      See Also:
    • countWithDynamicQuery

      public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
      See Also:
    • fetchByPrimaryKeys

      public static Map<Serializable,ListType> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
    • findWithDynamicQuery

      public static List<ListType> findWithDynamicQuery(DynamicQuery dynamicQuery)
      See Also:
    • findWithDynamicQuery

      public static List<ListType> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
      See Also:
    • findWithDynamicQuery

      public static List<ListType> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<ListType> orderByComparator)
      See Also:
    • update

      public static ListType update(ListType listType)
      See Also:
    • update

      public static ListType update(ListType listType, ServiceContext serviceContext)
      See Also:
    • findByUuid

      public static List<ListType> findByUuid(String uuid)
      Returns all the list types where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching list types
    • findByUuid

      public static List<ListType> findByUuid(String uuid, int start, int end)
      Returns a range of all the list types where uuid = ?.

      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.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of list types
      end - 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 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.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of list types
      end - the upper bound of the range of list types (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 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.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of list types
      end - 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 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 uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching list type
      Throws:
      NoSuchListTypeException - if a matching list type could not be found
      NoSuchListTypeException
    • 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 uuid
      orderByComparator - the comparator to order the set by (optionally null)
      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 uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching list type
      Throws:
      NoSuchListTypeException - if a matching list type could not be found
      NoSuchListTypeException
    • fetchByUuid_Last

      public static ListType fetchByUuid_Last(String uuid, OrderByComparator<ListType> orderByComparator)
      Returns the last list type in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      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 type
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next list type
      Throws:
      NoSuchListTypeException - if a list type with the primary key could not be found
      NoSuchListTypeException
    • removeByUuid

      public static void removeByUuid(String uuid)
      Removes all the list types where uuid = ? from the database.
      Parameters:
      uuid - the uuid
    • countByUuid

      public static int countByUuid(String uuid)
      Returns the number of list types where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching list types
    • findByUuid_C

      public static List<ListType> findByUuid_C(String uuid, long companyId)
      Returns all the list types where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching list types
    • findByUuid_C

      public static List<ListType> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the list types where uuid = ? and companyId = ?.

      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.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of list types
      end - 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 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.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of list types
      end - the upper bound of the range of list types (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 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.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of list types
      end - 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 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 uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching list type
      Throws:
      NoSuchListTypeException - if a matching list type could not be found
      NoSuchListTypeException
    • 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 uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching list type
      Throws:
      NoSuchListTypeException - if a matching list type could not be found
      NoSuchListTypeException
    • 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 uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 type
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next list type
      Throws:
      NoSuchListTypeException - if a list type with the primary key could not be found
      NoSuchListTypeException
    • removeByUuid_C

      public static void removeByUuid_C(String uuid, long companyId)
      Removes all the list types where uuid = ? and companyId = ? from the database.
      Parameters:
      uuid - the uuid
      companyId - the company ID
    • countByUuid_C

      public static int countByUuid_C(String uuid, long companyId)
      Returns the number of list types where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching list types
    • findByCompanyId

      public static List<ListType> findByCompanyId(long companyId)
      Returns all the list types where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching list types
    • findByCompanyId

      public static List<ListType> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the list types where companyId = ?.

      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.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of list types
      end - 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 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.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of list types
      end - the upper bound of the range of list types (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 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.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of list types
      end - 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 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching list type
      Throws:
      NoSuchListTypeException - if a matching list type could not be found
      NoSuchListTypeException
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching list type
      Throws:
      NoSuchListTypeException - if a matching list type could not be found
      NoSuchListTypeException
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 type
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next list type
      Throws:
      NoSuchListTypeException - if a list type with the primary key could not be found
      NoSuchListTypeException
    • 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

      public static List<ListType> findByC_T(long companyId, String type)
      Returns all the list types where companyId = ? and type = ?.
      Parameters:
      companyId - the company ID
      type - the type
      Returns:
      the matching list types
    • findByC_T

      public static List<ListType> findByC_T(long companyId, String type, int start, int end)
      Returns a range of all the list types where companyId = ? and type = ?.

      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.

      Parameters:
      companyId - the company ID
      type - the type
      start - the lower bound of the range of list types
      end - 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 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.

      Parameters:
      companyId - the company ID
      type - the type
      start - the lower bound of the range of list types
      end - the upper bound of the range of list types (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 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.

      Parameters:
      companyId - the company ID
      type - the type
      start - the lower bound of the range of list types
      end - 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 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 ID
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching list type
      Throws:
      NoSuchListTypeException - if a matching list type could not be found
      NoSuchListTypeException
    • 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 ID
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      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 ID
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching list type
      Throws:
      NoSuchListTypeException - if a matching list type could not be found
      NoSuchListTypeException
    • 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 ID
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      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 type
      companyId - the company ID
      type - the type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next list type
      Throws:
      NoSuchListTypeException - if a list type with the primary key could not be found
      NoSuchListTypeException
    • removeByC_T

      public static void removeByC_T(long companyId, String type)
      Removes all the list types where companyId = ? and type = ? from the database.
      Parameters:
      companyId - the company ID
      type - the type
    • countByC_T

      public static int countByC_T(long companyId, String type)
      Returns the number of list types where companyId = ? and type = ?.
      Parameters:
      companyId - the company ID
      type - 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 a NoSuchListTypeException if it could not be found.
      Parameters:
      companyId - the company ID
      name - the name
      type - the type
      Returns:
      the matching list type
      Throws:
      NoSuchListTypeException - if a matching list type could not be found
      NoSuchListTypeException
    • fetchByC_N_T

      public static 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. Uses the finder cache.
      Parameters:
      companyId - the company ID
      name - the name
      type - 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 returns null if it could not be found, optionally using the finder cache.
      Parameters:
      companyId - the company ID
      name - the name
      type - the type
      useFinderCache - 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 ID
      name - the name
      type - the type
      Returns:
      the list type that was removed
      Throws:
      NoSuchListTypeException
    • countByC_N_T

      public static int countByC_N_T(long companyId, String name, String type)
      Returns the number of list types where companyId = ? and name = ? and type = ?.
      Parameters:
      companyId - the company ID
      name - the name
      type - the type
      Returns:
      the number of matching list types
    • cacheResult

      public static void cacheResult(ListType listType)
      Caches the list type in the entity cache if it is enabled.
      Parameters:
      listType - the list type
    • cacheResult

      public static void cacheResult(List<ListType> listTypes)
      Caches the list types in the entity cache if it is enabled.
      Parameters:
      listTypes - the list types
    • create

      public static ListType create(long listTypeId)
      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

      public static ListType remove(long listTypeId) throws NoSuchListTypeException
      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
      NoSuchListTypeException
    • updateImpl

      public static ListType updateImpl(ListType listType)
    • findByPrimaryKey

      public static ListType findByPrimaryKey(long listTypeId) throws NoSuchListTypeException
      Returns the list type with the primary key or throws a NoSuchListTypeException 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
      NoSuchListTypeException
    • fetchByPrimaryKey

      public static ListType fetchByPrimaryKey(long listTypeId)
      Returns the list type with the primary key or returns null 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

      public static List<ListType> findAll()
      Returns all the list types.
      Returns:
      the list types
    • findAll

      public static List<ListType> findAll(int start, int end)
      Returns a range of all the list types.

      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.

      Parameters:
      start - the lower bound of the range of list types
      end - 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 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.

      Parameters:
      start - the lower bound of the range of list types
      end - the upper bound of the range of list types (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 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.

      Parameters:
      start - the lower bound of the range of list types
      end - 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 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

      public static ListTypePersistence getPersistence()
    • setPersistence

      public static void setPersistence(ListTypePersistence persistence)