Class KaleoDefinitionVersionUtil

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

public class KaleoDefinitionVersionUtil extends Object
The persistence utility for the kaleo definition version service. This utility wraps com.liferay.portal.workflow.kaleo.service.persistence.impl.KaleoDefinitionVersionPersistenceImpl 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

    • KaleoDefinitionVersionUtil

      public KaleoDefinitionVersionUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

      public static KaleoDefinitionVersion update(KaleoDefinitionVersion kaleoDefinitionVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByCompanyId

      public static List<KaleoDefinitionVersion> findByCompanyId(long companyId)
      Returns all the kaleo definition versions where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching kaleo definition versions
    • findByCompanyId

      public static List<KaleoDefinitionVersion> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the kaleo definition versions where companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from KaleoDefinitionVersionModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of kaleo definition versions
      end - the upper bound of the range of kaleo definition versions (not inclusive)
      Returns:
      the range of matching kaleo definition versions
    • findByCompanyId

      public static List<KaleoDefinitionVersion> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
      Returns an ordered range of all the kaleo definition versions where companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from KaleoDefinitionVersionModelImpl.

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

      public static List<KaleoDefinitionVersion> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the kaleo definition versions where companyId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from KaleoDefinitionVersionModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of kaleo definition versions
      end - the upper bound of the range of kaleo definition versions (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 definition versions
    • findByCompanyId_First

      public static KaleoDefinitionVersion findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) throws NoSuchDefinitionVersionException
      Returns the first kaleo definition version in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kaleo definition version
      Throws:
      NoSuchDefinitionVersionException - if a matching kaleo definition version could not be found
      NoSuchDefinitionVersionException
    • fetchByCompanyId_First

      public static KaleoDefinitionVersion fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
      Returns the first kaleo definition version in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kaleo definition version, or null if a matching kaleo definition version could not be found
    • findByCompanyId_Last

      public static KaleoDefinitionVersion findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) throws NoSuchDefinitionVersionException
      Returns the last kaleo definition version in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kaleo definition version
      Throws:
      NoSuchDefinitionVersionException - if a matching kaleo definition version could not be found
      NoSuchDefinitionVersionException
    • fetchByCompanyId_Last

      public static KaleoDefinitionVersion fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
      Returns the last kaleo definition version in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kaleo definition version, or null if a matching kaleo definition version could not be found
    • findByCompanyId_PrevAndNext

      public static KaleoDefinitionVersion[] findByCompanyId_PrevAndNext(long kaleoDefinitionVersionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) throws NoSuchDefinitionVersionException
      Returns the kaleo definition versions before and after the current kaleo definition version in the ordered set where companyId = ?.
      Parameters:
      kaleoDefinitionVersionId - the primary key of the current kaleo definition version
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next kaleo definition version
      Throws:
      NoSuchDefinitionVersionException - if a kaleo definition version with the primary key could not be found
      NoSuchDefinitionVersionException
    • removeByCompanyId

      public static void removeByCompanyId(long companyId)
      Removes all the kaleo definition versions where companyId = ? from the database.
      Parameters:
      companyId - the company ID
    • countByCompanyId

      public static int countByCompanyId(long companyId)
      Returns the number of kaleo definition versions where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching kaleo definition versions
    • findByC_N

      public static List<KaleoDefinitionVersion> findByC_N(long companyId, String name)
      Returns all the kaleo definition versions where companyId = ? and name = ?.
      Parameters:
      companyId - the company ID
      name - the name
      Returns:
      the matching kaleo definition versions
    • findByC_N

      public static List<KaleoDefinitionVersion> findByC_N(long companyId, String name, int start, int end)
      Returns a range of all the kaleo definition versions where companyId = ? and name = ?.

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

      Parameters:
      companyId - the company ID
      name - the name
      start - the lower bound of the range of kaleo definition versions
      end - the upper bound of the range of kaleo definition versions (not inclusive)
      Returns:
      the range of matching kaleo definition versions
    • findByC_N

      public static List<KaleoDefinitionVersion> findByC_N(long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
      Returns an ordered range of all the kaleo definition versions where companyId = ? and name = ?.

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

      Parameters:
      companyId - the company ID
      name - the name
      start - the lower bound of the range of kaleo definition versions
      end - the upper bound of the range of kaleo definition versions (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching kaleo definition versions
    • findByC_N

      public static List<KaleoDefinitionVersion> findByC_N(long companyId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the kaleo definition versions where companyId = ? and name = ?.

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

      Parameters:
      companyId - the company ID
      name - the name
      start - the lower bound of the range of kaleo definition versions
      end - the upper bound of the range of kaleo definition versions (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 definition versions
    • findByC_N_First

      public static KaleoDefinitionVersion findByC_N_First(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) throws NoSuchDefinitionVersionException
      Returns the first kaleo definition version in the ordered set where companyId = ? and name = ?.
      Parameters:
      companyId - the company ID
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kaleo definition version
      Throws:
      NoSuchDefinitionVersionException - if a matching kaleo definition version could not be found
      NoSuchDefinitionVersionException
    • fetchByC_N_First

      public static KaleoDefinitionVersion fetchByC_N_First(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
      Returns the first kaleo definition version in the ordered set where companyId = ? and name = ?.
      Parameters:
      companyId - the company ID
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching kaleo definition version, or null if a matching kaleo definition version could not be found
    • findByC_N_Last

      public static KaleoDefinitionVersion findByC_N_Last(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) throws NoSuchDefinitionVersionException
      Returns the last kaleo definition version in the ordered set where companyId = ? and name = ?.
      Parameters:
      companyId - the company ID
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kaleo definition version
      Throws:
      NoSuchDefinitionVersionException - if a matching kaleo definition version could not be found
      NoSuchDefinitionVersionException
    • fetchByC_N_Last

      public static KaleoDefinitionVersion fetchByC_N_Last(long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
      Returns the last kaleo definition version in the ordered set where companyId = ? and name = ?.
      Parameters:
      companyId - the company ID
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching kaleo definition version, or null if a matching kaleo definition version could not be found
    • findByC_N_PrevAndNext

      public static KaleoDefinitionVersion[] findByC_N_PrevAndNext(long kaleoDefinitionVersionId, long companyId, String name, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator) throws NoSuchDefinitionVersionException
      Returns the kaleo definition versions before and after the current kaleo definition version in the ordered set where companyId = ? and name = ?.
      Parameters:
      kaleoDefinitionVersionId - the primary key of the current kaleo definition version
      companyId - the company ID
      name - the name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next kaleo definition version
      Throws:
      NoSuchDefinitionVersionException - if a kaleo definition version with the primary key could not be found
      NoSuchDefinitionVersionException
    • removeByC_N

      public static void removeByC_N(long companyId, String name)
      Removes all the kaleo definition versions where companyId = ? and name = ? from the database.
      Parameters:
      companyId - the company ID
      name - the name
    • countByC_N

      public static int countByC_N(long companyId, String name)
      Returns the number of kaleo definition versions where companyId = ? and name = ?.
      Parameters:
      companyId - the company ID
      name - the name
      Returns:
      the number of matching kaleo definition versions
    • findByC_N_V

      public static KaleoDefinitionVersion findByC_N_V(long companyId, String name, String version) throws NoSuchDefinitionVersionException
      Returns the kaleo definition version where companyId = ? and name = ? and version = ? or throws a NoSuchDefinitionVersionException if it could not be found.
      Parameters:
      companyId - the company ID
      name - the name
      version - the version
      Returns:
      the matching kaleo definition version
      Throws:
      NoSuchDefinitionVersionException - if a matching kaleo definition version could not be found
      NoSuchDefinitionVersionException
    • fetchByC_N_V

      public static KaleoDefinitionVersion fetchByC_N_V(long companyId, String name, String version)
      Returns the kaleo definition version where companyId = ? and name = ? and version = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      companyId - the company ID
      name - the name
      version - the version
      Returns:
      the matching kaleo definition version, or null if a matching kaleo definition version could not be found
    • fetchByC_N_V

      public static KaleoDefinitionVersion fetchByC_N_V(long companyId, String name, String version, boolean useFinderCache)
      Returns the kaleo definition version where companyId = ? and name = ? and version = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      companyId - the company ID
      name - the name
      version - the version
      useFinderCache - whether to use the finder cache
      Returns:
      the matching kaleo definition version, or null if a matching kaleo definition version could not be found
    • removeByC_N_V

      public static KaleoDefinitionVersion removeByC_N_V(long companyId, String name, String version) throws NoSuchDefinitionVersionException
      Removes the kaleo definition version where companyId = ? and name = ? and version = ? from the database.
      Parameters:
      companyId - the company ID
      name - the name
      version - the version
      Returns:
      the kaleo definition version that was removed
      Throws:
      NoSuchDefinitionVersionException
    • countByC_N_V

      public static int countByC_N_V(long companyId, String name, String version)
      Returns the number of kaleo definition versions where companyId = ? and name = ? and version = ?.
      Parameters:
      companyId - the company ID
      name - the name
      version - the version
      Returns:
      the number of matching kaleo definition versions
    • cacheResult

      public static void cacheResult(KaleoDefinitionVersion kaleoDefinitionVersion)
      Caches the kaleo definition version in the entity cache if it is enabled.
      Parameters:
      kaleoDefinitionVersion - the kaleo definition version
    • cacheResult

      public static void cacheResult(List<KaleoDefinitionVersion> kaleoDefinitionVersions)
      Caches the kaleo definition versions in the entity cache if it is enabled.
      Parameters:
      kaleoDefinitionVersions - the kaleo definition versions
    • create

      public static KaleoDefinitionVersion create(long kaleoDefinitionVersionId)
      Creates a new kaleo definition version with the primary key. Does not add the kaleo definition version to the database.
      Parameters:
      kaleoDefinitionVersionId - the primary key for the new kaleo definition version
      Returns:
      the new kaleo definition version
    • remove

      public static KaleoDefinitionVersion remove(long kaleoDefinitionVersionId) throws NoSuchDefinitionVersionException
      Removes the kaleo definition version with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      kaleoDefinitionVersionId - the primary key of the kaleo definition version
      Returns:
      the kaleo definition version that was removed
      Throws:
      NoSuchDefinitionVersionException - if a kaleo definition version with the primary key could not be found
      NoSuchDefinitionVersionException
    • updateImpl

      public static KaleoDefinitionVersion updateImpl(KaleoDefinitionVersion kaleoDefinitionVersion)
    • findByPrimaryKey

      public static KaleoDefinitionVersion findByPrimaryKey(long kaleoDefinitionVersionId) throws NoSuchDefinitionVersionException
      Returns the kaleo definition version with the primary key or throws a NoSuchDefinitionVersionException if it could not be found.
      Parameters:
      kaleoDefinitionVersionId - the primary key of the kaleo definition version
      Returns:
      the kaleo definition version
      Throws:
      NoSuchDefinitionVersionException - if a kaleo definition version with the primary key could not be found
      NoSuchDefinitionVersionException
    • fetchByPrimaryKey

      public static KaleoDefinitionVersion fetchByPrimaryKey(long kaleoDefinitionVersionId)
      Returns the kaleo definition version with the primary key or returns null if it could not be found.
      Parameters:
      kaleoDefinitionVersionId - the primary key of the kaleo definition version
      Returns:
      the kaleo definition version, or null if a kaleo definition version with the primary key could not be found
    • findAll

      public static List<KaleoDefinitionVersion> findAll()
      Returns all the kaleo definition versions.
      Returns:
      the kaleo definition versions
    • findAll

      public static List<KaleoDefinitionVersion> findAll(int start, int end)
      Returns a range of all the kaleo definition versions.

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

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

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

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

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

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

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

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

      public static void removeAll()
      Removes all the kaleo definition versions from the database.
    • countAll

      public static int countAll()
      Returns the number of kaleo definition versions.
      Returns:
      the number of kaleo definition versions
    • getPersistence

      public static KaleoDefinitionVersionPersistence getPersistence()
    • setPersistence

      public static void setPersistence(KaleoDefinitionVersionPersistence persistence)