Post work and disconnect

 

sqlTask>>postInitalization 
    "During postInitalization we need to get the mapping data for the mapper object" 
    self spMappings: (XyzMapper withTable: self tableName onSession: self session). 
    SqlTask>>disconnect 

    "do session close and disconnects, handle any errors locally" 

    * Note handle of errorSignal since we might be here handling the take down of a process because of a previous error. Also our session could be hosed and we don't care this late in the game 

    Object errorSignal 
        handle: 
            [:ex | 
            ex return] 
        do: 
            [self session isNil ifFalse: [self session disconnect]. 
            self connection isNil ifFalse: [self connection disconnect]

 

Previous slide Next slide Back to first slide View graphic version

Notes: