|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.query.sql.lang.Command
com.metamatrix.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.
Field Summary |
---|
Fields inherited from class com.metamatrix.query.sql.lang.Command |
---|
tempGroupIDs, TYPE_BATCHED_UPDATE, TYPE_CREATE, TYPE_DELETE, TYPE_DROP, TYPE_DYNAMIC, TYPE_INSERT, TYPE_QUERY, TYPE_SQL, TYPE_STORED_PROCEDURE, TYPE_UNKNOWN, TYPE_UPDATE, TYPE_UPDATE_PROCEDURE, TYPE_XQUERY |
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 |
getParentProjectSymbols()
|
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 |
int |
hashCode()
Get hashcode for CreateUpdateProcedureCommand. |
boolean |
isUpdateProcedure()
|
void |
setBlock(Block block)
Set the block on this command. |
void |
setParentProjectSymbols(java.util.List parentProjectSymbols)
|
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 |
java.lang.String |
toString()
Returns a string representation of an instance of this class. |
int |
updatingModelCount(QueryMetadataInterface metadata)
Return the number of updates on physical sources by this command. |
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 int updatingModelCount(QueryMetadataInterface metadata) throws MetaMatrixComponentException
Command
updatingModelCount
in class Command
metadata
- QueryMetadataInterface
MetaMatrixComponentException
public java.util.List getParentProjectSymbols()
public void setParentProjectSymbols(java.util.List parentProjectSymbols)
parentProjectSymbols
- The parentProjectSymbols to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |