public class DefaultColumnTypeImpl extends Object implements IColumnType
IColumnType.ColumnType, IColumnType.FunctionAPPLICABLE_DEFAULT, APPLICABLE_FALLBACK, APPLICABLE_NONE| Constructor and Description |
|---|
DefaultColumnTypeImpl() |
| Modifier and Type | Method and Description |
|---|---|
int |
driverIsApplicableFor(Map<String,Object> properties) |
String |
getDefaultValueExpression(Connection connection,
BranchNode<?,DBSchemaNodeType> schema,
BranchNode<?,TableNodeType> table,
BranchNode<?,ColumnNodeType> column,
String dbProduct,
IDBSchemaUtilsDriver schemaDriver)
return the expression for default type of column in create or alter column command
|
String |
getTypeExpression(Connection connection,
BranchNode<?,DBSchemaNodeType> schema,
BranchNode<?,TableNodeType> table,
BranchNode<?,ColumnNodeType> column,
String dbProduct,
IDBSchemaUtilsDriver schemaDriver)
return the expression for column type in create or alter column command
|
List<String> |
getTypeList()
Getter for supported column types
|
public int driverIsApplicableFor(Map<String,Object> properties)
driverIsApplicableFor in interface Driver.IDriverpublic List<String> getTypeList()
IColumnTypegetTypeList in interface IColumnTypepublic String getTypeExpression(Connection connection, BranchNode<?,DBSchemaNodeType> schema, BranchNode<?,TableNodeType> table, BranchNode<?,ColumnNodeType> column, String dbProduct, IDBSchemaUtilsDriver schemaDriver) throws SQLException
IColumnTypegetTypeExpression in interface IColumnTypeconnection - used connectionschema - used schema specificationtable - used table specificationcolumn - used column specificationdbProduct - database product nameschemaDriver - used schema driverSQLExceptionpublic String getDefaultValueExpression(Connection connection, BranchNode<?,DBSchemaNodeType> schema, BranchNode<?,TableNodeType> table, BranchNode<?,ColumnNodeType> column, String dbProduct, IDBSchemaUtilsDriver schemaDriver) throws SQLException
IColumnTypegetDefaultValueExpression in interface IColumnTypeconnection - used connectionschema - used schema specificationtable - used table specificationcolumn - used column specificationdbProduct - database product nameschemaDriver - used schema driverSQLExceptionCopyright © 2020. All rights reserved.