Package gavo :: Package svcs :: Module pql :: Class PQLCaselessPar
[frames] | no frames]

Class PQLCaselessPar

source code

object --+    
         |    
    PQLPar --+
             |
            PQLCaselessPar

a PQL string parameter that's compared with case folding.

Don't count on case folding to work outside of ASCII.

Nested Classes

Inherited from PQLPar: rangeClass

Instance Methods
 
getSQL(self, colName, sqlPars, cmpExpr=None)
Overridden to change cmpExpr.
source code
 
covers(self, value)
returns true if value is within the ranges specified by the PQL expression.
source code

Inherited from PQLPar: __eq__, __init__, __repr__, __str__, getValuesAsSet

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

Class Methods

Inherited from PQLPar: fromLiteral

Static Methods
 
valParser(val)
str(object='') -> string
source code

Inherited from PQLPar: stepParser

Class Variables

Inherited from PQLPar: nullvalue

Properties

Inherited from object: __class__

Method Details

valParser(val)
Static Method

source code 

str(object='') -> string

Return a nice string representation of the object. If the argument is a string, the return value is the same object.

Overrides: valParser
(inherited documentation)

getSQL(self, colName, sqlPars, cmpExpr=None)

source code 

Overridden to change cmpExpr.

Overrides: PQLPar.getSQL

covers(self, value)

source code 

returns true if value is within the ranges specified by the PQL expression.

value must be type-true, i.e., you are responsible for converting it into the type the range are in.

Overrides: PQLPar.covers
(inherited documentation)