Class ListTypeDefinitionUtil

java.lang.Object
com.liferay.list.type.service.persistence.ListTypeDefinitionUtil

public class ListTypeDefinitionUtil extends Object
The persistence utility for the list type definition service. This utility wraps com.liferay.list.type.service.persistence.impl.ListTypeDefinitionPersistenceImpl 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

See Also:
Generated:
  • Constructor Details

    • ListTypeDefinitionUtil

      public ListTypeDefinitionUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(ListTypeDefinition listTypeDefinition)
      See Also:
      • BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
    • countWithDynamicQuery

      public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.countWithDynamicQuery(DynamicQuery)
    • fetchByPrimaryKeys

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

      public static List<ListTypeDefinition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<ListTypeDefinition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<ListTypeDefinition> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static ListTypeDefinition update(ListTypeDefinition listTypeDefinition)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static ListTypeDefinition update(ListTypeDefinition listTypeDefinition, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByUuid

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

      public static List<ListTypeDefinition> findByUuid(String uuid, int start, int end)
      Returns a range of all the list type definitions 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 ListTypeDefinitionModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of list type definitions
      end - the upper bound of the range of list type definitions (not inclusive)
      Returns:
      the range of matching list type definitions
    • findByUuid

      public static List<ListTypeDefinition> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator)
      Returns an ordered range of all the list type definitions 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 ListTypeDefinitionModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of list type definitions
      end - the upper bound of the range of list type definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching list type definitions
    • findByUuid

      public static List<ListTypeDefinition> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the list type definitions 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 ListTypeDefinitionModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of list type definitions
      end - the upper bound of the range of list type definitions (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 type definitions
    • findByUuid_First

      public static ListTypeDefinition findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator) throws NoSuchListTypeDefinitionException
      Returns the first list type definition 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 definition
      Throws:
      NoSuchListTypeDefinitionException - if a matching list type definition could not be found
      NoSuchListTypeDefinitionException
    • fetchByUuid_First

      public static ListTypeDefinition fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator)
      Returns the first list type definition 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 definition, or null if a matching list type definition could not be found
    • findByUuid_Last

      public static ListTypeDefinition findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator) throws NoSuchListTypeDefinitionException
      Returns the last list type definition 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 definition
      Throws:
      NoSuchListTypeDefinitionException - if a matching list type definition could not be found
      NoSuchListTypeDefinitionException
    • fetchByUuid_Last

      public static ListTypeDefinition fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator)
      Returns the last list type definition 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 definition, or null if a matching list type definition could not be found
    • findByUuid_PrevAndNext

      public static ListTypeDefinition[] findByUuid_PrevAndNext(long listTypeDefinitionId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator) throws NoSuchListTypeDefinitionException
      Returns the list type definitions before and after the current list type definition in the ordered set where uuid = ?.
      Parameters:
      listTypeDefinitionId - the primary key of the current list type definition
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next list type definition
      Throws:
      NoSuchListTypeDefinitionException - if a list type definition with the primary key could not be found
      NoSuchListTypeDefinitionException
    • filterFindByUuid

      public static List<ListTypeDefinition> filterFindByUuid(String uuid)
      Returns all the list type definitions that the user has permission to view where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching list type definitions that the user has permission to view
    • filterFindByUuid

      public static List<ListTypeDefinition> filterFindByUuid(String uuid, int start, int end)
      Returns a range of all the list type definitions that the user has permission to view 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 ListTypeDefinitionModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of list type definitions
      end - the upper bound of the range of list type definitions (not inclusive)
      Returns:
      the range of matching list type definitions that the user has permission to view
    • filterFindByUuid

      public static List<ListTypeDefinition> filterFindByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator)
      Returns an ordered range of all the list type definitions that the user has permissions to view 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 ListTypeDefinitionModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of list type definitions
      end - the upper bound of the range of list type definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching list type definitions that the user has permission to view
    • filterFindByUuid_PrevAndNext

      public static ListTypeDefinition[] filterFindByUuid_PrevAndNext(long listTypeDefinitionId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator) throws NoSuchListTypeDefinitionException
      Returns the list type definitions before and after the current list type definition in the ordered set of list type definitions that the user has permission to view where uuid = ?.
      Parameters:
      listTypeDefinitionId - the primary key of the current list type definition
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next list type definition
      Throws:
      NoSuchListTypeDefinitionException - if a list type definition with the primary key could not be found
      NoSuchListTypeDefinitionException
    • removeByUuid

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

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

      public static int filterCountByUuid(String uuid)
      Returns the number of list type definitions that the user has permission to view where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching list type definitions that the user has permission to view
    • findByUuid_C

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

      public static List<ListTypeDefinition> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the list type definitions 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 ListTypeDefinitionModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of list type definitions
      end - the upper bound of the range of list type definitions (not inclusive)
      Returns:
      the range of matching list type definitions
    • findByUuid_C

      public static List<ListTypeDefinition> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator)
      Returns an ordered range of all the list type definitions 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 ListTypeDefinitionModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of list type definitions
      end - the upper bound of the range of list type definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching list type definitions
    • findByUuid_C

      public static List<ListTypeDefinition> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the list type definitions 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 ListTypeDefinitionModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of list type definitions
      end - the upper bound of the range of list type definitions (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 type definitions
    • findByUuid_C_First

      public static ListTypeDefinition findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator) throws NoSuchListTypeDefinitionException
      Returns the first list type definition 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 definition
      Throws:
      NoSuchListTypeDefinitionException - if a matching list type definition could not be found
      NoSuchListTypeDefinitionException
    • fetchByUuid_C_First

      public static ListTypeDefinition fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator)
      Returns the first list type definition 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 definition, or null if a matching list type definition could not be found
    • findByUuid_C_Last

      public static ListTypeDefinition findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator) throws NoSuchListTypeDefinitionException
      Returns the last list type definition 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 definition
      Throws:
      NoSuchListTypeDefinitionException - if a matching list type definition could not be found
      NoSuchListTypeDefinitionException
    • fetchByUuid_C_Last

      public static ListTypeDefinition fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator)
      Returns the last list type definition 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 definition, or null if a matching list type definition could not be found
    • findByUuid_C_PrevAndNext

      public static ListTypeDefinition[] findByUuid_C_PrevAndNext(long listTypeDefinitionId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator) throws NoSuchListTypeDefinitionException
      Returns the list type definitions before and after the current list type definition in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      listTypeDefinitionId - the primary key of the current list type definition
      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 definition
      Throws:
      NoSuchListTypeDefinitionException - if a list type definition with the primary key could not be found
      NoSuchListTypeDefinitionException
    • filterFindByUuid_C

      public static List<ListTypeDefinition> filterFindByUuid_C(String uuid, long companyId)
      Returns all the list type definitions that the user has permission to view where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching list type definitions that the user has permission to view
    • filterFindByUuid_C

      public static List<ListTypeDefinition> filterFindByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the list type definitions that the user has permission to view 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 ListTypeDefinitionModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of list type definitions
      end - the upper bound of the range of list type definitions (not inclusive)
      Returns:
      the range of matching list type definitions that the user has permission to view
    • filterFindByUuid_C

      public static List<ListTypeDefinition> filterFindByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator)
      Returns an ordered range of all the list type definitions that the user has permissions to view 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 ListTypeDefinitionModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of list type definitions
      end - the upper bound of the range of list type definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching list type definitions that the user has permission to view
    • filterFindByUuid_C_PrevAndNext

      public static ListTypeDefinition[] filterFindByUuid_C_PrevAndNext(long listTypeDefinitionId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator) throws NoSuchListTypeDefinitionException
      Returns the list type definitions before and after the current list type definition in the ordered set of list type definitions that the user has permission to view where uuid = ? and companyId = ?.
      Parameters:
      listTypeDefinitionId - the primary key of the current list type definition
      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 definition
      Throws:
      NoSuchListTypeDefinitionException - if a list type definition with the primary key could not be found
      NoSuchListTypeDefinitionException
    • removeByUuid_C

      public static void removeByUuid_C(String uuid, long companyId)
      Removes all the list type definitions 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 type definitions where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching list type definitions
    • filterCountByUuid_C

      public static int filterCountByUuid_C(String uuid, long companyId)
      Returns the number of list type definitions that the user has permission to view where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching list type definitions that the user has permission to view
    • findByC_U

      public static List<ListTypeDefinition> findByC_U(long companyId, long userId)
      Returns all the list type definitions where companyId = ? and userId = ?.
      Parameters:
      companyId - the company ID
      userId - the user ID
      Returns:
      the matching list type definitions
    • findByC_U

      public static List<ListTypeDefinition> findByC_U(long companyId, long userId, int start, int end)
      Returns a range of all the list type definitions where companyId = ? and userId = ?.

      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 ListTypeDefinitionModelImpl.

      Parameters:
      companyId - the company ID
      userId - the user ID
      start - the lower bound of the range of list type definitions
      end - the upper bound of the range of list type definitions (not inclusive)
      Returns:
      the range of matching list type definitions
    • findByC_U

      public static List<ListTypeDefinition> findByC_U(long companyId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator)
      Returns an ordered range of all the list type definitions where companyId = ? and userId = ?.

      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 ListTypeDefinitionModelImpl.

      Parameters:
      companyId - the company ID
      userId - the user ID
      start - the lower bound of the range of list type definitions
      end - the upper bound of the range of list type definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching list type definitions
    • findByC_U

      public static List<ListTypeDefinition> findByC_U(long companyId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the list type definitions where companyId = ? and userId = ?.

      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 ListTypeDefinitionModelImpl.

      Parameters:
      companyId - the company ID
      userId - the user ID
      start - the lower bound of the range of list type definitions
      end - the upper bound of the range of list type definitions (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 type definitions
    • findByC_U_First

      public static ListTypeDefinition findByC_U_First(long companyId, long userId, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator) throws NoSuchListTypeDefinitionException
      Returns the first list type definition in the ordered set where companyId = ? and userId = ?.
      Parameters:
      companyId - the company ID
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching list type definition
      Throws:
      NoSuchListTypeDefinitionException - if a matching list type definition could not be found
      NoSuchListTypeDefinitionException
    • fetchByC_U_First

      public static ListTypeDefinition fetchByC_U_First(long companyId, long userId, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator)
      Returns the first list type definition in the ordered set where companyId = ? and userId = ?.
      Parameters:
      companyId - the company ID
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching list type definition, or null if a matching list type definition could not be found
    • findByC_U_Last

      public static ListTypeDefinition findByC_U_Last(long companyId, long userId, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator) throws NoSuchListTypeDefinitionException
      Returns the last list type definition in the ordered set where companyId = ? and userId = ?.
      Parameters:
      companyId - the company ID
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching list type definition
      Throws:
      NoSuchListTypeDefinitionException - if a matching list type definition could not be found
      NoSuchListTypeDefinitionException
    • fetchByC_U_Last

      public static ListTypeDefinition fetchByC_U_Last(long companyId, long userId, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator)
      Returns the last list type definition in the ordered set where companyId = ? and userId = ?.
      Parameters:
      companyId - the company ID
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching list type definition, or null if a matching list type definition could not be found
    • findByC_U_PrevAndNext

      public static ListTypeDefinition[] findByC_U_PrevAndNext(long listTypeDefinitionId, long companyId, long userId, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator) throws NoSuchListTypeDefinitionException
      Returns the list type definitions before and after the current list type definition in the ordered set where companyId = ? and userId = ?.
      Parameters:
      listTypeDefinitionId - the primary key of the current list type definition
      companyId - the company ID
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next list type definition
      Throws:
      NoSuchListTypeDefinitionException - if a list type definition with the primary key could not be found
      NoSuchListTypeDefinitionException
    • filterFindByC_U

      public static List<ListTypeDefinition> filterFindByC_U(long companyId, long userId)
      Returns all the list type definitions that the user has permission to view where companyId = ? and userId = ?.
      Parameters:
      companyId - the company ID
      userId - the user ID
      Returns:
      the matching list type definitions that the user has permission to view
    • filterFindByC_U

      public static List<ListTypeDefinition> filterFindByC_U(long companyId, long userId, int start, int end)
      Returns a range of all the list type definitions that the user has permission to view where companyId = ? and userId = ?.

      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 ListTypeDefinitionModelImpl.

      Parameters:
      companyId - the company ID
      userId - the user ID
      start - the lower bound of the range of list type definitions
      end - the upper bound of the range of list type definitions (not inclusive)
      Returns:
      the range of matching list type definitions that the user has permission to view
    • filterFindByC_U

      public static List<ListTypeDefinition> filterFindByC_U(long companyId, long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator)
      Returns an ordered range of all the list type definitions that the user has permissions to view where companyId = ? and userId = ?.

      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 ListTypeDefinitionModelImpl.

      Parameters:
      companyId - the company ID
      userId - the user ID
      start - the lower bound of the range of list type definitions
      end - the upper bound of the range of list type definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching list type definitions that the user has permission to view
    • filterFindByC_U_PrevAndNext

      public static ListTypeDefinition[] filterFindByC_U_PrevAndNext(long listTypeDefinitionId, long companyId, long userId, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator) throws NoSuchListTypeDefinitionException
      Returns the list type definitions before and after the current list type definition in the ordered set of list type definitions that the user has permission to view where companyId = ? and userId = ?.
      Parameters:
      listTypeDefinitionId - the primary key of the current list type definition
      companyId - the company ID
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next list type definition
      Throws:
      NoSuchListTypeDefinitionException - if a list type definition with the primary key could not be found
      NoSuchListTypeDefinitionException
    • removeByC_U

      public static void removeByC_U(long companyId, long userId)
      Removes all the list type definitions where companyId = ? and userId = ? from the database.
      Parameters:
      companyId - the company ID
      userId - the user ID
    • countByC_U

      public static int countByC_U(long companyId, long userId)
      Returns the number of list type definitions where companyId = ? and userId = ?.
      Parameters:
      companyId - the company ID
      userId - the user ID
      Returns:
      the number of matching list type definitions
    • filterCountByC_U

      public static int filterCountByC_U(long companyId, long userId)
      Returns the number of list type definitions that the user has permission to view where companyId = ? and userId = ?.
      Parameters:
      companyId - the company ID
      userId - the user ID
      Returns:
      the number of matching list type definitions that the user has permission to view
    • findByERC_C

      public static ListTypeDefinition findByERC_C(String externalReferenceCode, long companyId) throws NoSuchListTypeDefinitionException
      Returns the list type definition where externalReferenceCode = ? and companyId = ? or throws a NoSuchListTypeDefinitionException if it could not be found.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching list type definition
      Throws:
      NoSuchListTypeDefinitionException - if a matching list type definition could not be found
      NoSuchListTypeDefinitionException
    • fetchByERC_C

      public static ListTypeDefinition fetchByERC_C(String externalReferenceCode, long companyId)
      Returns the list type definition where externalReferenceCode = ? and companyId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching list type definition, or null if a matching list type definition could not be found
    • fetchByERC_C

      public static ListTypeDefinition fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
      Returns the list type definition where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching list type definition, or null if a matching list type definition could not be found
    • removeByERC_C

      public static ListTypeDefinition removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchListTypeDefinitionException
      Removes the list type definition where externalReferenceCode = ? and companyId = ? from the database.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the list type definition that was removed
      Throws:
      NoSuchListTypeDefinitionException
    • countByERC_C

      public static int countByERC_C(String externalReferenceCode, long companyId)
      Returns the number of list type definitions where externalReferenceCode = ? and companyId = ?.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the number of matching list type definitions
    • cacheResult

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

      public static void cacheResult(List<ListTypeDefinition> listTypeDefinitions)
      Caches the list type definitions in the entity cache if it is enabled.
      Parameters:
      listTypeDefinitions - the list type definitions
    • create

      public static ListTypeDefinition create(long listTypeDefinitionId)
      Creates a new list type definition with the primary key. Does not add the list type definition to the database.
      Parameters:
      listTypeDefinitionId - the primary key for the new list type definition
      Returns:
      the new list type definition
    • remove

      public static ListTypeDefinition remove(long listTypeDefinitionId) throws NoSuchListTypeDefinitionException
      Removes the list type definition with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      listTypeDefinitionId - the primary key of the list type definition
      Returns:
      the list type definition that was removed
      Throws:
      NoSuchListTypeDefinitionException - if a list type definition with the primary key could not be found
      NoSuchListTypeDefinitionException
    • updateImpl

      public static ListTypeDefinition updateImpl(ListTypeDefinition listTypeDefinition)
    • findByPrimaryKey

      public static ListTypeDefinition findByPrimaryKey(long listTypeDefinitionId) throws NoSuchListTypeDefinitionException
      Returns the list type definition with the primary key or throws a NoSuchListTypeDefinitionException if it could not be found.
      Parameters:
      listTypeDefinitionId - the primary key of the list type definition
      Returns:
      the list type definition
      Throws:
      NoSuchListTypeDefinitionException - if a list type definition with the primary key could not be found
      NoSuchListTypeDefinitionException
    • fetchByPrimaryKey

      public static ListTypeDefinition fetchByPrimaryKey(long listTypeDefinitionId)
      Returns the list type definition with the primary key or returns null if it could not be found.
      Parameters:
      listTypeDefinitionId - the primary key of the list type definition
      Returns:
      the list type definition, or null if a list type definition with the primary key could not be found
    • findAll

      public static List<ListTypeDefinition> findAll()
      Returns all the list type definitions.
      Returns:
      the list type definitions
    • findAll

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

      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 ListTypeDefinitionModelImpl.

      Parameters:
      start - the lower bound of the range of list type definitions
      end - the upper bound of the range of list type definitions (not inclusive)
      Returns:
      the range of list type definitions
    • findAll

      public static List<ListTypeDefinition> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator)
      Returns an ordered range of all the list type definitions.

      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 ListTypeDefinitionModelImpl.

      Parameters:
      start - the lower bound of the range of list type definitions
      end - the upper bound of the range of list type definitions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of list type definitions
    • findAll

      public static List<ListTypeDefinition> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ListTypeDefinition> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the list type definitions.

      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 ListTypeDefinitionModelImpl.

      Parameters:
      start - the lower bound of the range of list type definitions
      end - the upper bound of the range of list type definitions (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 type definitions
    • removeAll

      public static void removeAll()
      Removes all the list type definitions from the database.
    • countAll

      public static int countAll()
      Returns the number of list type definitions.
      Returns:
      the number of list type definitions
    • getPersistence

      public static ListTypeDefinitionPersistence getPersistence()
    • setPersistence

      public static void setPersistence(ListTypeDefinitionPersistence persistence)