public class Delete extends ProcedureContainer implements FilteredCommand
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 |
|---|
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, setUpdateInfoaddExternalGroupToContext, 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 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 CommandCommand.TYPE_DELETEpublic GroupSymbol getGroup()
getGroup in interface TargetedCommandpublic void setGroup(GroupSymbol group)
group - Group to be associated with this commandpublic Criteria getCriteria()
getCriteria in interface FilteredCommandpublic void setCriteria(Criteria criteria)
setCriteria in interface FilteredCommandcriteria - Criteria to be associated with this commandpublic void acceptVisitor(LanguageVisitor visitor)
LanguageObjectacceptVisitor in interface LanguageObjectvisitor - Visitor being usedpublic int hashCode()
public String toString()
public boolean equals(Object obj)
public Object clone()
clone in interface LanguageObjectclone in class Commandpublic List getProjectedSymbols()
getProjectedSymbols in class Commandpublic boolean areResultsCachable()
CommandareResultsCachable in class CommandCommand.areResultsCachable()Copyright © 2017 JBoss by Red Hat. All rights reserved.