/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Public Attributes
DybDbi::vrb::Vrb Class Reference

List of all members.

Public Member Functions

def __init__
def __len__
def __getitem__
def offseq_
def __call__
def purge
def __iter__
def next
def replace_insertdate

Public Attributes

 vrb
 seqnos
 kls
 offseq
 cursor

Detailed Description

Definition at line 158 of file vrb.py.


Constructor & Destructor Documentation

def DybDbi::vrb::Vrb::__init__ (   self,
  kls,
  task = -1,
  offseq = 0,
  sqlcontext = "1=1",
  subsite = -1 
)
:param kls:
:param task:
:param offseq:  seqno offset, used by offseq_ for comparison between tables with shifted SEQNO 

Definition at line 159 of file vrb.py.

00160                                                                              :
00161         """
00162         :param kls:
00163         :param task:
00164         :param offseq:  seqno offset, used by offseq_ for comparison between tables with shifted SEQNO 
00165         """
00166         self.vrb = kls.GetTableProxy().MakeValidityRecBuilder( sqlcontext, subsite, task )
00167         self.seqnos = map(lambda _:_.seqno, self.vrb)
00168         self.seqnos.sort()
00169         self.kls = kls
00170         self.offseq = offseq
00171         self.cursor = 0
00172 


Member Function Documentation

def DybDbi::vrb::Vrb::__len__ (   self)

Definition at line 173 of file vrb.py.

00174                      :
00175         return len(self.vrb)

def DybDbi::vrb::Vrb::__getitem__ (   self,
  rowNo 
)
List access with square brackets queries by rowNo. 
But the ordering appears to make no sense, so not very useful. 

Definition at line 176 of file vrb.py.

00177                                  :
00178         """
00179         List access with square brackets queries by rowNo. 
00180         But the ordering appears to make no sense, so not very useful. 
00181         """
00182         return self.vrb.__getitem__(rowNo)

def DybDbi::vrb::Vrb::offseq_ (   self,
  count 
)

Definition at line 183 of file vrb.py.

00184                               :
00185         return self( self.offseq + count + 1 ) 

def DybDbi::vrb::Vrb::__call__ (   self,
  seqno 
)
Call access with round brackets queries by SEQNO

:param seqno:

Definition at line 186 of file vrb.py.

00187                              :
00188         """
00189         Call access with round brackets queries by SEQNO
00190 
00191         :param seqno:
00192         """
00193         return self.vrb.GetValidityRecFromSeqNo(seqno)

def DybDbi::vrb::Vrb::purge (   self)

Definition at line 194 of file vrb.py.

00195                    :
00196         self.kls.GetTableProxy().GetCache().Purge()

def DybDbi::vrb::Vrb::__iter__ (   self)

Definition at line 197 of file vrb.py.

00198                       :
00199         return self

def DybDbi::vrb::Vrb::next (   self)
Adds iterability to the Vrb providing (seqno, vrec) tuples 

Definition at line 200 of file vrb.py.

00201                   :
00202         """
00203         Adds iterability to the Vrb providing (seqno, vrec) tuples 
00204         """ 
00205         if self.cursor >= len(self.seqnos) or self.cursor < 0:
00206              raise StopIteration
00207         else:
00208              seqno = self.seqnos[self.cursor]
00209              vrec = self(seqno)
00210              assert seqno == vrec.seqno, ("seqno vrec.seqno mismatch", seqno, vrec.seqno)
00211              self.cursor += 1
00212              return ( seqno, vrec )

def DybDbi::vrb::Vrb::replace_insertdate (   self,
  ts = None,
  seqnos = [],
  dbno = 0 
)
The functionality of changeing INSERTDATES is not for general use. 
It is intended for special purpose usage only, as INSERTDATEs are subsequently 
fastforwarded to real times anyhow as part of the Standard Operation Procedures.

Definition at line 213 of file vrb.py.

00214                                                               :
00215         """
00216         The functionality of changeing INSERTDATES is not for general use. 
00217         It is intended for special purpose usage only, as INSERTDATEs are subsequently 
00218         fastforwarded to real times anyhow as part of the Standard Operation Procedures.
00219         """
00220         nrep = 0 
00221         if not ts:
00222             ts = TimeStamp()
00223         tbProxy = self.kls.GetTableProxy()
00224         dbProxy = tbProxy.GetDBProxy()
00225         for seqno,vrec in self:
00226             if len(seqnos) == 0 or seqno in seqnos: 
00227                 print "%-4s %s %s " % ( seqno, vrec.insertdate, ts )
00228                 dbProxy.ReplaceInsertDate( ts, seqno, dbno ) 
00229                 nrep +=1
00230         return nrep
00231 
00232 


Member Data Documentation

Definition at line 163 of file vrb.py.

Definition at line 163 of file vrb.py.

Definition at line 163 of file vrb.py.

Definition at line 163 of file vrb.py.

Definition at line 163 of file vrb.py.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:57:25 for DybDbi by doxygen 1.7.4