com.metamatrix.query.sql.proc
Class RaiseErrorStatement

java.lang.Object
  extended by com.metamatrix.query.sql.proc.Statement
      extended by com.metamatrix.query.sql.proc.AssignmentStatement
          extended by com.metamatrix.query.sql.proc.RaiseErrorStatement
All Implemented Interfaces:
SubqueryContainer, LanguageObject, java.io.Serializable, java.lang.Cloneable

public class RaiseErrorStatement
extends AssignmentStatement

This class represents a error assignment statement in the storedprocedure language. It extends the Statement that could part of a Block. This this object holds and error message.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.metamatrix.query.sql.proc.Statement
TYPE_ASSIGNMENT, TYPE_BREAK, TYPE_COMMAND, TYPE_CONTINUE, TYPE_DECLARE, TYPE_ERROR, TYPE_IF, TYPE_LOOP, TYPE_UNKNOWN, TYPE_WHILE
 
Constructor Summary
RaiseErrorStatement()
          Constructor for RaiseErrorStatement.
RaiseErrorStatement(Expression message)
          Constructor for RaiseErrorStatement.
 
Method Summary
 void acceptVisitor(LanguageVisitor visitor)
          Method for accepting a visitor.
 int getType()
          Return the type for this statement, this is one of the types defined on the statement object.
 
Methods inherited from class com.metamatrix.query.sql.proc.AssignmentStatement
clone, equals, getCommand, getExpression, getValue, getVariable, hasCommand, hasExpression, hashCode, setCommand, setExpression, setValue, setVariable, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RaiseErrorStatement

public RaiseErrorStatement()
Constructor for RaiseErrorStatement.


RaiseErrorStatement

public RaiseErrorStatement(Expression message)
Constructor for RaiseErrorStatement.

Parameters:
message - The error message
Method Detail

acceptVisitor

public void acceptVisitor(LanguageVisitor visitor)
Description copied from interface: LanguageObject
Method for accepting a visitor. It is the responsibility of the language object to call back on the visitor.

Specified by:
acceptVisitor in interface LanguageObject
Overrides:
acceptVisitor in class AssignmentStatement
Parameters:
visitor - Visitor being used

getType

public int getType()
Description copied from class: AssignmentStatement
Return the type for this statement, this is one of the types defined on the statement object.

Overrides:
getType in class AssignmentStatement
Returns:
The type of this statement
See Also:
AssignmentStatement.getType()


Copyright © 2009. All Rights Reserved.