Package gavo :: Package adql :: Module nodes :: Class SelectNoParens
[frames] | no frames]

Class SelectNoParens

source code

             object --+            
                      |            
utils.autonode.AutoNode --+        
                          |        
                   ADQLNode --+    
                              |    
              ColumnBearingNode --+
                                  |
                                 SelectNoParens
Known Subclasses:

Nested Classes

Inherited from utils.autonode.AutoNode: __metaclass__

Instance Methods
 
getSelectFields(self) source code
 
addFieldInfos(self, context) source code
 
resolveField(self, fieldName) source code
 
getAllNames(self)
yields all relation names mentioned in this node.
source code
 
flatten(self)
returns a string representation of the text content of the tree.
source code
 
suggestAName(self)
returns a string that may or may not be a nice name for a table resulting from this query.
source code
 
getContributingNames(self)
returns a set of table names mentioned below this node.
source code
 
__init__(self, fromClause=None, groupby=None, having=None, orderBy=None, selectList=None, setLimit=None, setQuantifier=None, whereClause=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code

Inherited from ColumnBearingNode: change, getFieldInfo

Inherited from ADQLNode: __repr__, asTree, getFlattenedChildren, iterTree

Inherited from utils.autonode.AutoNode: iterAttributes, iterChildren, iterNodeChildren, iterNodes

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods

Inherited from ADQLNode: fromParseResult

Inherited from utils.autonode.AutoNode: cloneFrom

Class Variables
  type = 'selectNoParens'
hash(x)

Inherited from ColumnBearingNode: fieldInfos, originalTable

Properties

Inherited from object: __class__

Method Details

getAllNames(self)

source code 

yields all relation names mentioned in this node.

Overrides: ColumnBearingNode.getAllNames
(inherited documentation)

flatten(self)

source code 

returns a string representation of the text content of the tree.

This default implementation will only work if you returned all parsed elements as children. This, in turn, is something you only want to do if you are sure that the node is question will not be morphed.

Otherwise, override it to create an SQL fragment out of the parsed attributes.

Overrides: ADQLNode.flatten
(inherited documentation)

suggestAName(self)

source code 

returns a string that may or may not be a nice name for a table resulting from this query.

Whatever is being returned here, it's a regular SQL identifier.

__init__(self, fromClause=None, groupby=None, having=None, orderBy=None, selectList=None, setLimit=None, setQuantifier=None, whereClause=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)