public static class AlterTableQuery.AddColumnAction extends SqlObject
"... ADD <column name> <column type> [constraints]
.ALL_SYMBOL, NULL_VALUE, QUESTION_MARK
Constructor and Description |
---|
AddColumnAction(Object column) |
Modifier and Type | Method and Description |
---|---|
AlterTableQuery.AddColumnAction |
addConstraint(Object constraint)
Adds a constraint to the column specified in this action
|
void |
appendTo(AppendableExt app)
Appends this object to the given AppendableExt.
|
protected void |
collectSchemaObjects(ValidationContext vContext)
Used during Query.validate() calls to collect the dbschema objects
referenced in a query.
|
AlterTableQuery.AddColumnAction |
setDefaultValue(Object defaultValue)
Sets the given value as the column default value for this action.
|
AlterTableQuery.AddColumnAction |
setTypeName(String typeName)
Sets the given type name as the column type name for this action
(overriding any type info on the column instance itself).
|
collectSchemaObjects, doValidate, toString
toString, toString
public AddColumnAction(Object column)
protected void collectSchemaObjects(ValidationContext vContext)
SqlObject
collectSchemaObjects
in class SqlObject
vContext
- handle to the current validation contextpublic void appendTo(AppendableExt app) throws IOException
Appendee
appendTo
in interface Appendee
appendTo
in class AppendeeObject
app
- the AppendableExt to which this class should append itselfIOException
- if the append failspublic AlterTableQuery.AddColumnAction addConstraint(Object constraint)
Object
-> SqlObject
constraint conversions handled by
Converter.toCustomConstraintClause(java.lang.Object)
.
public AlterTableQuery.AddColumnAction setDefaultValue(Object defaultValue)
Object
-> SqlObject
value conversions handled by
Converter.toValueSqlObject(java.lang.Object)
.
public AlterTableQuery.AddColumnAction setTypeName(String typeName)
Copyright © 2006–2021 OpenHMS. All rights reserved.