com.metamatrix.query.sql.proc
Class Statement

java.lang.Object
  extended by com.metamatrix.query.sql.proc.Statement
All Implemented Interfaces:
LanguageObject, java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
AssignmentStatement, BreakStatement, CommandStatement, ContinueStatement, IfStatement, LoopStatement, WhileStatement

public abstract class Statement
extends java.lang.Object
implements LanguageObject

This class represents the a statement in the stored procedure language. The subclasses of this class represent specific statements like an IfStatement, AssignmentStatement etc.

See Also:
Serialized Form

Field Summary
static int TYPE_ASSIGNMENT
          Represents a ASSIGNMENT statement
static int TYPE_BREAK
          Represents a BREAK statement
static int TYPE_COMMAND
          Represents a SQL COMMAND statement
static int TYPE_CONTINUE
          Represents a CONTINUE statement
static int TYPE_DECLARE
          Represents a DECLARE statement
static int TYPE_ERROR
          Represents a ERROR statement
static int TYPE_IF
          Represents a IF statement
static int TYPE_LOOP
          Represents a LOOP statement
static int TYPE_UNKNOWN
          Represents an unknown type of statement
static int TYPE_WHILE
          Represents a WHILE statement
 
Constructor Summary
Statement()
           
 
Method Summary
abstract  java.lang.Object clone()
          Deep clone statement to produce a new identical statement.
abstract  int getType()
          Return type of statement to make it easier to build switch statements by statement type.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.metamatrix.query.sql.LanguageObject
acceptVisitor
 

Field Detail

TYPE_UNKNOWN

public static final int TYPE_UNKNOWN
Represents an unknown type of statement

See Also:
Constant Field Values

TYPE_IF

public static final int TYPE_IF
Represents a IF statement

See Also:
Constant Field Values

TYPE_COMMAND

public static final int TYPE_COMMAND
Represents a SQL COMMAND statement

See Also:
Constant Field Values

TYPE_DECLARE

public static final int TYPE_DECLARE
Represents a DECLARE statement

See Also:
Constant Field Values

TYPE_ERROR

public static final int TYPE_ERROR
Represents a ERROR statement

See Also:
Constant Field Values

TYPE_ASSIGNMENT

public static final int TYPE_ASSIGNMENT
Represents a ASSIGNMENT statement

See Also:
Constant Field Values

TYPE_LOOP

public static final int TYPE_LOOP
Represents a LOOP statement

See Also:
Constant Field Values

TYPE_WHILE

public static final int TYPE_WHILE
Represents a WHILE statement

See Also:
Constant Field Values

TYPE_CONTINUE

public static final int TYPE_CONTINUE
Represents a CONTINUE statement

See Also:
Constant Field Values

TYPE_BREAK

public static final int TYPE_BREAK
Represents a BREAK statement

See Also:
Constant Field Values
Constructor Detail

Statement

public Statement()
Method Detail

getType

public abstract int getType()
Return type of statement to make it easier to build switch statements by statement type.

Returns:
Type from TYPE constants

clone

public abstract java.lang.Object clone()
Deep clone statement to produce a new identical statement.

Specified by:
clone in interface LanguageObject
Overrides:
clone in class java.lang.Object
Returns:
Deep clone


Copyright © 2009. All Rights Reserved.