public class DBSchemaUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DBSchemaUtils.ActionType
An action type describes the kind of process in schema update workflow.
|
protected class |
DBSchemaUtils.CheckProperties |
protected static class |
DBSchemaUtils.ColumnProcessor |
protected class |
DBSchemaUtils.ColumnTracker |
class |
DBSchemaUtils.DBSchemaEvent |
static class |
DBSchemaUtils.ObjectType
An object type describes the kind of object (table,column,key ...) in schema update workflow.
|
static class |
DBSchemaUtils.PhaseType
An phase type describes the moment of handle database object in schema update workflow.
|
class |
DBSchemaUtils.SchemaUnusableException
This exception should thrown, if schema is unusable.
|
protected static class |
DBSchemaUtils.TableProcessor |
protected class |
DBSchemaUtils.TableTracker |
class |
DBSchemaUtils.TerminateException
This exception should thrown, if process
IDatabaseSchemaProcessor#checkSchemaSpec(SchemaSpec, java.sql.Connection) have to stop to work. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
adaptSchema(BranchNode<?,DBSchemaNodeType> schema) |
void |
close() |
static DBSchemaUtils |
get(Connection connection) |
IDBSchemaUtilsDriver |
getDriver() |
protected void |
logError(Throwable throwable,
BranchNode<?,DBSchemaNodeType> schema,
String msg,
DBSchemaUtils.CheckProperties checkProperties) |
protected void |
logSQLException(SQLException e) |
protected void |
logUpdate(String message,
BranchNode<?,DBSchemaNodeType> schema) |
public static DBSchemaUtils get(Connection connection)
public IDBSchemaUtilsDriver getDriver()
public boolean adaptSchema(BranchNode<?,DBSchemaNodeType> schema) throws SQLException
SQLExceptionprotected void logUpdate(String message, BranchNode<?,DBSchemaNodeType> schema)
protected void logSQLException(SQLException e)
protected void logError(Throwable throwable, BranchNode<?,DBSchemaNodeType> schema, String msg, DBSchemaUtils.CheckProperties checkProperties)
public void close()
Copyright © 2020. All rights reserved.