Package com.mckoi.database.interpret
Class AlterTableAction
java.lang.Object
com.mckoi.database.interpret.AlterTableAction
- All Implemented Interfaces:
StatementTreeObject
,Serializable
,Cloneable
public final class AlterTableAction
extends Object
implements Serializable, StatementTreeObject, Cloneable
Represents an action in an ALTER TABLE SQL statement.
- Author:
- Tobias Downer
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addElement
(Object ob) Adds a parameter to this action.clone()
Performs a DEEP clone of this object if it is mutable, or a deep clone of its mutable members.Returns the name of this action.getElement
(int n) Returns element 'n'.Returns the ArrayList that represents the parameters of this action.void
prepareExpressions
(ExpressionPreparer preparer) Prepares all expressions in this statement tree object by passing the ExpressionPreparer object to the 'prepare' method of the expression.void
Set the action to perform.
-
Constructor Details
-
AlterTableAction
public AlterTableAction()Constructor.
-
-
Method Details
-
setAction
Set the action to perform. -
addElement
Adds a parameter to this action. -
getAction
Returns the name of this action. -
getElements
Returns the ArrayList that represents the parameters of this action. -
getElement
Returns element 'n'. -
prepareExpressions
Description copied from interface:StatementTreeObject
Prepares all expressions in this statement tree object by passing the ExpressionPreparer object to the 'prepare' method of the expression.- Specified by:
prepareExpressions
in interfaceStatementTreeObject
- Throws:
DatabaseException
-
clone
Description copied from interface:StatementTreeObject
Performs 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:
clone
in interfaceStatementTreeObject
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-