Class SAPHANADatabase
- java.lang.Object
-
- migratedb.core.internal.database.base.BaseDatabase<SAPHANAConnection>
-
- migratedb.core.internal.database.saphana.SAPHANADatabase
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Database<SAPHANAConnection>
public class SAPHANADatabase extends BaseDatabase<SAPHANAConnection>
SAP HANA database.
-
-
Field Summary
-
Fields inherited from class migratedb.core.internal.database.base.BaseDatabase
configuration, databaseType, jdbcConnectionFactory, jdbcMetaData, jdbcTemplate, rawMainJdbcConnection
-
-
Constructor Summary
Constructors Constructor Description SAPHANADatabase(Configuration configuration, JdbcConnectionFactory jdbcConnectionFactory)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancatalogIsSchema()protected SAPHANAConnectiondoGetConnection(Connection connection)Retrieves a MigrateDB Connection for this JDBC connection.voidensureSupported()Ensure MigrateDB supports this version of this database.StringgetBooleanFalse()StringgetBooleanTrue()StringgetRawCreateScript(Table<?,?> table, boolean baseline)booleansupportsChangingCurrentSchema()booleansupportsDdlTransactions()-
Methods inherited from class migratedb.core.internal.database.base.BaseDatabase
cleanPostSchemas, cleanPreSchemas, close, computeVersionDisplayName, determineVersion, doCleanPostSchemas, doCleanPreSchemas, doGetCatalog, doGetCurrentUser, doQuote, ensureDatabaseIsRecentEnough, getAllSchemas, getBaselineStatement, getCatalog, getCloseQuote, getCreateScript, getCurrentUser, getDatabaseType, getDefaultDelimiter, getEscapedQuote, getInsertStatement, getInstalledBy, getJdbcMetaData, getMainConnection, getMigrationConnection, getOpenQuote, getSelectStatement, getVersion, quote, recommendMigrateDbUpgradeIfNecessary, recommendMigrateDbUpgradeIfNecessaryForMajorVersion, supportsEmptyMigrationDescription, supportsMultiStatementTransactions, unQuote, useSingleConnection
-
-
-
-
Constructor Detail
-
SAPHANADatabase
public SAPHANADatabase(Configuration configuration, JdbcConnectionFactory jdbcConnectionFactory)
Creates a new instance.
-
-
Method Detail
-
doGetConnection
protected SAPHANAConnection doGetConnection(Connection connection)
Description copied from class:BaseDatabaseRetrieves a MigrateDB Connection for this JDBC connection.- Specified by:
doGetConnectionin classBaseDatabase<SAPHANAConnection>
-
ensureSupported
public void ensureSupported()
Description copied from interface:DatabaseEnsure MigrateDB supports this version of this database.
-
supportsDdlTransactions
public boolean supportsDdlTransactions()
-
supportsChangingCurrentSchema
public boolean supportsChangingCurrentSchema()
-
getBooleanTrue
public String getBooleanTrue()
- Returns:
- The representation of the value
truein a boolean column.
-
getBooleanFalse
public String getBooleanFalse()
- Returns:
- The representation of the value
falsein a boolean column.
-
catalogIsSchema
public boolean catalogIsSchema()
- Returns:
trueif this database uses a catalog to represent a schema, orfalseif a schema is simply a schema.
-
-