comparison m-toolbox/classes/@parfrac/parfrac.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
200 200
201 case 2 201 case 2
202 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 202 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
203 %%%%%%%%%%%%% Two inputs %%%%%%%%%%%%%%% 203 %%%%%%%%%%%%% Two inputs %%%%%%%%%%%%%%%
204 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 204 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
205 if (isa(varargin{1}, 'database') || isa(varargin{1}, 'mpipeline.repository.RepositoryConnection')) && isnumeric(varargin{2}) 205 if (isa(varargin{1}, 'database') || isa(varargin{1}, 'java.sql.Connection')) && isnumeric(varargin{2})
206 %%%%%%%%%% f = parfrac(<database-object>, [IDs]) %%%%%%%%%% 206 %%%%%%%%%% f = parfrac(<database-object>, [IDs]) %%%%%%%%%%
207 % parfrac(<database-object>, [IDs]) 207 % parfrac(<database-object>, [IDs])
208 utils.helper.msg(msg.OPROC1, 'retrieve from repository'); 208 utils.helper.msg(msg.OPROC1, 'retrieve from repository');
209 obj = obj.fromRepository(plist('conn', varargin{1}, 'id', varargin{2})); 209 obj = obj.fromRepository(plist('conn', varargin{1}, 'id', varargin{2}));
210 210