public final class SQLDataType extends SyntaxObject
Constructor and Description |
---|
SQLDataType(DataType type)
Creates a
SQLDataType that has the default precision of the specified data type. |
SQLDataType(java.lang.String sqlText)
Creates a
SQLDataType that is based on a SQL statement. |
Modifier and Type | Method and Description |
---|---|
DataType |
getDataType()
Gets the
DataType that is associated with this SQLDataType . |
java.lang.String |
getSQLText()
Gets the SQL statement that is associated with this
SQLDataType . |
java.lang.Object |
visit(SyntaxObjectVisitor visitor, java.lang.Object context)
Calls the appropriate method of a
SyntaxObjectVisitor and passes that method the SyntaxObject and an Object . |
equals, equals, fromSyntax, fromSyntax, fromSyntax, fromSyntax, fromSyntax, isValid, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax, toSyntax
public SQLDataType(java.lang.String sqlText)
SQLDataType
that is based on a SQL statement.sqlText
- A String
that contains a SQL statement that defines a data type.public SQLDataType(DataType type)
SQLDataType
that has the default precision of the specified data type.type
- The DataType
to associate with the new SQLDataType
.public java.lang.Object visit(SyntaxObjectVisitor visitor, java.lang.Object context)
SyntaxObjectVisitor
and passes that method the SyntaxObject
and an Object
.visit
in class SyntaxObject
visitor
- A SyntaxObjectVisitor
.context
- An Object
.Object
returned by the visitClearCommand
method.public DataType getDataType()
DataType
that is associated with this SQLDataType
.DataType
associated with this SQLDataType
.public java.lang.String getSQLText()
SQLDataType
.String
that contains the SQL statement associated with this SQLDataType
.