Class ObjectDefinitionSettingUtil

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

public class ObjectDefinitionSettingUtil extends Object
The persistence utility for the object definition setting service. This utility wraps com.liferay.object.service.persistence.impl.ObjectDefinitionSettingPersistenceImpl 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

    • ObjectDefinitionSettingUtil

      public ObjectDefinitionSettingUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

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

      public static List<ObjectDefinitionSetting> findByUuid(String uuid)
      Returns all the object definition settings where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching object definition settings
    • findByUuid

      public static List<ObjectDefinitionSetting> findByUuid(String uuid, int start, int end)
      Returns a range of all the object definition settings 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 ObjectDefinitionSettingModelImpl.

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static List<ObjectDefinitionSetting> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the object definition settings 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 ObjectDefinitionSettingModelImpl.

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

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

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

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

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

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

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

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

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

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

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

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

      public static List<ObjectDefinitionSetting> findByObjectDefinitionId(long objectDefinitionId, int start, int end)
      Returns a range of all the object definition settings 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 ObjectDefinitionSettingModelImpl.

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

      public static List<ObjectDefinitionSetting> findByObjectDefinitionId(long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectDefinitionSetting> orderByComparator)
      Returns an ordered range of all the object definition settings 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 ObjectDefinitionSettingModelImpl.

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

      public static List<ObjectDefinitionSetting> findByObjectDefinitionId(long objectDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<ObjectDefinitionSetting> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the object definition settings 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 ObjectDefinitionSettingModelImpl.

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

      public static ObjectDefinitionSetting findByObjectDefinitionId_First(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectDefinitionSetting> orderByComparator) throws NoSuchObjectDefinitionSettingException
      Returns the first object definition setting 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 definition setting
      Throws:
      NoSuchObjectDefinitionSettingException - if a matching object definition setting could not be found
      NoSuchObjectDefinitionSettingException
    • fetchByObjectDefinitionId_First

      public static ObjectDefinitionSetting fetchByObjectDefinitionId_First(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectDefinitionSetting> orderByComparator)
      Returns the first object definition setting 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 definition setting, or null if a matching object definition setting could not be found
    • findByObjectDefinitionId_Last

      public static ObjectDefinitionSetting findByObjectDefinitionId_Last(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectDefinitionSetting> orderByComparator) throws NoSuchObjectDefinitionSettingException
      Returns the last object definition setting 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 definition setting
      Throws:
      NoSuchObjectDefinitionSettingException - if a matching object definition setting could not be found
      NoSuchObjectDefinitionSettingException
    • fetchByObjectDefinitionId_Last

      public static ObjectDefinitionSetting fetchByObjectDefinitionId_Last(long objectDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<ObjectDefinitionSetting> orderByComparator)
      Returns the last object definition setting 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 definition setting, or null if a matching object definition setting could not be found
    • findByObjectDefinitionId_PrevAndNext

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

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

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

      public static ObjectDefinitionSetting findByODI_N(long objectDefinitionId, String name) throws NoSuchObjectDefinitionSettingException
      Returns the object definition setting where objectDefinitionId = ? and name = ? or throws a NoSuchObjectDefinitionSettingException if it could not be found.
      Parameters:
      objectDefinitionId - the object definition ID
      name - the name
      Returns:
      the matching object definition setting
      Throws:
      NoSuchObjectDefinitionSettingException - if a matching object definition setting could not be found
      NoSuchObjectDefinitionSettingException
    • fetchByODI_N

      public static ObjectDefinitionSetting fetchByODI_N(long objectDefinitionId, String name)
      Returns the object definition setting where objectDefinitionId = ? and name = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      objectDefinitionId - the object definition ID
      name - the name
      Returns:
      the matching object definition setting, or null if a matching object definition setting could not be found
    • fetchByODI_N

      public static ObjectDefinitionSetting fetchByODI_N(long objectDefinitionId, String name, boolean useFinderCache)
      Returns the object definition setting where objectDefinitionId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      objectDefinitionId - the object definition ID
      name - the name
      useFinderCache - whether to use the finder cache
      Returns:
      the matching object definition setting, or null if a matching object definition setting could not be found
    • removeByODI_N

      public static ObjectDefinitionSetting removeByODI_N(long objectDefinitionId, String name) throws NoSuchObjectDefinitionSettingException
      Removes the object definition setting where objectDefinitionId = ? and name = ? from the database.
      Parameters:
      objectDefinitionId - the object definition ID
      name - the name
      Returns:
      the object definition setting that was removed
      Throws:
      NoSuchObjectDefinitionSettingException
    • countByODI_N

      public static int countByODI_N(long objectDefinitionId, String name)
      Returns the number of object definition settings where objectDefinitionId = ? and name = ?.
      Parameters:
      objectDefinitionId - the object definition ID
      name - the name
      Returns:
      the number of matching object definition settings
    • cacheResult

      public static void cacheResult(ObjectDefinitionSetting objectDefinitionSetting)
      Caches the object definition setting in the entity cache if it is enabled.
      Parameters:
      objectDefinitionSetting - the object definition setting
    • cacheResult

      public static void cacheResult(List<ObjectDefinitionSetting> objectDefinitionSettings)
      Caches the object definition settings in the entity cache if it is enabled.
      Parameters:
      objectDefinitionSettings - the object definition settings
    • create

      public static ObjectDefinitionSetting create(long objectDefinitionSettingId)
      Creates a new object definition setting with the primary key. Does not add the object definition setting to the database.
      Parameters:
      objectDefinitionSettingId - the primary key for the new object definition setting
      Returns:
      the new object definition setting
    • remove

      public static ObjectDefinitionSetting remove(long objectDefinitionSettingId) throws NoSuchObjectDefinitionSettingException
      Removes the object definition setting with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      objectDefinitionSettingId - the primary key of the object definition setting
      Returns:
      the object definition setting that was removed
      Throws:
      NoSuchObjectDefinitionSettingException - if a object definition setting with the primary key could not be found
      NoSuchObjectDefinitionSettingException
    • updateImpl

      public static ObjectDefinitionSetting updateImpl(ObjectDefinitionSetting objectDefinitionSetting)
    • findByPrimaryKey

      public static ObjectDefinitionSetting findByPrimaryKey(long objectDefinitionSettingId) throws NoSuchObjectDefinitionSettingException
      Returns the object definition setting with the primary key or throws a NoSuchObjectDefinitionSettingException if it could not be found.
      Parameters:
      objectDefinitionSettingId - the primary key of the object definition setting
      Returns:
      the object definition setting
      Throws:
      NoSuchObjectDefinitionSettingException - if a object definition setting with the primary key could not be found
      NoSuchObjectDefinitionSettingException
    • fetchByPrimaryKey

      public static ObjectDefinitionSetting fetchByPrimaryKey(long objectDefinitionSettingId)
      Returns the object definition setting with the primary key or returns null if it could not be found.
      Parameters:
      objectDefinitionSettingId - the primary key of the object definition setting
      Returns:
      the object definition setting, or null if a object definition setting with the primary key could not be found
    • findAll

      public static List<ObjectDefinitionSetting> findAll()
      Returns all the object definition settings.
      Returns:
      the object definition settings
    • findAll

      public static List<ObjectDefinitionSetting> findAll(int start, int end)
      Returns a range of all the object definition settings.

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

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

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

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

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

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

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

      Parameters:
      start - the lower bound of the range of object definition settings
      end - the upper bound of the range of object definition settings (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 definition settings
    • removeAll

      public static void removeAll()
      Removes all the object definition settings from the database.
    • countAll

      public static int countAll()
      Returns the number of object definition settings.
      Returns:
      the number of object definition settings
    • getPersistence

      public static ObjectDefinitionSettingPersistence getPersistence()
    • setPersistence

      public static void setPersistence(ObjectDefinitionSettingPersistence persistence)