Package com.mckoi.database.interpret
Class AlterTableAction
- java.lang.Object
-
- com.mckoi.database.interpret.AlterTableAction
-
- All Implemented Interfaces:
StatementTreeObject,java.io.Serializable,java.lang.Cloneable
public final class AlterTableAction extends java.lang.Object implements java.io.Serializable, StatementTreeObject, java.lang.Cloneable
Represents an action in an ALTER TABLE SQL statement.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringactionThe action to perform.private java.util.ArrayListelementsElement parameters to do with the action.(package private) static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description AlterTableAction()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddElement(java.lang.Object ob)Adds a parameter to this action.java.lang.Objectclone()Performs a DEEP clone of this object if it is mutable, or a deep clone of its mutable members.java.lang.StringgetAction()Returns the name of this action.java.lang.ObjectgetElement(int n)Returns element 'n'.java.util.ArrayListgetElements()Returns the ArrayList that represents the parameters of this action.voidprepareExpressions(ExpressionPreparer preparer)Prepares all expressions in this statement tree object by passing the ExpressionPreparer object to the 'prepare' method of the expression.voidsetAction(java.lang.String str)Set the action to perform.
-
-
-
Field Detail
-
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
-
elements
private java.util.ArrayList elements
Element parameters to do with the action.
-
action
private java.lang.String action
The action to perform.
-
-
Method Detail
-
setAction
public void setAction(java.lang.String str)
Set the action to perform.
-
addElement
public void addElement(java.lang.Object ob)
Adds a parameter to this action.
-
getAction
public java.lang.String getAction()
Returns the name of this action.
-
getElements
public java.util.ArrayList getElements()
Returns the ArrayList that represents the parameters of this action.
-
getElement
public java.lang.Object getElement(int n)
Returns element 'n'.
-
prepareExpressions
public void prepareExpressions(ExpressionPreparer preparer) throws DatabaseException
Description copied from interface:StatementTreeObjectPrepares all expressions in this statement tree object by passing the ExpressionPreparer object to the 'prepare' method of the expression.- Specified by:
prepareExpressionsin interfaceStatementTreeObject- Throws:
DatabaseException
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionDescription copied from interface:StatementTreeObjectPerforms a DEEP clone of this object if it is mutable, or a deep clone of its mutable members. If the object is immutable then it may return 'this'.- Specified by:
clonein interfaceStatementTreeObject- Overrides:
clonein classjava.lang.Object- Throws:
java.lang.CloneNotSupportedException
-
-