public class ColumnAutoIncrementService extends Object
Constructor and Description |
---|
ColumnAutoIncrementService() |
Modifier and Type | Method and Description |
---|---|
Column |
enableColumnAutoIncrementIfAvailable(Column column,
Database database,
CachedRow columnMetadataResultSet,
String rawCatalogName,
String rawSchemaName,
String rawTableName,
String rawColumnName)
Verify if a column has auto increment capabilities and set the autoIncrement field with a placeholder object (starts
with 1, increment 1)
|
Map<String,Column.AutoIncrementInformation> |
obtainSequencesInformation(Database database,
DatabaseSnapshot snapshot)
If the database support autoincrement columns details (as starts with and increment by), this method returns the
detailed information about them.
|
public Map<String,Column.AutoIncrementInformation> obtainSequencesInformation(Database database, DatabaseSnapshot snapshot)
database
- the database connectionsnapshot
- snapshot data used to store cache information.public Column enableColumnAutoIncrementIfAvailable(Column column, Database database, CachedRow columnMetadataResultSet, String rawCatalogName, String rawSchemaName, String rawTableName, String rawColumnName) throws SQLException
SQLException
Copyright © 2023 Liquibase.org. All rights reserved.