Interface KaleoDefinitionVersionPersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<KaleoDefinitionVersion>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<KaleoDefinitionVersion>

@ProviderType public interface KaleoDefinitionVersionPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<KaleoDefinitionVersion>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<KaleoDefinitionVersion>
The persistence interface for the kaleo definition version service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cacheResult(KaleoDefinitionVersion kaleoDefinitionVersion)
    Caches the kaleo definition version in the entity cache if it is enabled.
    void
    cacheResult(List<KaleoDefinitionVersion> kaleoDefinitionVersions)
    Caches the kaleo definition versions in the entity cache if it is enabled.
    int
    Returns the number of kaleo definition versions.
    int
    countByC_N(long companyId, String name)
    Returns the number of kaleo definition versions where companyId = ? and name = ?.
    int
    countByC_N_V(long companyId, String name, String version)
    Returns the number of kaleo definition versions where companyId = ? and name = ? and version = ?.
    int
    countByCompanyId(long companyId)
    Returns the number of kaleo definition versions where companyId = ?.
    create(long kaleoDefinitionVersionId)
    Creates a new kaleo definition version with the primary key.
    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 = ?.
    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.
    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.
    fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
    Returns the first kaleo definition version in the ordered set where companyId = ?.
    fetchByPrimaryKey(long kaleoDefinitionVersionId)
    Returns the kaleo definition version with the primary key or returns null if it could not be found.
    Returns all the kaleo definition versions.
    findAll(int start, int end)
    Returns a range of all the kaleo definition versions.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
    Returns an ordered range of all the kaleo definition versions.
    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.
    findByC_N(long companyId, String name)
    Returns all the kaleo definition versions where companyId = ? and name = ?.
    findByC_N(long companyId, String name, int start, int end)
    Returns a range of all the kaleo definition versions where companyId = ? and name = ?.
    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 = ?.
    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 = ?.
    findByC_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 = ?.
    findByC_N_V(long companyId, String name, String version)
    Returns the kaleo definition version where companyId = ? and name = ? and version = ? or throws a NoSuchDefinitionVersionException if it could not be found.
    findByCompanyId(long companyId)
    Returns all the kaleo definition versions where companyId = ?.
    findByCompanyId(long companyId, int start, int end)
    Returns a range of all the kaleo definition versions where companyId = ?.
    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 = ?.
    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 = ?.
    findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<KaleoDefinitionVersion> orderByComparator)
    Returns the first kaleo definition version in the ordered set where companyId = ?.
    findByPrimaryKey(long kaleoDefinitionVersionId)
    Returns the kaleo definition version with the primary key or throws a NoSuchDefinitionVersionException if it could not be found.
    remove(long kaleoDefinitionVersionId)
    Removes the kaleo definition version with the primary key from the database.
    void
    Removes all the kaleo definition versions from the database.
    void
    removeByC_N(long companyId, String name)
    Removes all the kaleo definition versions where companyId = ? and name = ? from the database.
    removeByC_N_V(long companyId, String name, String version)
    Removes the kaleo definition version where companyId = ? and name = ? and version = ? from the database.
    void
    removeByCompanyId(long companyId)
    Removes all the kaleo definition versions where companyId = ? from the database.
    updateImpl(KaleoDefinitionVersion kaleoDefinitionVersion)
     

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence

    clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence

    getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
  • Method Details

    • findByCompanyId

      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

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

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

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

      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
    • fetchByCompanyId_First

      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
    • removeByCompanyId

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

      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

      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

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

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

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

      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
    • fetchByC_N_First

      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
    • removeByC_N

      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

      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

      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
    • fetchByC_N_V

      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

      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

      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

      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

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

      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

      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

      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
    • updateImpl

      KaleoDefinitionVersion updateImpl(KaleoDefinitionVersion kaleoDefinitionVersion)
    • findByPrimaryKey

      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
    • fetchByPrimaryKey

      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

      Returns all the kaleo definition versions.
      Returns:
      the kaleo definition versions
    • findAll

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

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

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

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

      int countAll()
      Returns the number of kaleo definition versions.
      Returns:
      the number of kaleo definition versions