Interface CTSchemaVersionPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CTSchemaVersion>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionintcountByCompanyId(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 = ?.fetchByPrimaryKey(long schemaVersionId) Returns the ct schema version with the primary key or returnsnullif it could not be found.default List<CTSchemaVersion> findByCompanyId(long companyId) Returns all the ct schema versions where companyId = ?.default List<CTSchemaVersion> findByCompanyId(long companyId, int start, int end) Returns a range of all the ct schema versions where companyId = ?.default 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 = ?.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 = ?.findByPrimaryKey(long schemaVersionId) Returns the ct schema version with the primary key or throws aNoSuchSchemaVersionExceptionif it could not be found.remove(long schemaVersionId) Removes the ct schema version with the primary key from the database.voidremoveByCompanyId(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
cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.change.tracking.model.impl.CTSchemaVersionModelImpl.- 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
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 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching ct schema version, or
nullif a matching ct schema version 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
-
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 found
-
updateImpl
-
findByPrimaryKey
Returns the ct schema version with the primary key or throws aNoSuchSchemaVersionExceptionif 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
Returns the ct schema version with the primary key or returnsnullif it could not be found.- Parameters:
schemaVersionId- the primary key of the ct schema version- Returns:
- the ct schema version, or
nullif a ct schema version with the primary key could not be found
-
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.change.tracking.model.impl.CTSchemaVersionModelImpl.- 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
default 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.change.tracking.model.impl.CTSchemaVersionModelImpl.- 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
-