comparison m-toolbox/classes/tests/database/@ltpda_database/ltpda_database.m @ 25:79dc7091dbbc database-connection-manager

Update tests
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Mon, 05 Dec 2011 16:20:06 +0100
parents f0afece42f48
children
comparison
equal deleted inserted replaced
24:056f8e1e995e 25:79dc7091dbbc
42 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 42 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
43 % Destructor % 43 % Destructor %
44 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 44 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
45 function delete(varargin) 45 function delete(varargin)
46 utp = varargin{1}; 46 utp = varargin{1};
47 % Make sure that we remove the connection from the object and that it 47 % Close connection
48 % is not locked. 48 utp.conn.close();
49 if isa(utp.conn, 'mpipeline.repository.RepositoryConnection')
50 utp.conn.setLocked(false);
51 end
52 utp.conn = []; 49 utp.conn = [];
53 end 50 end
54 end 51 end
55 52
56 methods 53 methods