API 1.9.15-SNAPSHOT¶
Base Package: com.manticore.h2
Base¶
Recovery¶
extends: Object
Recovery ()
main (args)
String[] args
Base¶
Type¶
[DECIMAL_PRECISION]
Catalog¶
extends: Object implements: Catalog>
Catalog (tableCatalog, catalogSeparator)
String tableCatalog
String catalogSeparator
getCatalogs (metaData) → Catalog>
DatabaseMetaData metaData
returns Catalog>
@Override
equals (o) → boolean
Object o
returns boolean
@Override
hashCode () → int
returns int
Column¶
extends: Object implements: Column>
Column (tableCatalog, tableSchema, tableName, columnName, dataType, typeName, columnSize, decimalDigits, numericPrecisionRadix, nullable, remarks, columnDefinition, characterOctetLength, ordinalPosition, isNullable, scopeCatalog, scopeSchema, scopeTable, sourceDataType, isAutomaticIncrement, isGeneratedColumn)
String tableCatalog
String tableSchema
String tableName
String columnName
Integer dataType
String typeName
Integer columnSize
Integer decimalDigits
Integer numericPrecisionRadix
Integer nullable
String remarks
String columnDefinition
Integer characterOctetLength
Integer ordinalPosition
String isNullable
String scopeCatalog
String scopeSchema
String scopeTable
Short sourceDataType
String isAutomaticIncrement
String isGeneratedColumn
@Override
toString () → String
returns String
@Override
equals (o) → boolean
Object o
returns boolean
@Override
hashCode () → int
returns int
DriverRecord¶
extends: Object implements: DriverRecord>
DriverRecord (majorVersion, minorVersion, patchID, buildId, url)
int majorVersion
int minorVersion
int patchID
String buildId
URL url
@Override
hashCode () → int
returns int
@Override
equals (obj) → boolean
Object obj
returns boolean
getVersion () → String
returns String
@Override
toString () → String
returns String
ErrorDialog¶
extends: JDialog
ErrorDialog (owner, exception)
Dialog owner
Exception exception
ErrorDialog (owner, exception)
Frame owner
Exception exception
ErrorDialog (owner, exception)
Window owner
Exception exception
show (owner, exception)
Dialog owner
Exception exception
show (owner, exception)
Frame owner
Exception exception
show (owner, exception)
Window owner
Exception exception
show (component, exception)
Component component
Exception exception
Exception exceptionreturns void
H2MigrationTool¶
extends: Object
H2MigrationTool ()
getDriverRecords () → DriverRecord>
returns DriverRecord>
getTempFolderName () → String
returns String
getAbsoluteFile (filename) → File
String filename
returns File
getAbsoluteFileName (filename) → String
String filename
returns String
findFilesInPathRecursively (parentPath, depth, prefix, suffix) → Path>
Path parentPath
int depth
String prefix
String suffix
returns Path>
findFilesInPathRecursively (parentPath, depth, fileFilters) → Path>
Path parentPath
int depth
FileFilter[] fileFilters
returns Path>
findH2Drivers (pathName) → Path>
String pathName
returns Path>
findH2Databases (pathName, fileFilters) → Path>
String pathName
FileFilter[] fileFilters
returns Path>
readDriverRecords () → DriverRecord>
returns DriverRecord>
readCompressionLibs () → URL>
returns URL>
readDriverRecords (resourceName) → DriverRecord>
String resourceName
returns DriverRecord>
readDriverRecord (path)
Path path
getClassURLs (url) → URL[]
URL url
returns URL[]
readDriverRecord (url)
URL url
loadDriver (version) → Driver
String version
returns Driver
loadDriver (resourceStr, version) → Driver
String resourceStr
String version
returns Driver
loadDriver (driverRecords, version) → Driver
DriverRecord> driverRecords
String version
returns Driver
loadDriver (driverRecord) → Driver
DriverRecord driverRecord
returns Driver
unloadDriver (driver)
Driver driver
getDriverRecord (driverRecords, majorVersion, minorVersion, patchId, buildID) → DriverRecord
DriverRecord> driverRecords
int majorVersion
int minorVersion
int patchId
String buildID
returns DriverRecord
getDriverRecord (driverRecords, majorVersion, minorVersion) → DriverRecord
getDriverRecord (driverRecords, version) → DriverRecord
main (args)
String[] args
String versionFromreturns voidConnection connectionString> commandsreturns voidConnection connectionHookStage stagereturns String>getDriverRecord (version) → DriverRecord
String version
returns DriverRecord
writeScript (driverRecord, databaseFileName, user, password, scriptFileName, options, connectionParameters) → ScriptResult
DriverRecord driverRecord
String databaseFileName
String user
String password
String scriptFileName
String options
String connectionParameters
returns ScriptResult
writeRecoveryScript (driverRecord, folderName, databaseFileName) → ScriptResult
DriverRecord driverRecordString databaseFileNameString userString passwordString scriptFileNameString optionsString> commandsboolean overwriteString connectionParametersreturns ScriptResultmigrate (versionFrom, versionTo, databaseFileName, user, password, scriptFileName, compression, upgradeOptions, overwrite, force, connectionParameters) → ScriptResult
String versionFrom
String versionTo
String databaseFileName
String user
String password
String scriptFileName
String compression
String upgradeOptions
boolean overwrite
boolean force
String connectionParameters
returns ScriptResult
migrateAuto (databaseFileName)
String databaseFileName
migrateAuto (versionTo, databaseFileName, user, password, scriptFileName, compression, upgradeOptions, overwrite, force)
String versionTo
String databaseFileName
String user
String password
String scriptFileName
String compression
String upgradeOptions
boolean overwrite
boolean force
ScriptResult¶
extends: Object
ScriptResult (scriptFileName, commands)
String scriptFileName
String> commands
H2MigrationUI¶
extends: JFrame
H2MigrationUI ()
returns booleanexecuteAndWait (worker, component, textArea)
SwingWorker worker
Component component
JTextArea textArea
executeAndWait (worker, component)
SwingWorker worker
Component component
String labelint annotationreturns StringbuildUI (visible)
boolean visible
Index¶
extends: Object
Index (tableCatalog, tableSchema, tableName, nonUnique, indexQualifier, indexName, type)
String tableCatalog
String tableSchema
String tableName
Boolean nonUnique
String indexQualifier
String indexName
Short type
put (ordinalPosition, columnName, ascOrDesc, cardinality, pages, filterCondition) → IndexColumn
Short ordinalPosition
String columnName
String ascOrDesc
Long cardinality
Long pages
String filterCondition
returns IndexColumn
@Override
equals (o) → boolean
Object o
returns boolean
@Override
hashCode () → int
returns int
IndexColumn¶
extends: Object implements: IndexColumn>
IndexColumn (ordinalPosition, columnName, ascOrDesc, cardinality, pages, filterCondition)
Short ordinalPosition
String columnName
String ascOrDesc
Long cardinality
Long pages
String filterCondition
@Override
equals (o) → boolean
Object o
returns boolean
@Override
hashCode () → int
returns int
MetaData¶
extends: Object
MetaData (con)
Connection con
build ()
getCatalogs () → Catalog>
returns Catalog>
MetaDataTools¶
extends: Object
MetaDataTools ()
verifyDecimalPrecision (con) → Recommendation>
Connection con
returns Recommendation>
PrimaryKey¶
extends: Object
PrimaryKey (tableCatalog, tableSchema, tableName, primaryKeyName)
String tableCatalog
String tableSchema
String tableName
String primaryKeyName
@Override
equals (o) → boolean
Object o
returns boolean
@Override
hashCode () → int
returns int
Recommendation¶
extends: Object
Recommendation (issue, recommendation)
String issue
String recommendation
Reference¶
extends: Object
Reference (pkTableCatalog, pkTableSchema, pkTableName, fkTableCatalog, fkTableSchema, fkTableName, updateRule, deleteRule, fkName, pkName, deferrability)
String pkTableCatalog
String pkTableSchema
String pkTableName
String fkTableCatalog
String fkTableSchema
String fkTableName
Short updateRule
Short deleteRule
String fkName
String pkName
Short deferrability
@Override
equals (o) → boolean
Object o
returns boolean
@Override
hashCode () → int
returns int
Schema¶
extends: Object implements: Schema>
Schema (tableSchema, tableCatalog)
String tableSchema
String tableCatalog
getSchemas (metaData) → Schema>
DatabaseMetaData metaData
returns Schema>
@Override
equals (o) → boolean
Object o
returns boolean
@Override
hashCode () → int
returns int
Table¶
extends: Object implements: Table>
Table (tableCatalog, tableSchema, tableName, tableType, remarks, typeCatalog, typeSchema, typeName, selfReferenceColName, referenceGeneration)
String tableCatalog
String tableSchema
String tableName
String tableType
String remarks
String typeCatalog
String typeSchema
String typeName
String selfReferenceColName
String referenceGeneration
getTables (metaData) → Table>
DatabaseMetaData metaData
returns Table>
getColumns (metaData)
DatabaseMetaData metaData
getIndices (metaData, approximate)
DatabaseMetaData metaData
boolean approximate
getPrimaryKey (metaData)
DatabaseMetaData metaData
add (column) → boolean
Column column
returns boolean
contains (column) → boolean
Column column
returns boolean
containsIndexKey (indexName) → boolean
String indexName
returns boolean
@Override
equals (o) → boolean
Object o
returns boolean
@Override
hashCode () → int
returns int