/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
DybPython::tab::Rollback Class Reference

List of all members.

Public Member Functions

def __init__
def config
def __enter__
def __exit__

Public Attributes

 insertdate

Detailed Description

INSERTDATE rollback context manager

Definition at line 50 of file tab.py.


Constructor & Destructor Documentation

def DybPython::tab::Rollback::__init__ (   self,
  insertdate 
)

Definition at line 54 of file tab.py.

00055                                    :
00056         self.insertdate = insertdate


Member Function Documentation

def DybPython::tab::Rollback::config (   self,
  insertdate 
)

Definition at line 57 of file tab.py.

00058                                 :
00059         from DybDbi import TimeStamp, gDbi
00060         delta = datetime.timedelta( seconds=1 )    ## is this really needed ? YES as rollback uses "INSERTDATE < t"
00061         ts = TimeStamp.fromAssumedUTCDatetime( insertdate + delta )
00062         gDbi.ConfigRollback("* = %s" % ts.AsString("s") )
00063         return ts

def DybPython::tab::Rollback::__enter__ (   self)

Definition at line 64 of file tab.py.

00065                        :
00066         if self.insertdate != None:
            self.config(self.insertdate) 
def DybPython::tab::Rollback::__exit__ (   self,
  type,
  value,
  tb 
)

Definition at line 67 of file tab.py.

00068                                         :
00069         from DybDbi import gDbi
00070         gDbi.ClearRollbackDates()
00071 


Member Data Documentation

Definition at line 54 of file tab.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:55:41 for DybPython by doxygen 1.7.4