Package org.teiid.language
Class Delete
- java.lang.Object
-
- org.teiid.language.BaseLanguageObject
-
- org.teiid.language.Delete
-
- All Implemented Interfaces:
BatchedCommand
,BulkCommand
,Command
,LanguageObject
public class Delete extends BaseLanguageObject implements BulkCommand
Represents a DELETE command.
-
-
Constructor Summary
Constructors Constructor Description Delete(NamedTable group, Condition criteria)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acceptVisitor(LanguageObjectVisitor visitor)
Iterator<? extends List<?>>
getParameterValues()
TheParameter
values.NamedTable
getTable()
Get group that is being deleted from.Condition
getWhere()
Get criteria that is being used with the delete - may be nullvoid
setParameterValues(Iterator<? extends List<?>> parameterValues)
void
setTable(NamedTable group)
Set group that is being deleted from.void
setWhere(Condition criteria)
Set criteria that is being used with the delete - may be null-
Methods inherited from class org.teiid.language.BaseLanguageObject
toString
-
-
-
-
Constructor Detail
-
Delete
public Delete(NamedTable group, Condition criteria)
-
-
Method Detail
-
getTable
public NamedTable getTable()
Get group that is being deleted from.- Returns:
- Insert group
-
getWhere
public Condition getWhere()
Get criteria that is being used with the delete - may be null- Returns:
- Criteria, may be null
-
acceptVisitor
public void acceptVisitor(LanguageObjectVisitor visitor)
- Specified by:
acceptVisitor
in interfaceLanguageObject
-
setTable
public void setTable(NamedTable group)
Set group that is being deleted from.- Parameters:
group
- Insert group
-
setWhere
public void setWhere(Condition criteria)
Set criteria that is being used with the delete - may be null- Parameters:
criteria
- Criteria, may be null
-
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
-
-