Package gavo :: Package rscdef :: Module column :: Class ColumnNameAttribute
[frames] | no frames]

Class ColumnNameAttribute

source code

               object --+                
                        |                
base.attrdef.AttributeDef --+            
                            |            
 base.attrdef.AtomicAttribute --+        
                                |        
    base.attrdef.UnicodeAttribute --+    
                                    |    
                   ParamNameAttribute --+
                                        |
                                       ColumnNameAttribute

An attribute containing a name suitable for SQL table names.

Column names are special in that you can prefix them with "quoted/" and then get a delimited identifier. This is something you probably shouldn't use.

Using ADQL/SQL reserved words (without quoting) here yields a warning.

Instance Methods
 
parse(self, value)
returns a typed python value for the string representation value.
source code
 
unparse(self, value)
returns a typed python value for the string representation value.
source code

Inherited from base.attrdef.UnicodeAttribute: __init__, feed

Inherited from base.attrdef.AtomicAttribute: feedObject, getCopy, makeUserDoc

Inherited from base.attrdef.AttributeDef: doCallbacks, iterParentMethods

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

Properties
  typeDesc_

Inherited from object: __class__

Method Details

parse(self, value)

source code 

returns a typed python value for the string representation value.

value can be expected to be a unicode string.

Overrides: base.attrdef.AtomicAttribute.parse
(inherited documentation)

unparse(self, value)

source code 

returns a typed python value for the string representation value.

value can be expected to be a unicode string.

Overrides: base.attrdef.AtomicAttribute.unparse
(inherited documentation)

Property Details

typeDesc_

Get Method:
unreachable.typeDesc_(self)