public class Delete extends ProcedureContainer implements FilteredCommand
LanguageObject.Util
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 and Description |
---|
Delete()
Constructs a default instance of this class.
|
Delete(GroupSymbol group)
Constructs an instance of this class given the group.
|
Delete(GroupSymbol group,
Criteria criteria)
Constructs an instance of this class given the group and criteria.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor.
|
boolean |
areResultsCachable()
Whether the results are cachable.
|
Object |
clone()
Return a copy of this Delete.
|
boolean |
equals(Object obj)
Compare two commands for equality.
|
Criteria |
getCriteria()
Returns the criteria object for this command.
|
GroupSymbol |
getGroup()
Returns the group being deleted from
|
List |
getProjectedSymbols()
Get the ordered list of all elements returned by this query.
|
int |
getType()
Return type of command.
|
int |
hashCode()
Get hashcode for command.
|
void |
setCriteria(Criteria criteria)
Set the criteria for this Delete command
|
void |
setGroup(GroupSymbol group)
Set the group for this Delete command
|
String |
toString()
Returns a string representation of an instance of this class.
|
addTag, copyMetadataState, getUpdateCount, getUpdateInfo, hasTag, setUpdateCount, setUpdateInfo
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
public Delete()
public Delete(GroupSymbol group)
group
- Identifier of the group to delete data from.public Delete(GroupSymbol group, Criteria criteria)
group
- Identifier of the group to delete data from.criteria
- The criteria specifying constraints on what data will be deleted.public int getType()
getType
in class Command
Command.TYPE_DELETE
public GroupSymbol getGroup()
getGroup
in interface TargetedCommand
public void setGroup(GroupSymbol group)
group
- Group to be associated with this commandpublic Criteria getCriteria()
getCriteria
in interface FilteredCommand
public void setCriteria(Criteria criteria)
setCriteria
in interface FilteredCommand
criteria
- Criteria to be associated with this commandpublic void acceptVisitor(LanguageVisitor visitor)
LanguageObject
acceptVisitor
in interface LanguageObject
visitor
- Visitor being usedpublic int hashCode()
public String toString()
public boolean equals(Object obj)
public Object clone()
clone
in interface LanguageObject
clone
in class Command
public List getProjectedSymbols()
getProjectedSymbols
in class Command
public boolean areResultsCachable()
Command
areResultsCachable
in class Command
Command.areResultsCachable()
Copyright © 2019. All rights reserved.