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

      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

      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

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

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

      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

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

      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

      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

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

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

      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

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

      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

      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

      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