public class Create extends Command implements TargetedCommand
| Modifier and Type | Class and Description |
|---|---|
static class |
Create.CommitAction |
LanguageObject.UtiltempGroupIDs, 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_SOURCE_EVENT, TYPE_STORED_PROCEDURE, TYPE_TRIGGER_ACTION, TYPE_UNKNOWN, TYPE_UPDATE, TYPE_UPDATE_PROCEDURE| Constructor and Description |
|---|
Create() |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor.
|
boolean |
areResultsCachable()
Whether the results are cachable.
|
Object |
clone()
Implement clone to make objects cloneable.
|
boolean |
equals(Object obj) |
List<Column> |
getColumns() |
List<ElementSymbol> |
getColumnSymbols()
Derived ElementSymbol list.
|
Create.CommitAction |
getCommitAction() |
GroupSymbol |
getGroup() |
String |
getOn() |
List<ElementSymbol> |
getPrimaryKey() |
List |
getProjectedSymbols()
Get the ordered list of all elements returned by this query.
|
GroupSymbol |
getTable() |
Table |
getTableMetadata() |
int |
getType()
Return type of command to make it easier to build switch statements by command type.
|
int |
hashCode() |
void |
setCommitAction(Create.CommitAction commitAction) |
void |
setElementSymbolsAsColumns(List<ElementSymbol> columns) |
void |
setOn(String on) |
void |
setTable(GroupSymbol table) |
void |
setTableMetadata(Table tableMetadata) |
String |
toString()
Returns a string representation of an instance of this class.
|
addExternalGroupToContext, copyMetadataState, getAllExternalGroups, getCacheHint, getCommandToken, getCorrelatedReferences, getExternalGroupContexts, getOption, getProcessorPlan, getResultSetColumns, getSourceHint, getTemporaryMetadata, getUpdateCommandSymbol, isResolved, printCommandTree, printCommandTree, pushNewResolvingContext, returnsResultSet, sameOptionAndHint, setCacheHint, setCorrelatedReferences, setExternalGroupContexts, setIsResolved, setOption, setProcessorPlan, setSourceHint, setTemporaryMetadatapublic GroupSymbol getTable()
public GroupSymbol getGroup()
getGroup in interface TargetedCommandpublic void setTable(GroupSymbol table)
public List<ElementSymbol> getPrimaryKey()
public List<ElementSymbol> getColumnSymbols()
public int getType()
CommandgetType in class CommandCommand.getType()public Object clone()
LanguageObjectclone in interface LanguageObjectclone in class CommandCommand.clone()public List getProjectedSymbols()
CommandgetProjectedSymbols in class CommandCommand.getProjectedSymbols()public boolean areResultsCachable()
CommandareResultsCachable in class CommandCommand.areResultsCachable()public void acceptVisitor(LanguageVisitor visitor)
LanguageObjectacceptVisitor in interface LanguageObjectvisitor - Visitor being usedLanguageObject.acceptVisitor(org.teiid.query.sql.LanguageVisitor)public void setElementSymbolsAsColumns(List<ElementSymbol> columns)
public String toString()
Commandpublic String getOn()
public void setOn(String on)
public Table getTableMetadata()
public void setTableMetadata(Table tableMetadata)
public Create.CommitAction getCommitAction()
public void setCommitAction(Create.CommitAction commitAction)
Copyright © 2018 JBoss by Red Hat. All rights reserved.