Package org.teiid.language
Class Insert
- java.lang.Object
-
- org.teiid.language.BaseLanguageObject
-
- org.teiid.language.Insert
-
- All Implemented Interfaces:
BatchedCommand
,BulkCommand
,Command
,LanguageObject
public class Insert extends BaseLanguageObject implements BulkCommand
-
-
Constructor Summary
Constructors Constructor Description Insert(NamedTable group, List<ColumnReference> elements, InsertValueSource valueSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acceptVisitor(LanguageObjectVisitor visitor)
List<ColumnReference>
getColumns()
Iterator<? extends List<?>>
getParameterValues()
TheParameter
values.NamedTable
getTable()
InsertValueSource
getValueSource()
boolean
isUpsert()
void
setColumns(List<ColumnReference> elements)
void
setParameterValues(Iterator<? extends List<?>> parameterValues)
void
setTable(NamedTable group)
void
setUpsert(boolean upsert)
void
setValueSource(InsertValueSource values)
-
Methods inherited from class org.teiid.language.BaseLanguageObject
toString
-
-
-
-
Constructor Detail
-
Insert
public Insert(NamedTable group, List<ColumnReference> elements, InsertValueSource valueSource)
-
-
Method Detail
-
getTable
public NamedTable getTable()
-
getColumns
public List<ColumnReference> getColumns()
-
getValueSource
public InsertValueSource getValueSource()
-
acceptVisitor
public void acceptVisitor(LanguageObjectVisitor visitor)
- Specified by:
acceptVisitor
in interfaceLanguageObject
-
setTable
public void setTable(NamedTable group)
-
setColumns
public void setColumns(List<ColumnReference> elements)
-
setValueSource
public void setValueSource(InsertValueSource values)
-
getParameterValues
public Iterator<? extends List<?>> getParameterValues()
Description copied from interface:BulkCommand
TheParameter
values. May be null.- Specified by:
getParameterValues
in interfaceBatchedCommand
- Specified by:
getParameterValues
in interfaceBulkCommand
-
setParameterValues
public void setParameterValues(Iterator<? extends List<?>> parameterValues)
- Specified by:
setParameterValues
in interfaceBatchedCommand
- Specified by:
setParameterValues
in interfaceBulkCommand
-
isUpsert
public boolean isUpsert()
-
setUpsert
public void setUpsert(boolean upsert)
-
-