Class CTSchemaVersionUtil
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(CTSchemaVersion ctSchemaVersion) Caches the ct schema version in the entity cache if it is enabled.static void
cacheResult
(List<CTSchemaVersion> ctSchemaVersions) Caches the ct schema versions in the entity cache if it is enabled.static void
static void
clearCache
(CTSchemaVersion ctSchemaVersion) static int
countAll()
Returns the number of ct schema versions.static int
countByCompanyId
(long companyId) Returns the number of ct schema versions where companyId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CTSchemaVersion
create
(long schemaVersionId) Creates a new ct schema version with the primary key.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 = ?.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 = ?.static CTSchemaVersion
fetchByPrimaryKey
(long schemaVersionId) Returns the ct schema version with the primary key or returnsnull
if it could not be found.static Map<Serializable,
CTSchemaVersion> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static List<CTSchemaVersion>
findAll()
Returns all the ct schema versions.static List<CTSchemaVersion>
findAll
(int start, int end) Returns a range of all the ct schema versions.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.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.static List<CTSchemaVersion>
findByCompanyId
(long companyId) Returns all the ct schema versions where companyId = ?.static List<CTSchemaVersion>
findByCompanyId
(long companyId, int start, int end) Returns a range of all the ct schema versions where companyId = ?.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 = ?.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 = ?.static CTSchemaVersion
findByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTSchemaVersion> orderByComparator) Returns the first ct schema version in the ordered set where companyId = ?.static CTSchemaVersion
findByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTSchemaVersion> orderByComparator) Returns the last ct schema version in the ordered set where companyId = ?.static CTSchemaVersion[]
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 = ?.static CTSchemaVersion
findByPrimaryKey
(long schemaVersionId) Returns the ct schema version with the primary key or throws aNoSuchSchemaVersionException
if it could not be found.static List<CTSchemaVersion>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CTSchemaVersion>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CTSchemaVersion>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSchemaVersion> orderByComparator) static CTSchemaVersionPersistence
static CTSchemaVersion
remove
(long schemaVersionId) Removes the ct schema version with the primary key from the database.static void
Removes all the ct schema versions from the database.static void
removeByCompanyId
(long companyId) Removes all the ct schema versions where companyId = ? from the database.static void
setPersistence
(CTSchemaVersionPersistence persistence) static CTSchemaVersion
update
(CTSchemaVersion ctSchemaVersion) static CTSchemaVersion
update
(CTSchemaVersion ctSchemaVersion, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CTSchemaVersion
updateImpl
(CTSchemaVersion ctSchemaVersion)
-
Constructor Details
-
CTSchemaVersionUtil
public CTSchemaVersionUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- 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
- 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
- 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
Returns all the ct schema versions where companyId = ?.- Parameters:
companyId
- the company ID- Returns:
- the matching ct schema versions
-
findByCompanyId
Returns a range of all the ct schema versions where companyId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCTSchemaVersionModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of ct schema versionsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCTSchemaVersionModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of ct schema versionsend
- the upper bound of the range of ct schema versions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCTSchemaVersionModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of ct schema versionsend
- the upper bound of the range of ct schema versions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching ct schema version
- Throws:
NoSuchSchemaVersionException
- if a matching ct schema version could not be foundNoSuchSchemaVersionException
-
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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching ct schema version
- Throws:
NoSuchSchemaVersionException
- if a matching ct schema version could not be foundNoSuchSchemaVersionException
-
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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 versioncompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next ct schema version
- Throws:
NoSuchSchemaVersionException
- if a ct schema version with the primary key could not be foundNoSuchSchemaVersionException
-
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
Caches the ct schema version in the entity cache if it is enabled.- Parameters:
ctSchemaVersion
- the ct schema version
-
cacheResult
Caches the ct schema versions in the entity cache if it is enabled.- Parameters:
ctSchemaVersions
- the ct schema versions
-
create
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
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 foundNoSuchSchemaVersionException
-
updateImpl
-
findByPrimaryKey
public static CTSchemaVersion findByPrimaryKey(long schemaVersionId) throws NoSuchSchemaVersionException Returns the ct schema version with the primary key or throws aNoSuchSchemaVersionException
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 foundNoSuchSchemaVersionException
-
fetchByPrimaryKey
Returns the ct schema version with the primary key or returnsnull
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
Returns all the ct schema versions.- Returns:
- the ct schema versions
-
findAll
Returns a range of all the ct schema versions.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCTSchemaVersionModelImpl
.- Parameters:
start
- the lower bound of the range of ct schema versionsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCTSchemaVersionModelImpl
.- Parameters:
start
- the lower bound of the range of ct schema versionsend
- the upper bound of the range of ct schema versions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCTSchemaVersionModelImpl
.- Parameters:
start
- the lower bound of the range of ct schema versionsend
- the upper bound of the range of ct schema versions (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)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
-
setPersistence
-