Interface CTSchemaVersionPersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CTSchemaVersion>

@ProviderType public interface CTSchemaVersionPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CTSchemaVersion>
The persistence interface for the ct schema version service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cacheResult(CTSchemaVersion ctSchemaVersion)
    Caches the ct schema version in the entity cache if it is enabled.
    void
    cacheResult(List<CTSchemaVersion> ctSchemaVersions)
    Caches the ct schema versions in the entity cache if it is enabled.
    int
    Returns the number of ct schema versions.
    int
    countByCompanyId(long companyId)
    Returns the number of ct schema versions where companyId = ?.
    create(long schemaVersionId)
    Creates a new ct schema version with the primary key.
    fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTSchemaVersion> orderByComparator)
    Returns the first ct schema version in the ordered set where companyId = ?.
    fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTSchemaVersion> orderByComparator)
    Returns the last ct schema version in the ordered set where companyId = ?.
    fetchByPrimaryKey(long schemaVersionId)
    Returns the ct schema version with the primary key or returns null if it could not be found.
    Returns all the ct schema versions.
    findAll(int start, int end)
    Returns a range of all the ct schema versions.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSchemaVersion> orderByComparator)
    Returns an ordered range of all the ct schema versions.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSchemaVersion> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the ct schema versions.
    findByCompanyId(long companyId)
    Returns all the ct schema versions where companyId = ?.
    findByCompanyId(long companyId, int start, int end)
    Returns a range of all the ct schema versions where companyId = ?.
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSchemaVersion> orderByComparator)
    Returns an ordered range of all the ct schema versions where companyId = ?.
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSchemaVersion> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the ct schema versions where companyId = ?.
    findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTSchemaVersion> orderByComparator)
    Returns the first ct schema version in the ordered set where companyId = ?.
    findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTSchemaVersion> orderByComparator)
    Returns the last ct schema version in the ordered set where companyId = ?.
    findByCompanyId_PrevAndNext(long schemaVersionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTSchemaVersion> orderByComparator)
    Returns the ct schema versions before and after the current ct schema version in the ordered set where companyId = ?.
    findByPrimaryKey(long schemaVersionId)
    Returns the ct schema version with the primary key or throws a NoSuchSchemaVersionException if it could not be found.
    remove(long schemaVersionId)
    Removes the ct schema version with the primary key from the database.
    void
    Removes all the ct schema versions from the database.
    void
    removeByCompanyId(long companyId)
    Removes all the ct schema versions where companyId = ? from the database.
    updateImpl(CTSchemaVersion ctSchemaVersion)
     

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

    clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, 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
  • Method Details

    • findByCompanyId

      List<CTSchemaVersion> findByCompanyId(long companyId)
      Returns all the ct schema versions where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching ct schema versions
    • findByCompanyId

      List<CTSchemaVersion> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the ct schema 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 CTSchemaVersionModelImpl.

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

      List<CTSchemaVersion> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSchemaVersion> orderByComparator)
      Returns an ordered range of all the ct schema 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 CTSchemaVersionModelImpl.

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

      List<CTSchemaVersion> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSchemaVersion> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the ct schema 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 CTSchemaVersionModelImpl.

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

      CTSchemaVersion findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTSchemaVersion> orderByComparator) throws NoSuchSchemaVersionException
      Returns the first ct schema 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 ct schema version
      Throws:
      NoSuchSchemaVersionException - if a matching ct schema version could not be found
    • fetchByCompanyId_First

      CTSchemaVersion fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTSchemaVersion> orderByComparator)
      Returns the first ct schema 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 ct schema version, or null if a matching ct schema version could not be found
    • findByCompanyId_Last

      CTSchemaVersion findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTSchemaVersion> orderByComparator) throws NoSuchSchemaVersionException
      Returns the last ct schema 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 ct schema version
      Throws:
      NoSuchSchemaVersionException - if a matching ct schema version could not be found
    • fetchByCompanyId_Last

      CTSchemaVersion fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTSchemaVersion> orderByComparator)
      Returns the last ct schema 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 ct schema version, or null if a matching ct schema version could not be found
    • findByCompanyId_PrevAndNext

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

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

      int countByCompanyId(long companyId)
      Returns the number of ct schema versions where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching ct schema versions
    • cacheResult

      void cacheResult(CTSchemaVersion ctSchemaVersion)
      Caches the ct schema version in the entity cache if it is enabled.
      Parameters:
      ctSchemaVersion - the ct schema version
    • cacheResult

      void cacheResult(List<CTSchemaVersion> ctSchemaVersions)
      Caches the ct schema versions in the entity cache if it is enabled.
      Parameters:
      ctSchemaVersions - the ct schema versions
    • create

      CTSchemaVersion create(long schemaVersionId)
      Creates a new ct schema version with the primary key. Does not add the ct schema version to the database.
      Parameters:
      schemaVersionId - the primary key for the new ct schema version
      Returns:
      the new ct schema version
    • remove

      CTSchemaVersion remove(long schemaVersionId) throws NoSuchSchemaVersionException
      Removes the ct schema version with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      schemaVersionId - the primary key of the ct schema version
      Returns:
      the ct schema version that was removed
      Throws:
      NoSuchSchemaVersionException - if a ct schema version with the primary key could not be found
    • updateImpl

      CTSchemaVersion updateImpl(CTSchemaVersion ctSchemaVersion)
    • findByPrimaryKey

      CTSchemaVersion findByPrimaryKey(long schemaVersionId) throws NoSuchSchemaVersionException
      Returns the ct schema version with the primary key or throws a NoSuchSchemaVersionException if it could not be found.
      Parameters:
      schemaVersionId - the primary key of the ct schema version
      Returns:
      the ct schema version
      Throws:
      NoSuchSchemaVersionException - if a ct schema version with the primary key could not be found
    • fetchByPrimaryKey

      CTSchemaVersion fetchByPrimaryKey(long schemaVersionId)
      Returns the ct schema version with the primary key or returns null if it could not be found.
      Parameters:
      schemaVersionId - the primary key of the ct schema version
      Returns:
      the ct schema version, or null if a ct schema version with the primary key could not be found
    • findAll

      List<CTSchemaVersion> findAll()
      Returns all the ct schema versions.
      Returns:
      the ct schema versions
    • findAll

      List<CTSchemaVersion> findAll(int start, int end)
      Returns a range of all the ct schema 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 CTSchemaVersionModelImpl.

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

      List<CTSchemaVersion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSchemaVersion> orderByComparator)
      Returns an ordered range of all the ct schema 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 CTSchemaVersionModelImpl.

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

      List<CTSchemaVersion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSchemaVersion> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the ct schema 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 CTSchemaVersionModelImpl.

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

      void removeAll()
      Removes all the ct schema versions from the database.
    • countAll

      int countAll()
      Returns the number of ct schema versions.
      Returns:
      the number of ct schema versions