comparison m-toolbox/classes/@pest/pest.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
comparison
equal deleted inserted replaced
22:b11e88004fca 23:a71a40911c27
303 303
304 case 2 304 case 2
305 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 305 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
306 %%%%%%%%%%%%%%%%%%%%%%%%%%% two input %%%%%%%%%%%%%%%%%%%%%%%%%%% 306 %%%%%%%%%%%%%%%%%%%%%%%%%%% two input %%%%%%%%%%%%%%%%%%%%%%%%%%%
307 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 307 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
308 if (isa(varargin{1}, 'database') || isa(varargin{1}, 'mpipeline.repository.RepositoryConnection')) && isnumeric(varargin{2}) 308 if (isa(varargin{1}, 'database') || isa(varargin{1}, 'java.sql.Connection')) && isnumeric(varargin{2})
309 %%%%%%%%%% obj = pest(<database-object>, [IDs]) %%%%%%%%%% 309 %%%%%%%%%% obj = pest(<database-object>, [IDs]) %%%%%%%%%%
310 obj = obj.fromRepository(plist('conn', varargin{1}, 'id', varargin{2})); 310 obj = obj.fromRepository(plist('conn', varargin{1}, 'id', varargin{2}));
311 311
312 elseif isnumeric(varargin{1}) && (iscell(varargin{2}) || ischar(varargin{2})) 312 elseif isnumeric(varargin{1}) && (iscell(varargin{2}) || ischar(varargin{2}))
313 %%%%%%%%%% obj = pest(y, paramNames) %%%%%%%%%% 313 %%%%%%%%%% obj = pest(y, paramNames) %%%%%%%%%%