Package org.teiid.query.sql.lang
Class Create
- java.lang.Object
-
- org.teiid.query.sql.lang.Command
-
- org.teiid.query.sql.lang.Create
-
- All Implemented Interfaces:
Cloneable,TargetedCommand,LanguageObject
public class Create extends Command implements TargetedCommand
- Since:
- 5.5
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreate.CommitAction-
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_EXPLAIN, TYPE_INSERT, TYPE_QUERY, TYPE_SOURCE_EVENT, TYPE_STORED_PROCEDURE, TYPE_TRIGGER_ACTION, TYPE_UNKNOWN, TYPE_UPDATE, TYPE_UPDATE_PROCEDURE
-
-
Constructor Summary
Constructors Constructor Description Create()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacceptVisitor(LanguageVisitor visitor)Method for accepting a visitor.booleanareResultsCachable()Whether the results are cachable.Objectclone()Implement clone to make objects cloneable.booleanequals(Object obj)List<Column>getColumns()List<ElementSymbol>getColumnSymbols()Derived ElementSymbol list.Create.CommitActiongetCommitAction()GroupSymbolgetGroup()StringgetOn()List<ElementSymbol>getPrimaryKey()ListgetProjectedSymbols()Get the ordered list of all elements returned by this query.GroupSymbolgetTable()TablegetTableMetadata()intgetType()Return type of command to make it easier to build switch statements by command type.inthashCode()voidsetCommitAction(Create.CommitAction commitAction)voidsetElementSymbolsAsColumns(List<ElementSymbol> columns)voidsetOn(String on)voidsetTable(GroupSymbol table)voidsetTableMetadata(Table tableMetadata)StringtoString()Returns a string representation of an instance of this class.-
Methods inherited from class org.teiid.query.sql.lang.Command
addExternalGroupToContext, copyMetadataState, getActualCommand, getAllExternalGroups, getCacheHint, getCommandToken, getCorrelatedReferences, getExternalGroupContexts, getOption, getProcessorPlan, getResultSetColumns, getSourceHint, getTemporaryMetadata, getUpdateCommandSymbol, printCommandTree, printCommandTree, pushNewResolvingContext, returnsResultSet, sameOptionAndHint, setCacheHint, setCorrelatedReferences, setExternalGroupContexts, setOption, setProcessorPlan, setSourceHint, setTemporaryMetadata
-
-
-
-
Method Detail
-
getTable
public GroupSymbol getTable()
-
getGroup
public GroupSymbol getGroup()
- Specified by:
getGroupin interfaceTargetedCommand
-
setTable
public void setTable(GroupSymbol table)
-
getPrimaryKey
public List<ElementSymbol> getPrimaryKey()
-
getColumnSymbols
public List<ElementSymbol> getColumnSymbols()
Derived ElementSymbol list. Do not modify without also modifying the columns.- Returns:
-
getType
public int getType()
Description copied from class:CommandReturn type of command to make it easier to build switch statements by command type.- Specified by:
getTypein classCommand- Returns:
- Type from TYPE constants
- Since:
- 5.5
- See Also:
Command.getType()
-
clone
public Object clone()
Description copied from interface:LanguageObjectImplement clone to make objects cloneable.- Specified by:
clonein interfaceLanguageObject- Specified by:
clonein classCommand- Returns:
- Deep clone of this object
- Since:
- 5.5
- See Also:
Command.clone()
-
getProjectedSymbols
public List getProjectedSymbols()
Description copied from class:CommandGet the ordered list of all elements returned by this query. These elements may be ElementSymbols or ExpressionSymbols but in all cases each represents a single column.- Specified by:
getProjectedSymbolsin classCommand- Returns:
- Ordered list of SingleElementSymbol
- Since:
- 5.5
- See Also:
Command.getProjectedSymbols()
-
areResultsCachable
public boolean areResultsCachable()
Description copied from class:CommandWhether the results are cachable.- Specified by:
areResultsCachablein classCommand- Returns:
- True if the results are cachable; false otherwise.
- Since:
- 5.5
- See Also:
Command.areResultsCachable()
-
acceptVisitor
public void acceptVisitor(LanguageVisitor visitor)
Description copied from interface:LanguageObjectMethod for accepting a visitor. It is the responsibility of the language object to call back on the visitor.- Specified by:
acceptVisitorin interfaceLanguageObject- Parameters:
visitor- Visitor being used- Since:
- 5.5
- See Also:
LanguageObject.acceptVisitor(org.teiid.query.sql.LanguageVisitor)
-
setElementSymbolsAsColumns
public void setElementSymbolsAsColumns(List<ElementSymbol> columns)
-
toString
public String toString()
Description copied from class:CommandReturns a string representation of an instance of this class.
-
getOn
public String getOn()
-
setOn
public void setOn(String on)
-
getTableMetadata
public Table getTableMetadata()
-
setTableMetadata
public void setTableMetadata(Table tableMetadata)
-
getCommitAction
public Create.CommitAction getCommitAction()
-
setCommitAction
public void setCommitAction(Create.CommitAction commitAction)
-
-