| Modifier and Type | Method and Description |
|---|---|
SchemaProperties |
defaultValueAllowed(boolean defaultValueAllowed)
Returns a new instance with the same properties, but specifying whether or not a
column of this type can have a default value.
|
boolean |
equals(Object o) |
Integer |
getOverrideJdbcWriteType()
Returns the JDBC type code to be used when writing to the database (e.g.
|
String |
getSqlTypeName()
Returns the SQL type name (without any precision or length qualifiers).
|
int |
hashCode() |
boolean |
hasOverrideJdbcWriteType()
Returns true if this instance specifies a JDBC type code that is different than
the default from the
LogicalType. |
boolean |
isDefaultValueAllowed()
Returns true if a column of this type is allowed to have a default value.
|
boolean |
isPrecisionAllowed()
Returns true if this type is allowed to have a numeric precision qualifier.
|
boolean |
isScaleAllowed()
Returns true if this type is allowed to have a numeric scale qualifier.
|
boolean |
isStringLengthAllowed()
Returns true if this type is allowed to have a string length qualifier.
|
SchemaProperties |
jdbcWriteType(int jdbcWriteType)
Returns a new instance with the same properties, but specifying a JDBC type code.
|
SchemaProperties |
precisionAllowed(boolean precisionAllowed)
Returns a new instance with the same properties, but specifying whether or not the
SQL type can include a numeric precision qualifier.
|
SchemaProperties |
scaleAllowed(boolean scaleAllowed)
Returns a new instance with the same properties, but specifying whether or not the
SQL type can include a numeric scale qualifier.
|
static SchemaProperties |
schemaType(String sqlTypeName)
Constructs an instance that refers to the specified SQL type name (e.g.
|
SchemaProperties |
stringLengthAllowed(boolean stringLengthAllowed)
Returns a new instance with the same properties, but specifying whether or not the
SQL type can include a string length qualifier.
|
public static SchemaProperties schemaType(String sqlTypeName)
public SchemaProperties jdbcWriteType(int jdbcWriteType)
LogicalType.public SchemaProperties precisionAllowed(boolean precisionAllowed)
public SchemaProperties scaleAllowed(boolean scaleAllowed)
public SchemaProperties stringLengthAllowed(boolean stringLengthAllowed)
public SchemaProperties defaultValueAllowed(boolean defaultValueAllowed)
public String getSqlTypeName()
public Integer getOverrideJdbcWriteType()
Types.VARCHAR), if this is different than the default from the
LogicalType.public boolean hasOverrideJdbcWriteType()
LogicalType.public boolean isPrecisionAllowed()
public boolean isScaleAllowed()
public boolean isStringLengthAllowed()
public boolean isDefaultValueAllowed()
Copyright © 2007-2014. All Rights Reserved.