public class SqlType extends Object
| Constructor and Description | 
|---|
| SqlType(SqlType sqlType,
       String size,
       String scale,
       String defaultValue)Creates a new SqlType by copying another sql type. | 
| SqlType(String sqlTypeName)Creates a new SqlType with the given SQL Type. | 
| SqlType(String sqlTypeName,
       String size)Creates a new SqlType with null scale and null default value. | 
| SqlType(String sqlTypeName,
       String size,
       String scale)Creates a new SqlType with null default value. | 
| SqlType(String sqlTypeName,
       String size,
       String scale,
       String defaultValue)Creates a new SqlType. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getDefaultValue() | 
| SqlType | getNew(String size,
      String scale,
      String defaultValue)Returns a new instance with the given sqlTypeName, size, scale
 and default value. | 
| String | getScale() | 
| String | getSize() | 
| String | getSqlTypeName()Returns the SQL type name. | 
| String | printScale()Return the scale in brackets for use in an SQL script. | 
| String | printSize(String sizeSuffix)Return the size and scale in brackets for use in an SQL script. | 
public SqlType(String sqlTypeName)
sqlTypeName - the SQL name of the SQL type, or null.public SqlType(String sqlTypeName, String size)
sqlTypeName - the SQL name of the SQL type, not null.size - the default size of the columns with this SQL type.
        Can be overridden in the column definition.NullPointerException - if sqlTypeName is null.public SqlType(String sqlTypeName, String size, String scale)
sqlTypeName - the SQL name of the SQL type, not null.size - the default size of the columns with this SQL type.
        Can be overridden in the column definition.scale - the default scale of the columns with this SQL type.
        Can be overridden in the column definition.NullPointerException - if sqlTypeName is null.public SqlType(String sqlTypeName, String size, String scale, String defaultValue)
sqlTypeName - the SQL name of the SQL type, not null.size - the default size of the columns with this SQL type.
        Can be overridden in the column definition.scale - the default scale of the columns with this SQL type.
        Can be overridden in the column definition.defaultValue - the default "default value" of the columns with this
        SQL type. Can be overridden in the column definition.NullPointerException - if sqlTypeName is null.public SqlType(SqlType sqlType, String size, String scale, String defaultValue)
sqlType - the SQL type, to copy, not null.size - the default size of the columns with this SQL type.scale - the default scale of the columns with this SQL type.defaultValue - the default "default value" of the columns with this
        SQL type.NullPointerException - if sqlType is null.public String getScale()
public String getSize()
public String getDefaultValue()
public String getSqlTypeName()
public String printSize(String sizeSuffix)
public String printScale()
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.