API 1.7¶
Base Package: com.manticore
Base¶
Recovery¶
extends: Object
Recovery ()
main (args)
String args
h2¶
Recommendation.Type¶
[DECIMAL_PRECISION]
Catalog¶
extends: Object implements: Comparable
Catalog (tableCatalog, catalogSeparator)
String tableCatalog
String catalogSeparator
getCatalogs (metaData) → Collection
DatabaseMetaData metaData
returns Collection
@Override
equals (o) → boolean
Object o
returns boolean
@Override
hashCode () → int
returns int
Column¶
extends: Object implements: Comparable
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: Comparable
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
H2MigrationTool¶
extends: Object
H2MigrationTool ()
getDriverRecords () → Set
returns Set
getTempFolderName () → String
returns String
getAbsoluteFile (filename) → File
String filename
returns File
getAbsoluteFileName (filename) → String
String filename
returns String
findFilesInPathRecursively (parentPath, depth, prefix, suffix) → Collection
Path parentPath
int depth
String prefix
String suffix
returns Collection
findFilesInPathRecursively (parentPath, depth, fileFilters) → Collection
Path parentPath
int depth
FileFilter fileFilters
returns Collection
findH2Drivers (pathName) → Collection
String pathName
returns Collection
findH2Databases (pathName, fileFilters) → Collection
String pathName
FileFilter fileFilters
returns Collection
readDriverRecords () → TreeSet
returns TreeSet
readDriverRecords (resourceName) → TreeSet
String resourceName
returns TreeSet
readDriverRecord (path)
Path path
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
TreeSet driverRecords
String version
returns Driver
loadDriver (driverRecord) → Driver
DriverRecord driverRecord
returns Driver
unloadDriver (driver)
Driver driver
getDriverRecord (driverRecords, majorVersion, minorVersion, patchId, buildID) → DriverRecord
getDriverRecord (driverRecords, majorVersion, minorVersion) → DriverRecord
getDriverRecord (driverRecords, version) → DriverRecord
main (args)
String args
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
migrate (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
H2MigrationTool.ScriptResult¶
extends: Object
ScriptResult (scriptFileName, commands)
String scriptFileName
List commands
H2MigrationUI¶
extends: JFrame
H2MigrationUI ()
executeAndWait (worker, component, textArea)
SwingWorker worker
Component component
JTextArea textArea
executeAndWait (worker, component)
SwingWorker worker
Component component
buildUI (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: Comparable
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 () → Map
returns Map
MetaDataTools¶
extends: Object
MetaDataTools ()
verifyDecimalPrecision (con) → Collection
Connection con
returns Collection
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: Comparable
Schema (tableSchema, tableCatalog)
String tableSchema
String tableCatalog
getSchemas (metaData) → Collection
DatabaseMetaData metaData
returns Collection
@Override
equals (o) → boolean
Object o
returns boolean
@Override
hashCode () → int
returns int
Table¶
extends: Object implements: Comparable
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) → Collection
DatabaseMetaData metaData
returns Collection
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