Class ObjectValidationRuleUtil

java.lang.Object
com.liferay.object.service.persistence.ObjectValidationRuleUtil

public class ObjectValidationRuleUtil extends Object
The persistence utility for the object validation rule service. This utility wraps com.liferay.object.service.persistence.impl.ObjectValidationRulePersistenceImpl 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

    • ObjectValidationRuleUtil

      public ObjectValidationRuleUtil()
  • Method Details

    • clearCache

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

      public static void clearCache(ObjectValidationRule objectValidationRule)
      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,ObjectValidationRule> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

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

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

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

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

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

      public static List<ObjectValidationRule> findByUuid(String uuid)
      Returns all the object validation rules where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching object validation rules
    • findByUuid

      public static List<ObjectValidationRule> findByUuid(String uuid, int start, int end)
      Returns a range of all the object validation rules 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 ObjectValidationRuleModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of object validation rules
      end - the upper bound of the range of object validation rules (not inclusive)
      Returns:
      the range of matching object validation rules
    • findByUuid

      public static List<ObjectValidationRule> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
      Returns an ordered range of all the object validation rules 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 ObjectValidationRuleModelImpl.

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

      public static List<ObjectValidationRule> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object validation rules 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 ObjectValidationRuleModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of object validation rules
      end - the upper bound of the range of object validation rules (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 object validation rules
    • findByUuid_First

      public static ObjectValidationRule findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
      Returns the first object validation rule in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object validation rule
      Throws:
      NoSuchObjectValidationRuleException - if a matching object validation rule could not be found
      NoSuchObjectValidationRuleException
    • fetchByUuid_First

      public static ObjectValidationRule fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
      Returns the first object validation rule in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object validation rule, or null if a matching object validation rule could not be found
    • findByUuid_Last

      public static ObjectValidationRule findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
      Returns the last object validation rule in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object validation rule
      Throws:
      NoSuchObjectValidationRuleException - if a matching object validation rule could not be found
      NoSuchObjectValidationRuleException
    • fetchByUuid_Last

      public static ObjectValidationRule fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
      Returns the last object validation rule in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object validation rule, or null if a matching object validation rule could not be found
    • findByUuid_PrevAndNext

      public static ObjectValidationRule[] findByUuid_PrevAndNext(long objectValidationRuleId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
      Returns the object validation rules before and after the current object validation rule in the ordered set where uuid = ?.
      Parameters:
      objectValidationRuleId - the primary key of the current object validation rule
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next object validation rule
      Throws:
      NoSuchObjectValidationRuleException - if a object validation rule with the primary key could not be found
      NoSuchObjectValidationRuleException
    • removeByUuid

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

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

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

      public static List<ObjectValidationRule> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the object validation rules 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 ObjectValidationRuleModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of object validation rules
      end - the upper bound of the range of object validation rules (not inclusive)
      Returns:
      the range of matching object validation rules
    • findByUuid_C

      public static List<ObjectValidationRule> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
      Returns an ordered range of all the object validation rules 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 ObjectValidationRuleModelImpl.

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

      public static List<ObjectValidationRule> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object validation rules 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 ObjectValidationRuleModelImpl.

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

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

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

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

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

      public static ObjectValidationRule[] findByUuid_C_PrevAndNext(long objectValidationRuleId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
      Returns the object validation rules before and after the current object validation rule in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      objectValidationRuleId - the primary key of the current object validation rule
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next object validation rule
      Throws:
      NoSuchObjectValidationRuleException - if a object validation rule with the primary key could not be found
      NoSuchObjectValidationRuleException
    • removeByUuid_C

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

      public static List<ObjectValidationRule> findByObjectDefinitionId(long objectDefinitionId)
      Returns all the object validation rules where objectDefinitionId = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      Returns:
      the matching object validation rules
    • findByObjectDefinitionId

      public static List<ObjectValidationRule> findByObjectDefinitionId(long objectDefinitionId, int start, int end)
      Returns a range of all the object validation rules where objectDefinitionId = ?.

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

      Parameters:
      objectDefinitionId - the object definition ID
      start - the lower bound of the range of object validation rules
      end - the upper bound of the range of object validation rules (not inclusive)
      Returns:
      the range of matching object validation rules
    • findByObjectDefinitionId

      public static List<ObjectValidationRule> findByObjectDefinitionId(long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
      Returns an ordered range of all the object validation rules where objectDefinitionId = ?.

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

      Parameters:
      objectDefinitionId - the object definition ID
      start - the lower bound of the range of object validation rules
      end - the upper bound of the range of object validation rules (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching object validation rules
    • findByObjectDefinitionId

      public static List<ObjectValidationRule> findByObjectDefinitionId(long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object validation rules where objectDefinitionId = ?.

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

      Parameters:
      objectDefinitionId - the object definition ID
      start - the lower bound of the range of object validation rules
      end - the upper bound of the range of object validation rules (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 object validation rules
    • findByObjectDefinitionId_First

      public static ObjectValidationRule findByObjectDefinitionId_First(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
      Returns the first object validation rule in the ordered set where objectDefinitionId = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object validation rule
      Throws:
      NoSuchObjectValidationRuleException - if a matching object validation rule could not be found
      NoSuchObjectValidationRuleException
    • fetchByObjectDefinitionId_First

      public static ObjectValidationRule fetchByObjectDefinitionId_First(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
      Returns the first object validation rule in the ordered set where objectDefinitionId = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object validation rule, or null if a matching object validation rule could not be found
    • findByObjectDefinitionId_Last

      public static ObjectValidationRule findByObjectDefinitionId_Last(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
      Returns the last object validation rule in the ordered set where objectDefinitionId = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object validation rule
      Throws:
      NoSuchObjectValidationRuleException - if a matching object validation rule could not be found
      NoSuchObjectValidationRuleException
    • fetchByObjectDefinitionId_Last

      public static ObjectValidationRule fetchByObjectDefinitionId_Last(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
      Returns the last object validation rule in the ordered set where objectDefinitionId = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object validation rule, or null if a matching object validation rule could not be found
    • findByObjectDefinitionId_PrevAndNext

      public static ObjectValidationRule[] findByObjectDefinitionId_PrevAndNext(long objectValidationRuleId, long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
      Returns the object validation rules before and after the current object validation rule in the ordered set where objectDefinitionId = ?.
      Parameters:
      objectValidationRuleId - the primary key of the current object validation rule
      objectDefinitionId - the object definition ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next object validation rule
      Throws:
      NoSuchObjectValidationRuleException - if a object validation rule with the primary key could not be found
      NoSuchObjectValidationRuleException
    • removeByObjectDefinitionId

      public static void removeByObjectDefinitionId(long objectDefinitionId)
      Removes all the object validation rules where objectDefinitionId = ? from the database.
      Parameters:
      objectDefinitionId - the object definition ID
    • countByObjectDefinitionId

      public static int countByObjectDefinitionId(long objectDefinitionId)
      Returns the number of object validation rules where objectDefinitionId = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      Returns:
      the number of matching object validation rules
    • findByODI_A

      public static List<ObjectValidationRule> findByODI_A(long objectDefinitionId, boolean active)
      Returns all the object validation rules where objectDefinitionId = ? and active = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      active - the active
      Returns:
      the matching object validation rules
    • findByODI_A

      public static List<ObjectValidationRule> findByODI_A(long objectDefinitionId, boolean active, int start, int end)
      Returns a range of all the object validation rules where objectDefinitionId = ? and active = ?.

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

      Parameters:
      objectDefinitionId - the object definition ID
      active - the active
      start - the lower bound of the range of object validation rules
      end - the upper bound of the range of object validation rules (not inclusive)
      Returns:
      the range of matching object validation rules
    • findByODI_A

      public static List<ObjectValidationRule> findByODI_A(long objectDefinitionId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
      Returns an ordered range of all the object validation rules where objectDefinitionId = ? and active = ?.

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

      Parameters:
      objectDefinitionId - the object definition ID
      active - the active
      start - the lower bound of the range of object validation rules
      end - the upper bound of the range of object validation rules (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching object validation rules
    • findByODI_A

      public static List<ObjectValidationRule> findByODI_A(long objectDefinitionId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object validation rules where objectDefinitionId = ? and active = ?.

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

      Parameters:
      objectDefinitionId - the object definition ID
      active - the active
      start - the lower bound of the range of object validation rules
      end - the upper bound of the range of object validation rules (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 object validation rules
    • findByODI_A_First

      public static ObjectValidationRule findByODI_A_First(long objectDefinitionId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
      Returns the first object validation rule in the ordered set where objectDefinitionId = ? and active = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object validation rule
      Throws:
      NoSuchObjectValidationRuleException - if a matching object validation rule could not be found
      NoSuchObjectValidationRuleException
    • fetchByODI_A_First

      public static ObjectValidationRule fetchByODI_A_First(long objectDefinitionId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
      Returns the first object validation rule in the ordered set where objectDefinitionId = ? and active = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object validation rule, or null if a matching object validation rule could not be found
    • findByODI_A_Last

      public static ObjectValidationRule findByODI_A_Last(long objectDefinitionId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
      Returns the last object validation rule in the ordered set where objectDefinitionId = ? and active = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object validation rule
      Throws:
      NoSuchObjectValidationRuleException - if a matching object validation rule could not be found
      NoSuchObjectValidationRuleException
    • fetchByODI_A_Last

      public static ObjectValidationRule fetchByODI_A_Last(long objectDefinitionId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
      Returns the last object validation rule in the ordered set where objectDefinitionId = ? and active = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object validation rule, or null if a matching object validation rule could not be found
    • findByODI_A_PrevAndNext

      public static ObjectValidationRule[] findByODI_A_PrevAndNext(long objectValidationRuleId, long objectDefinitionId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
      Returns the object validation rules before and after the current object validation rule in the ordered set where objectDefinitionId = ? and active = ?.
      Parameters:
      objectValidationRuleId - the primary key of the current object validation rule
      objectDefinitionId - the object definition ID
      active - the active
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next object validation rule
      Throws:
      NoSuchObjectValidationRuleException - if a object validation rule with the primary key could not be found
      NoSuchObjectValidationRuleException
    • removeByODI_A

      public static void removeByODI_A(long objectDefinitionId, boolean active)
      Removes all the object validation rules where objectDefinitionId = ? and active = ? from the database.
      Parameters:
      objectDefinitionId - the object definition ID
      active - the active
    • countByODI_A

      public static int countByODI_A(long objectDefinitionId, boolean active)
      Returns the number of object validation rules where objectDefinitionId = ? and active = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      active - the active
      Returns:
      the number of matching object validation rules
    • findByODI_E

      public static List<ObjectValidationRule> findByODI_E(long objectDefinitionId, String engine)
      Returns all the object validation rules where objectDefinitionId = ? and engine = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      engine - the engine
      Returns:
      the matching object validation rules
    • findByODI_E

      public static List<ObjectValidationRule> findByODI_E(long objectDefinitionId, String engine, int start, int end)
      Returns a range of all the object validation rules where objectDefinitionId = ? and engine = ?.

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

      Parameters:
      objectDefinitionId - the object definition ID
      engine - the engine
      start - the lower bound of the range of object validation rules
      end - the upper bound of the range of object validation rules (not inclusive)
      Returns:
      the range of matching object validation rules
    • findByODI_E

      public static List<ObjectValidationRule> findByODI_E(long objectDefinitionId, String engine, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
      Returns an ordered range of all the object validation rules where objectDefinitionId = ? and engine = ?.

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

      Parameters:
      objectDefinitionId - the object definition ID
      engine - the engine
      start - the lower bound of the range of object validation rules
      end - the upper bound of the range of object validation rules (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching object validation rules
    • findByODI_E

      public static List<ObjectValidationRule> findByODI_E(long objectDefinitionId, String engine, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object validation rules where objectDefinitionId = ? and engine = ?.

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

      Parameters:
      objectDefinitionId - the object definition ID
      engine - the engine
      start - the lower bound of the range of object validation rules
      end - the upper bound of the range of object validation rules (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 object validation rules
    • findByODI_E_First

      public static ObjectValidationRule findByODI_E_First(long objectDefinitionId, String engine, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
      Returns the first object validation rule in the ordered set where objectDefinitionId = ? and engine = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      engine - the engine
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object validation rule
      Throws:
      NoSuchObjectValidationRuleException - if a matching object validation rule could not be found
      NoSuchObjectValidationRuleException
    • fetchByODI_E_First

      public static ObjectValidationRule fetchByODI_E_First(long objectDefinitionId, String engine, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
      Returns the first object validation rule in the ordered set where objectDefinitionId = ? and engine = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      engine - the engine
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object validation rule, or null if a matching object validation rule could not be found
    • findByODI_E_Last

      public static ObjectValidationRule findByODI_E_Last(long objectDefinitionId, String engine, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
      Returns the last object validation rule in the ordered set where objectDefinitionId = ? and engine = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      engine - the engine
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object validation rule
      Throws:
      NoSuchObjectValidationRuleException - if a matching object validation rule could not be found
      NoSuchObjectValidationRuleException
    • fetchByODI_E_Last

      public static ObjectValidationRule fetchByODI_E_Last(long objectDefinitionId, String engine, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
      Returns the last object validation rule in the ordered set where objectDefinitionId = ? and engine = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      engine - the engine
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object validation rule, or null if a matching object validation rule could not be found
    • findByODI_E_PrevAndNext

      public static ObjectValidationRule[] findByODI_E_PrevAndNext(long objectValidationRuleId, long objectDefinitionId, String engine, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
      Returns the object validation rules before and after the current object validation rule in the ordered set where objectDefinitionId = ? and engine = ?.
      Parameters:
      objectValidationRuleId - the primary key of the current object validation rule
      objectDefinitionId - the object definition ID
      engine - the engine
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next object validation rule
      Throws:
      NoSuchObjectValidationRuleException - if a object validation rule with the primary key could not be found
      NoSuchObjectValidationRuleException
    • removeByODI_E

      public static void removeByODI_E(long objectDefinitionId, String engine)
      Removes all the object validation rules where objectDefinitionId = ? and engine = ? from the database.
      Parameters:
      objectDefinitionId - the object definition ID
      engine - the engine
    • countByODI_E

      public static int countByODI_E(long objectDefinitionId, String engine)
      Returns the number of object validation rules where objectDefinitionId = ? and engine = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      engine - the engine
      Returns:
      the number of matching object validation rules
    • findByODI_O

      public static List<ObjectValidationRule> findByODI_O(long objectDefinitionId, String outputType)
      Returns all the object validation rules where objectDefinitionId = ? and outputType = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      outputType - the output type
      Returns:
      the matching object validation rules
    • findByODI_O

      public static List<ObjectValidationRule> findByODI_O(long objectDefinitionId, String outputType, int start, int end)
      Returns a range of all the object validation rules where objectDefinitionId = ? and outputType = ?.

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

      Parameters:
      objectDefinitionId - the object definition ID
      outputType - the output type
      start - the lower bound of the range of object validation rules
      end - the upper bound of the range of object validation rules (not inclusive)
      Returns:
      the range of matching object validation rules
    • findByODI_O

      public static List<ObjectValidationRule> findByODI_O(long objectDefinitionId, String outputType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
      Returns an ordered range of all the object validation rules where objectDefinitionId = ? and outputType = ?.

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

      Parameters:
      objectDefinitionId - the object definition ID
      outputType - the output type
      start - the lower bound of the range of object validation rules
      end - the upper bound of the range of object validation rules (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching object validation rules
    • findByODI_O

      public static List<ObjectValidationRule> findByODI_O(long objectDefinitionId, String outputType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object validation rules where objectDefinitionId = ? and outputType = ?.

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

      Parameters:
      objectDefinitionId - the object definition ID
      outputType - the output type
      start - the lower bound of the range of object validation rules
      end - the upper bound of the range of object validation rules (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 object validation rules
    • findByODI_O_First

      public static ObjectValidationRule findByODI_O_First(long objectDefinitionId, String outputType, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
      Returns the first object validation rule in the ordered set where objectDefinitionId = ? and outputType = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      outputType - the output type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object validation rule
      Throws:
      NoSuchObjectValidationRuleException - if a matching object validation rule could not be found
      NoSuchObjectValidationRuleException
    • fetchByODI_O_First

      public static ObjectValidationRule fetchByODI_O_First(long objectDefinitionId, String outputType, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
      Returns the first object validation rule in the ordered set where objectDefinitionId = ? and outputType = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      outputType - the output type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object validation rule, or null if a matching object validation rule could not be found
    • findByODI_O_Last

      public static ObjectValidationRule findByODI_O_Last(long objectDefinitionId, String outputType, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
      Returns the last object validation rule in the ordered set where objectDefinitionId = ? and outputType = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      outputType - the output type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object validation rule
      Throws:
      NoSuchObjectValidationRuleException - if a matching object validation rule could not be found
      NoSuchObjectValidationRuleException
    • fetchByODI_O_Last

      public static ObjectValidationRule fetchByODI_O_Last(long objectDefinitionId, String outputType, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
      Returns the last object validation rule in the ordered set where objectDefinitionId = ? and outputType = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      outputType - the output type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object validation rule, or null if a matching object validation rule could not be found
    • findByODI_O_PrevAndNext

      public static ObjectValidationRule[] findByODI_O_PrevAndNext(long objectValidationRuleId, long objectDefinitionId, String outputType, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
      Returns the object validation rules before and after the current object validation rule in the ordered set where objectDefinitionId = ? and outputType = ?.
      Parameters:
      objectValidationRuleId - the primary key of the current object validation rule
      objectDefinitionId - the object definition ID
      outputType - the output type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next object validation rule
      Throws:
      NoSuchObjectValidationRuleException - if a object validation rule with the primary key could not be found
      NoSuchObjectValidationRuleException
    • removeByODI_O

      public static void removeByODI_O(long objectDefinitionId, String outputType)
      Removes all the object validation rules where objectDefinitionId = ? and outputType = ? from the database.
      Parameters:
      objectDefinitionId - the object definition ID
      outputType - the output type
    • countByODI_O

      public static int countByODI_O(long objectDefinitionId, String outputType)
      Returns the number of object validation rules where objectDefinitionId = ? and outputType = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      outputType - the output type
      Returns:
      the number of matching object validation rules
    • findByA_E

      public static List<ObjectValidationRule> findByA_E(boolean active, String engine)
      Returns all the object validation rules where active = ? and engine = ?.
      Parameters:
      active - the active
      engine - the engine
      Returns:
      the matching object validation rules
    • findByA_E

      public static List<ObjectValidationRule> findByA_E(boolean active, String engine, int start, int end)
      Returns a range of all the object validation rules where active = ? and engine = ?.

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

      Parameters:
      active - the active
      engine - the engine
      start - the lower bound of the range of object validation rules
      end - the upper bound of the range of object validation rules (not inclusive)
      Returns:
      the range of matching object validation rules
    • findByA_E

      public static List<ObjectValidationRule> findByA_E(boolean active, String engine, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
      Returns an ordered range of all the object validation rules where active = ? and engine = ?.

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

      Parameters:
      active - the active
      engine - the engine
      start - the lower bound of the range of object validation rules
      end - the upper bound of the range of object validation rules (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching object validation rules
    • findByA_E

      public static List<ObjectValidationRule> findByA_E(boolean active, String engine, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object validation rules where active = ? and engine = ?.

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

      Parameters:
      active - the active
      engine - the engine
      start - the lower bound of the range of object validation rules
      end - the upper bound of the range of object validation rules (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 object validation rules
    • findByA_E_First

      public static ObjectValidationRule findByA_E_First(boolean active, String engine, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
      Returns the first object validation rule in the ordered set where active = ? and engine = ?.
      Parameters:
      active - the active
      engine - the engine
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object validation rule
      Throws:
      NoSuchObjectValidationRuleException - if a matching object validation rule could not be found
      NoSuchObjectValidationRuleException
    • fetchByA_E_First

      public static ObjectValidationRule fetchByA_E_First(boolean active, String engine, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
      Returns the first object validation rule in the ordered set where active = ? and engine = ?.
      Parameters:
      active - the active
      engine - the engine
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching object validation rule, or null if a matching object validation rule could not be found
    • findByA_E_Last

      public static ObjectValidationRule findByA_E_Last(boolean active, String engine, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
      Returns the last object validation rule in the ordered set where active = ? and engine = ?.
      Parameters:
      active - the active
      engine - the engine
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object validation rule
      Throws:
      NoSuchObjectValidationRuleException - if a matching object validation rule could not be found
      NoSuchObjectValidationRuleException
    • fetchByA_E_Last

      public static ObjectValidationRule fetchByA_E_Last(boolean active, String engine, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
      Returns the last object validation rule in the ordered set where active = ? and engine = ?.
      Parameters:
      active - the active
      engine - the engine
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching object validation rule, or null if a matching object validation rule could not be found
    • findByA_E_PrevAndNext

      public static ObjectValidationRule[] findByA_E_PrevAndNext(long objectValidationRuleId, boolean active, String engine, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator) throws NoSuchObjectValidationRuleException
      Returns the object validation rules before and after the current object validation rule in the ordered set where active = ? and engine = ?.
      Parameters:
      objectValidationRuleId - the primary key of the current object validation rule
      active - the active
      engine - the engine
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next object validation rule
      Throws:
      NoSuchObjectValidationRuleException - if a object validation rule with the primary key could not be found
      NoSuchObjectValidationRuleException
    • removeByA_E

      public static void removeByA_E(boolean active, String engine)
      Removes all the object validation rules where active = ? and engine = ? from the database.
      Parameters:
      active - the active
      engine - the engine
    • countByA_E

      public static int countByA_E(boolean active, String engine)
      Returns the number of object validation rules where active = ? and engine = ?.
      Parameters:
      active - the active
      engine - the engine
      Returns:
      the number of matching object validation rules
    • findByERC_C_ODI

      public static ObjectValidationRule findByERC_C_ODI(String externalReferenceCode, long companyId, long objectDefinitionId) throws NoSuchObjectValidationRuleException
      Returns the object validation rule where externalReferenceCode = ? and companyId = ? and objectDefinitionId = ? or throws a NoSuchObjectValidationRuleException if it could not be found.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      objectDefinitionId - the object definition ID
      Returns:
      the matching object validation rule
      Throws:
      NoSuchObjectValidationRuleException - if a matching object validation rule could not be found
      NoSuchObjectValidationRuleException
    • fetchByERC_C_ODI

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

      public static ObjectValidationRule fetchByERC_C_ODI(String externalReferenceCode, long companyId, long objectDefinitionId, boolean useFinderCache)
      Returns the object validation rule where externalReferenceCode = ? and companyId = ? and objectDefinitionId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      objectDefinitionId - the object definition ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching object validation rule, or null if a matching object validation rule could not be found
    • removeByERC_C_ODI

      public static ObjectValidationRule removeByERC_C_ODI(String externalReferenceCode, long companyId, long objectDefinitionId) throws NoSuchObjectValidationRuleException
      Removes the object validation rule where externalReferenceCode = ? and companyId = ? and objectDefinitionId = ? from the database.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      objectDefinitionId - the object definition ID
      Returns:
      the object validation rule that was removed
      Throws:
      NoSuchObjectValidationRuleException
    • countByERC_C_ODI

      public static int countByERC_C_ODI(String externalReferenceCode, long companyId, long objectDefinitionId)
      Returns the number of object validation rules where externalReferenceCode = ? and companyId = ? and objectDefinitionId = ?.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      objectDefinitionId - the object definition ID
      Returns:
      the number of matching object validation rules
    • cacheResult

      public static void cacheResult(ObjectValidationRule objectValidationRule)
      Caches the object validation rule in the entity cache if it is enabled.
      Parameters:
      objectValidationRule - the object validation rule
    • cacheResult

      public static void cacheResult(List<ObjectValidationRule> objectValidationRules)
      Caches the object validation rules in the entity cache if it is enabled.
      Parameters:
      objectValidationRules - the object validation rules
    • create

      public static ObjectValidationRule create(long objectValidationRuleId)
      Creates a new object validation rule with the primary key. Does not add the object validation rule to the database.
      Parameters:
      objectValidationRuleId - the primary key for the new object validation rule
      Returns:
      the new object validation rule
    • remove

      public static ObjectValidationRule remove(long objectValidationRuleId) throws NoSuchObjectValidationRuleException
      Removes the object validation rule with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      objectValidationRuleId - the primary key of the object validation rule
      Returns:
      the object validation rule that was removed
      Throws:
      NoSuchObjectValidationRuleException - if a object validation rule with the primary key could not be found
      NoSuchObjectValidationRuleException
    • updateImpl

      public static ObjectValidationRule updateImpl(ObjectValidationRule objectValidationRule)
    • findByPrimaryKey

      public static ObjectValidationRule findByPrimaryKey(long objectValidationRuleId) throws NoSuchObjectValidationRuleException
      Returns the object validation rule with the primary key or throws a NoSuchObjectValidationRuleException if it could not be found.
      Parameters:
      objectValidationRuleId - the primary key of the object validation rule
      Returns:
      the object validation rule
      Throws:
      NoSuchObjectValidationRuleException - if a object validation rule with the primary key could not be found
      NoSuchObjectValidationRuleException
    • fetchByPrimaryKey

      public static ObjectValidationRule fetchByPrimaryKey(long objectValidationRuleId)
      Returns the object validation rule with the primary key or returns null if it could not be found.
      Parameters:
      objectValidationRuleId - the primary key of the object validation rule
      Returns:
      the object validation rule, or null if a object validation rule with the primary key could not be found
    • findAll

      public static List<ObjectValidationRule> findAll()
      Returns all the object validation rules.
      Returns:
      the object validation rules
    • findAll

      public static List<ObjectValidationRule> findAll(int start, int end)
      Returns a range of all the object validation rules.

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

      Parameters:
      start - the lower bound of the range of object validation rules
      end - the upper bound of the range of object validation rules (not inclusive)
      Returns:
      the range of object validation rules
    • findAll

      public static List<ObjectValidationRule> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator)
      Returns an ordered range of all the object validation rules.

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

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

      public static List<ObjectValidationRule> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectValidationRule> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object validation rules.

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

      Parameters:
      start - the lower bound of the range of object validation rules
      end - the upper bound of the range of object validation rules (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of object validation rules
    • removeAll

      public static void removeAll()
      Removes all the object validation rules from the database.
    • countAll

      public static int countAll()
      Returns the number of object validation rules.
      Returns:
      the number of object validation rules
    • getPersistence

      public static ObjectValidationRulePersistence getPersistence()
    • setPersistence

      public static void setPersistence(ObjectValidationRulePersistence persistence)