|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.teiid.query.sql.lang.Command
org.teiid.query.sql.proc.CreateUpdateProcedureCommand
public class CreateUpdateProcedureCommand
This class represents a update procedure in the storedprocedure language.
It extends the Command
and represents the command for Insert , Update
and Delete procedures.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.teiid.query.sql.LanguageObject |
---|
LanguageObject.Util |
Field Summary |
---|
Fields inherited from class org.teiid.query.sql.lang.Command |
---|
tempGroupIDs, TYPE_ALTER_PROC, TYPE_ALTER_TRIGGER, TYPE_ALTER_VIEW, TYPE_BATCHED_UPDATE, TYPE_CREATE, TYPE_DELETE, TYPE_DROP, TYPE_DYNAMIC, TYPE_INSERT, TYPE_QUERY, TYPE_SQL, TYPE_STORED_PROCEDURE, TYPE_TRIGGER_ACTION, TYPE_UNKNOWN, TYPE_UPDATE, TYPE_UPDATE_PROCEDURE |
Constructor Summary | |
---|---|
CreateUpdateProcedureCommand()
Constructor for CreateUpdateProcedureCommand. |
|
CreateUpdateProcedureCommand(Block block)
Constructor for CreateUpdateProcedureCommand. |
Method Summary | |
---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor. |
boolean |
areResultsCachable()
Whether the results are cachable. |
java.lang.Object |
clone()
Deep clone statement to produce a new identical statement. |
boolean |
equals(java.lang.Object obj)
Compare two CreateUpdateProcedureCommand for equality. |
Block |
getBlock()
Get the block on this command. |
java.util.List |
getProjectedSymbols()
Get the ordered list of all elements returned by this query. |
Command |
getResultsCommand()
|
java.util.Map |
getSymbolMap()
Get the symbol map between elements on the virtual group being updated and the elements on the transformation query. |
int |
getType()
Return type of command to make it easier to build switch statements by command type. |
Command |
getUserCommand()
Get the user's command to which this obj which is the subcommand |
GroupSymbol |
getVirtualGroup()
|
int |
hashCode()
Get hashcode for CreateUpdateProcedureCommand. |
boolean |
isUpdateProcedure()
|
void |
setBlock(Block block)
Set the block on this command. |
void |
setProjectedSymbols(java.util.List projSymbols)
|
void |
setResultsCommand(Command command)
|
void |
setSymbolMap(java.util.Map symbolMap)
Set the symbol map between elements on the virtual group being updated and the elements on the transformation query. |
void |
setUpdateProcedure(boolean isUpdateProcedure)
|
void |
setUserCommand(Command command)
Set the user's command to which this obj which is the subcommand |
void |
setVirtualGroup(GroupSymbol virtualGroup)
|
java.lang.String |
toString()
Returns a string representation of an instance of this class. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CreateUpdateProcedureCommand()
public CreateUpdateProcedureCommand(Block block)
block
- The block on this commandtype
- The procedure typeMethod Detail |
---|
public int getType()
getType
in class Command
public Block getBlock()
Block
on this commandpublic void setBlock(Block block)
block
- The Block
on this commandpublic void setUserCommand(Command command)
command
- The user's commandpublic Command getUserCommand()
public void setSymbolMap(java.util.Map symbolMap)
symbolMap
- Map of virtual group elements -> elements that define thosepublic java.util.Map getSymbolMap()
public void acceptVisitor(LanguageVisitor visitor)
LanguageObject
visitor
- Visitor being usedpublic java.lang.Object clone()
clone
in interface LanguageObject
clone
in class Command
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Other object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class Command
public java.util.List getProjectedSymbols()
getProjectedSymbols
in class Command
public boolean isUpdateProcedure()
public void setUpdateProcedure(boolean isUpdateProcedure)
isUpdateProcedure
- public void setProjectedSymbols(java.util.List projSymbols)
projSymbols
- public Command getResultsCommand()
public void setResultsCommand(Command command)
command
- public boolean areResultsCachable()
Command
areResultsCachable
in class Command
Command.areResultsCachable()
public GroupSymbol getVirtualGroup()
public void setVirtualGroup(GroupSymbol virtualGroup)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |