comparison m-toolbox/classes/@ao/ao.m @ 23:a71a40911c27 database-connection-manager

Update check for repository connection parameter in constructors
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Mon, 05 Dec 2011 16:20:06 +0100
parents f0afece42f48
children a59cdb8aaf31
comparison
equal deleted inserted replaced
22:b11e88004fca 23:a71a40911c27
578 case 2 578 case 2
579 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 579 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
580 %%%%%%%%%%%%%%%%%%%%%%%%%%% two inputs %%%%%%%%%%%%%%%%%%%%%%%%%% 580 %%%%%%%%%%%%%%%%%%%%%%%%%%% two inputs %%%%%%%%%%%%%%%%%%%%%%%%%%
581 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 581 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
582 582
583 if isa(varargin{1}, 'database') || isa(varargin{1}, 'mpipeline.repository.RepositoryConnection') 583 if isa(varargin{1}, 'database') || isa(varargin{1}, 'java.sql.Connection')
584 %%%%%%%%%% ao(database-object, [IDs]) %%%%%%%%%% 584 %%%%%%%%%% ao(database-object, [IDs]) %%%%%%%%%%
585 utils.helper.msg(msg.PROC1, 'constructing from database object'); 585 utils.helper.msg(msg.PROC1, 'constructing from database object');
586 pl = plist('conn', varargin{1}, 'id', varargin{2}); 586 pl = plist('conn', varargin{1}, 'id', varargin{2});
587 obj = obj.fromRepository(pl); 587 obj = obj.fromRepository(pl);
588 588