@ProviderType public interface CTSchemaVersionPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CTSchemaVersion>
Caching information and settings can be found in portal.properties
CTSchemaVersionUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CTSchemaVersion ctSchemaVersion)
Caches the ct schema version in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CTSchemaVersion> ctSchemaVersions)
Caches the ct schema versions in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of ct schema versions.
|
int |
countByCompanyId(long companyId)
Returns the number of ct schema versions where companyId = ?.
|
CTSchemaVersion |
create(long schemaVersionId)
Creates a new ct schema version with the primary key.
|
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 = ?.
|
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 = ?.
|
CTSchemaVersion |
fetchByPrimaryKey(long schemaVersionId)
Returns the ct schema version with the primary key or returns
null if it could not be found. |
java.util.List<CTSchemaVersion> |
findAll()
Returns all the ct schema versions.
|
java.util.List<CTSchemaVersion> |
findAll(int start,
int end)
Returns a range of all the ct schema versions.
|
java.util.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.
|
java.util.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.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CTSchemaVersion> |
findByCompanyId(long companyId)
Returns all the ct schema versions where companyId = ?.
|
java.util.List<CTSchemaVersion> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the ct schema versions where companyId = ?.
|
java.util.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 = ?.
|
java.util.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 = ?.
|
CTSchemaVersion |
findByPrimaryKey(long schemaVersionId)
Returns the ct schema version with the primary key or throws a
NoSuchSchemaVersionException if it could not be found. |
CTSchemaVersion |
remove(long schemaVersionId)
Removes the ct schema version with the primary key from the database.
|
void |
removeAll()
Removes all the ct schema versions from the database.
|
void |
removeByCompanyId(long companyId)
Removes all the ct schema versions where companyId = ? from the database.
|
CTSchemaVersion |
updateImpl(CTSchemaVersion ctSchemaVersion) |
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, setDataSource, unregisterListener, update, update
java.util.List<CTSchemaVersion> findByCompanyId(long companyId)
companyId
- the company IDjava.util.List<CTSchemaVersion> findByCompanyId(long companyId, int start, int end)
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
.
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)java.util.List<CTSchemaVersion> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSchemaVersion> orderByComparator)
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
.
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 (optionally null
)java.util.List<CTSchemaVersion> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSchemaVersion> orderByComparator, boolean useFinderCache)
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
.
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 (optionally null
)useFinderCache
- whether to use the finder cacheCTSchemaVersion findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTSchemaVersion> orderByComparator) throws NoSuchSchemaVersionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSchemaVersionException
- if a matching ct schema version could not be foundCTSchemaVersion fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTSchemaVersion> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct schema version could not be foundCTSchemaVersion findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTSchemaVersion> orderByComparator) throws NoSuchSchemaVersionException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSchemaVersionException
- if a matching ct schema version could not be foundCTSchemaVersion fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTSchemaVersion> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ct schema version could not be foundCTSchemaVersion[] findByCompanyId_PrevAndNext(long schemaVersionId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CTSchemaVersion> orderByComparator) throws NoSuchSchemaVersionException
schemaVersionId
- the primary key of the current ct schema versioncompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchSchemaVersionException
- if a ct schema version with the primary key could not be foundvoid removeByCompanyId(long companyId)
companyId
- the company IDint countByCompanyId(long companyId)
companyId
- the company IDvoid cacheResult(CTSchemaVersion ctSchemaVersion)
ctSchemaVersion
- the ct schema versionvoid cacheResult(java.util.List<CTSchemaVersion> ctSchemaVersions)
ctSchemaVersions
- the ct schema versionsCTSchemaVersion create(long schemaVersionId)
schemaVersionId
- the primary key for the new ct schema versionCTSchemaVersion remove(long schemaVersionId) throws NoSuchSchemaVersionException
schemaVersionId
- the primary key of the ct schema versionNoSuchSchemaVersionException
- if a ct schema version with the primary key could not be foundCTSchemaVersion updateImpl(CTSchemaVersion ctSchemaVersion)
CTSchemaVersion findByPrimaryKey(long schemaVersionId) throws NoSuchSchemaVersionException
NoSuchSchemaVersionException
if it could not be found.schemaVersionId
- the primary key of the ct schema versionNoSuchSchemaVersionException
- if a ct schema version with the primary key could not be foundCTSchemaVersion fetchByPrimaryKey(long schemaVersionId)
null
if it could not be found.schemaVersionId
- the primary key of the ct schema versionnull
if a ct schema version with the primary key could not be foundjava.util.List<CTSchemaVersion> findAll()
java.util.List<CTSchemaVersion> findAll(int start, int end)
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
.
start
- the lower bound of the range of ct schema versionsend
- the upper bound of the range of ct schema versions (not inclusive)java.util.List<CTSchemaVersion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSchemaVersion> orderByComparator)
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
.
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 (optionally null
)java.util.List<CTSchemaVersion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTSchemaVersion> orderByComparator, boolean useFinderCache)
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
.
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 (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()