org.teiid.query.sql.lang
Class Drop

java.lang.Object
  extended by org.teiid.query.sql.lang.Command
      extended by org.teiid.query.sql.lang.Drop
All Implemented Interfaces:
java.lang.Cloneable, TargetedCommand, LanguageObject

public class Drop
extends Command
implements TargetedCommand

Since:
5.5

Nested Class Summary
 
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_INSERT, TYPE_QUERY, TYPE_SQL, TYPE_STORED_PROCEDURE, TYPE_TRIGGER_ACTION, TYPE_UNKNOWN, TYPE_UPDATE, TYPE_UPDATE_PROCEDURE
 
Constructor Summary
Drop()
           
 
Method Summary
 void acceptVisitor(LanguageVisitor visitor)
          Method for accepting a visitor.
 boolean areResultsCachable()
          Whether the results are cachable.
 java.lang.Object clone()
          Implement clone to make objects cloneable.
 boolean equals(java.lang.Object obj)
           
 GroupSymbol getGroup()
           
 java.util.List getProjectedSymbols()
          Get the ordered list of all elements returned by this query.
 GroupSymbol getTable()
           
 int getType()
          Return type of command to make it easier to build switch statements by command type.
 int hashCode()
           
 void setTable(GroupSymbol table)
           
 java.lang.String toString()
          Returns a string representation of an instance of this class.
 
Methods inherited from class org.teiid.query.sql.lang.Command
addExternalGroupsToContext, addExternalGroupToContext, copyMetadataState, getAllExternalGroups, getCacheHint, getCorrelatedReferences, getExternalGroupContexts, getOption, getProcessorPlan, getTemporaryMetadata, getUpdateCommandSymbol, isResolved, printCommandTree, printCommandTree, pushNewResolvingContext, returnsResultSet, sameOptionAndHint, setCacheHint, setCorrelatedReferences, setExternalGroupContexts, setIsResolved, setOption, setProcessorPlan, setTemporaryMetadata
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Drop

public Drop()
Method Detail

getTable

public GroupSymbol getTable()

getGroup

public GroupSymbol getGroup()
Specified by:
getGroup in interface TargetedCommand

setTable

public void setTable(GroupSymbol table)

getType

public int getType()
Description copied from class: Command
Return type of command to make it easier to build switch statements by command type.

Specified by:
getType in class Command
Returns:
Type from TYPE constants
Since:
5.5
See Also:
Command.getType()

clone

public java.lang.Object clone()
Description copied from interface: LanguageObject
Implement clone to make objects cloneable.

Specified by:
clone in interface LanguageObject
Specified by:
clone in class Command
Returns:
Deep clone of this object
Since:
5.5
See Also:
Command.clone()

getProjectedSymbols

public java.util.List getProjectedSymbols()
Description copied from class: Command
Get 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:
getProjectedSymbols in class Command
Returns:
Ordered list of SingleElementSymbol
Since:
5.5
See Also:
Command.getProjectedSymbols()

areResultsCachable

public boolean areResultsCachable()
Description copied from class: Command
Whether the results are cachable.

Specified by:
areResultsCachable in class Command
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: LanguageObject
Method for accepting a visitor. It is the responsibility of the language object to call back on the visitor.

Specified by:
acceptVisitor in interface LanguageObject
Parameters:
visitor - Visitor being used
Since:
5.5
See Also:
LanguageObject.acceptVisitor(org.teiid.query.sql.LanguageVisitor)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Description copied from class: Command
Returns a string representation of an instance of this class.

Overrides:
toString in class Command
Returns:
String representation of object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2011. All Rights Reserved.