|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgudusoft.gsqlparser.nodes.TParseTreeNode
gudusoft.gsqlparser.nodes.TAlterTableOption
public class TAlterTableOption
Constructor Summary | |
---|---|
TAlterTableOption()
|
Methods inherited from class gudusoft.gsqlparser.nodes.TParseTreeNode |
---|
accept, addAllMyTokensToTokenList, getColumnNo, getDummyTag, getEndToken, getGsqlparser, getLineNo, getNodeType, getStartToken, init, init, init, init, setDummyTag, setEndToken, setEndToken, setGsqlparser, setNodeType, setStartToken, setStartToken, setString, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TAlterTableOption()
Method Detail |
---|
public EAlterTableOptionType getOptionType()
public void setOptionType(EAlterTableOptionType optionType)
public void setMySQLIndexTypeToken(TSourceToken mySQLIndexTypeToken)
public TSourceToken getMySQLIndexTypeToken()
public void setMySQLIndexStorageType(TMySQLIndexStorageType mySQLIndexStorageType)
public TMySQLIndexStorageType getMySQLIndexStorageType()
public void setNewTableName(TObjectName newTableName)
newTableName
- public TObjectName getNewTableName()
public void setReferencedColumnList(TObjectNameList referencedColumnList)
public void setReferencedObjectName(TObjectName referencedObjectName)
public void setColumnName(TObjectName columnName)
public TConstraintList getConstraintList()
TConstraint
, valid when getOptionType()
is:
EAlterTableOptionType.AddConstraint
public TObjectNameList getColumnNameList()
TObjectNameList
, valid when getOptionType()
is:
EAlterTableOptionType.SetUnUsedColumn
EAlterTableOptionType.AddConstraintIndex
, columns of an index
EAlterTableOptionType.AddConstraintPK
, columns of primary key
EAlterTableOptionType.AddConstraintUnique
, columns of unique key
EAlterTableOptionType.AddConstraintFK
, columns of foreign key
EAlterTableOptionType.DropConstraintUnique
, available in Oracle
public TColumnDefinitionList getColumnDefinitionList()
TColumnDefinitionList
, valid when getOptionType()
is:
EAlterTableOptionType.AddColumn
EAlterTableOptionType.ModifyColumn
EAlterTableOptionType.ChangeColumn
public TObjectName getColumnName()
getOptionType()
is:
EAlterTableOptionType.AlterColumn
EAlterTableOptionType.DropColumn
EAlterTableOptionType.RenameColumn
EAlterTableOptionType.ChangeColumn
EAlterTableOptionType.RenameTable
, table name
EAlterTableOptionType.AddConstraintIndex
, index name, optional
public TObjectName getConstraintName()
getOptionType()
is:
EAlterTableOptionType.AddConstraintPK
, optional
EAlterTableOptionType.AddConstraintUnique
, optional
EAlterTableOptionType.AddConstraintFK
, optional
EAlterTableOptionType.ModifyConstraint
EAlterTableOptionType.RenameConstraint
EAlterTableOptionType.DropConstraint
EAlterTableOptionType.DropConstraintFK
EAlterTableOptionType.DropConstraintUnique
, available in DB2
EAlterTableOptionType.DropConstraintCheck
, available in DB2
EAlterTableOptionType.DropConstraintIndex
, available in DB2
EAlterTableOptionType.DropConstraintKey
, available in DB2
EAlterTableOptionType.AlterConstraintFK
, available in DB2
EAlterTableOptionType.AlterConstraintCheck
, available in DB2
public TObjectName getNewColumnName()
getOptionType()
is:
EAlterTableOptionType.RenameColumn
public TObjectName getNewConstraintName()
getOptionType()
is:
EAlterTableOptionType.RenameConstraint
public TObjectNameList getReferencedColumnList()
public TObjectName getReferencedObjectName()
public void init(java.lang.Object arg1)
TParseTreeNode
init
in class TParseTreeNode
public void setNewConstraintName(TObjectName newConstraintName)
public void setConstraintName(TDummy pName)
public void setConstraintName(TObjectName constraintName)
public void init(java.lang.Object arg1, java.lang.Object arg2)
init
in class TParseTreeNode
public void doParse(TCustomSqlStatement psql, ESqlClause plocation)
TParseTreeNode
doParse
in class TParseTreeNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |