|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.ao.types.SchemaProperties
public class SchemaProperties
Describes the underlying SQL schema type that corresponds to a given TypeInfo.
This is determined by the database provider.
| Method Summary | |
|---|---|
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. |
java.lang.Integer |
getOverrideJdbcWriteType()
Returns the JDBC type code to be used when writing to the database (e.g. |
java.lang.String |
getSqlTypeName()
Returns the SQL type name (without any precision or length qualifiers). |
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(java.lang.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static SchemaProperties schemaType(java.lang.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 java.lang.String getSqlTypeName()
public java.lang.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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||