Class CTSchemaVersionUtil

java.lang.Object
com.liferay.change.tracking.service.persistence.CTSchemaVersionUtil

public class CTSchemaVersionUtil extends Object
The persistence utility for the ct schema version service. This utility wraps com.liferay.change.tracking.service.persistence.impl.CTSchemaVersionPersistenceImpl 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

    • CTSchemaVersionUtil

      public CTSchemaVersionUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

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

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

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

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

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

      public static 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
      NoSuchSchemaVersionException
    • fetchByCompanyId_First

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

      public static 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
      NoSuchSchemaVersionException
    • fetchByCompanyId_Last

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

      public static 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
      NoSuchSchemaVersionException
    • removeByCompanyId

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

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

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

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

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

      public static 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
      NoSuchSchemaVersionException
    • updateImpl

      public static CTSchemaVersion updateImpl(CTSchemaVersion ctSchemaVersion)
    • findByPrimaryKey

      public static 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
      NoSuchSchemaVersionException
    • fetchByPrimaryKey

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

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

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

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

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

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

      public static int countAll()
      Returns the number of ct schema versions.
      Returns:
      the number of ct schema versions
    • getPersistence

      public static CTSchemaVersionPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CTSchemaVersionPersistence persistence)