Class KaleoNodeSettingUtil

java.lang.Object
com.liferay.portal.workflow.kaleo.service.persistence.KaleoNodeSettingUtil

public class KaleoNodeSettingUtil extends Object
The persistence utility for the kaleo node setting service. This utility wraps com.liferay.portal.workflow.kaleo.service.persistence.impl.KaleoNodeSettingPersistenceImpl 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

    • KaleoNodeSettingUtil

      public KaleoNodeSettingUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

      public static KaleoNodeSetting update(KaleoNodeSetting kaleoNodeSetting, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByKaleoNodeId

      public static List<KaleoNodeSetting> findByKaleoNodeId(long kaleoNodeId)
      Returns all the kaleo node settings where kaleoNodeId = ?.
      Parameters:
      kaleoNodeId - the kaleo node ID
      Returns:
      the matching kaleo node settings
    • findByKaleoNodeId

      public static List<KaleoNodeSetting> findByKaleoNodeId(long kaleoNodeId, int start, int end)
      Returns a range of all the kaleo node settings where kaleoNodeId = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.workflow.kaleo.model.impl.KaleoNodeSettingModelImpl.

      Parameters:
      kaleoNodeId - the kaleo node ID
      start - the lower bound of the range of kaleo node settings
      end - the upper bound of the range of kaleo node settings (not inclusive)
      Returns:
      the range of matching kaleo node settings
    • findByKaleoNodeId

      public static List<KaleoNodeSetting> findByKaleoNodeId(long kaleoNodeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoNodeSetting> orderByComparator)
      Returns an ordered range of all the kaleo node settings where kaleoNodeId = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.workflow.kaleo.model.impl.KaleoNodeSettingModelImpl.

      Parameters:
      kaleoNodeId - the kaleo node ID
      start - the lower bound of the range of kaleo node settings
      end - the upper bound of the range of kaleo node settings (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching kaleo node settings
    • findByKaleoNodeId

      public static List<KaleoNodeSetting> findByKaleoNodeId(long kaleoNodeId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoNodeSetting> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the kaleo node settings where kaleoNodeId = ?.

      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 com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.workflow.kaleo.model.impl.KaleoNodeSettingModelImpl.

      Parameters:
      kaleoNodeId - the kaleo node ID
      start - the lower bound of the range of kaleo node settings
      end - the upper bound of the range of kaleo node 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 kaleo node settings
    • findByKaleoNodeId_First

      public static KaleoNodeSetting findByKaleoNodeId_First(long kaleoNodeId, com.liferay.portal.kernel.util.OrderByComparator<KaleoNodeSetting> orderByComparator) throws NoSuchNodeSettingException
      Returns the first kaleo node setting in the ordered set where kaleoNodeId = ?.
      Parameters:
      kaleoNodeId - the kaleo node ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kaleo node setting
    • fetchByKaleoNodeId_First

      public static KaleoNodeSetting fetchByKaleoNodeId_First(long kaleoNodeId, com.liferay.portal.kernel.util.OrderByComparator<KaleoNodeSetting> orderByComparator)
      Returns the first kaleo node setting in the ordered set where kaleoNodeId = ?.
      Parameters:
      kaleoNodeId - the kaleo node ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kaleo node setting, or null if a matching kaleo node setting could not be found
    • removeByKaleoNodeId

      public static void removeByKaleoNodeId(long kaleoNodeId)
      Removes all the kaleo node settings where kaleoNodeId = ? from the database.
      Parameters:
      kaleoNodeId - the kaleo node ID
    • countByKaleoNodeId

      public static int countByKaleoNodeId(long kaleoNodeId)
      Returns the number of kaleo node settings where kaleoNodeId = ?.
      Parameters:
      kaleoNodeId - the kaleo node ID
      Returns:
      the number of matching kaleo node settings
    • findByKNI_N

      public static KaleoNodeSetting findByKNI_N(long kaleoNodeId, String name) throws NoSuchNodeSettingException
      Returns the kaleo node setting where kaleoNodeId = ? and name = ? or throws a NoSuchNodeSettingException if it could not be found.
      Parameters:
      kaleoNodeId - the kaleo node ID
      name - the name
      Returns:
      the matching kaleo node setting
    • fetchByKNI_N

      public static KaleoNodeSetting fetchByKNI_N(long kaleoNodeId, String name)
      Returns the kaleo node setting where kaleoNodeId = ? and name = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      kaleoNodeId - the kaleo node ID
      name - the name
      Returns:
      the matching kaleo node setting, or null if a matching kaleo node setting could not be found
    • fetchByKNI_N

      public static KaleoNodeSetting fetchByKNI_N(long kaleoNodeId, String name, boolean useFinderCache)
      Returns the kaleo node setting where kaleoNodeId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      kaleoNodeId - the kaleo node ID
      name - the name
      useFinderCache - whether to use the finder cache
      Returns:
      the matching kaleo node setting, or null if a matching kaleo node setting could not be found
    • removeByKNI_N

      public static KaleoNodeSetting removeByKNI_N(long kaleoNodeId, String name) throws NoSuchNodeSettingException
      Removes the kaleo node setting where kaleoNodeId = ? and name = ? from the database.
      Parameters:
      kaleoNodeId - the kaleo node ID
      name - the name
      Returns:
      the kaleo node setting that was removed
      Throws:
      NoSuchNodeSettingException
    • countByKNI_N

      public static int countByKNI_N(long kaleoNodeId, String name)
      Returns the number of kaleo node settings where kaleoNodeId = ? and name = ?.
      Parameters:
      kaleoNodeId - the kaleo node ID
      name - the name
      Returns:
      the number of matching kaleo node settings
    • cacheResult

      public static void cacheResult(KaleoNodeSetting kaleoNodeSetting)
      Caches the kaleo node setting in the entity cache if it is enabled.
      Parameters:
      kaleoNodeSetting - the kaleo node setting
    • cacheResult

      public static void cacheResult(List<KaleoNodeSetting> kaleoNodeSettings)
      Caches the kaleo node settings in the entity cache if it is enabled.
      Parameters:
      kaleoNodeSettings - the kaleo node settings
    • create

      public static KaleoNodeSetting create(long kaleoNodeSettingId)
      Creates a new kaleo node setting with the primary key. Does not add the kaleo node setting to the database.
      Parameters:
      kaleoNodeSettingId - the primary key for the new kaleo node setting
      Returns:
      the new kaleo node setting
    • remove

      public static KaleoNodeSetting remove(long kaleoNodeSettingId) throws NoSuchNodeSettingException
      Removes the kaleo node setting with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      kaleoNodeSettingId - the primary key of the kaleo node setting
      Returns:
      the kaleo node setting that was removed
    • updateImpl

      public static KaleoNodeSetting updateImpl(KaleoNodeSetting kaleoNodeSetting)
    • findByPrimaryKey

      public static KaleoNodeSetting findByPrimaryKey(long kaleoNodeSettingId) throws NoSuchNodeSettingException
      Returns the kaleo node setting with the primary key or throws a NoSuchNodeSettingException if it could not be found.
      Parameters:
      kaleoNodeSettingId - the primary key of the kaleo node setting
      Returns:
      the kaleo node setting
    • fetchByPrimaryKey

      public static KaleoNodeSetting fetchByPrimaryKey(long kaleoNodeSettingId)
      Returns the kaleo node setting with the primary key or returns null if it could not be found.
      Parameters:
      kaleoNodeSettingId - the primary key of the kaleo node setting
      Returns:
      the kaleo node setting, or null if a kaleo node setting with the primary key could not be found
    • findAll

      public static List<KaleoNodeSetting> findAll()
      Returns all the kaleo node settings.
      Returns:
      the kaleo node settings
    • findAll

      public static List<KaleoNodeSetting> findAll(int start, int end)
      Returns a range of all the kaleo node 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.workflow.kaleo.model.impl.KaleoNodeSettingModelImpl.

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

      public static List<KaleoNodeSetting> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoNodeSetting> orderByComparator)
      Returns an ordered range of all the kaleo node 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.workflow.kaleo.model.impl.KaleoNodeSettingModelImpl.

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

      public static List<KaleoNodeSetting> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoNodeSetting> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the kaleo node 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.portal.workflow.kaleo.model.impl.KaleoNodeSettingModelImpl.

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

      public static void removeAll()
      Removes all the kaleo node settings from the database.
    • countAll

      public static int countAll()
      Returns the number of kaleo node settings.
      Returns:
      the number of kaleo node settings
    • getPersistence

      public static KaleoNodeSettingPersistence getPersistence()
    • setPersistence

      public static void setPersistence(KaleoNodeSettingPersistence persistence)