Mercurial > hg > ltpda
comparison m-toolbox/classes/@miir/miir.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 |
---|---|
246 elseif (isa(varargin{1}, 'parfrac')) && isa(varargin{2}, 'plist') && ~isempty(varargin{2}.params) | 246 elseif (isa(varargin{1}, 'parfrac')) && isa(varargin{2}, 'plist') && ~isempty(varargin{2}.params) |
247 %%%%%%%%%% f = miir(parfrac-object, plist-object) %%%%%%%%%% | 247 %%%%%%%%%% f = miir(parfrac-object, plist-object) %%%%%%%%%% |
248 plf = combine(plist('parfrac', varargin{1}),varargin{2}); | 248 plf = combine(plist('parfrac', varargin{1}),varargin{2}); |
249 obj = fromParfrac(obj, plf); | 249 obj = fromParfrac(obj, plf); |
250 | 250 |
251 elseif (isa(varargin{1}, 'database') || isa(varargin{1}, 'mpipeline.repository.RepositoryConnection')) && isnumeric(varargin{2}) | 251 elseif (isa(varargin{1}, 'database') || isa(varargin{1}, 'java.sql.Connection')) && isnumeric(varargin{2}) |
252 %%%%%%%%%% f = miir(<database-object>, [IDs]) %%%%%%%%%% | 252 %%%%%%%%%% f = miir(<database-object>, [IDs]) %%%%%%%%%% |
253 utils.helper.msg(msg.OPROC1, 'retrieve from repository'); | 253 utils.helper.msg(msg.OPROC1, 'retrieve from repository'); |
254 obj = obj.fromRepository(plist('conn', varargin{1}, 'id', varargin{2})); | 254 obj = obj.fromRepository(plist('conn', varargin{1}, 'id', varargin{2})); |
255 | 255 |
256 elseif isa(varargin{1}, 'org.apache.xerces.dom.DeferredElementImpl') && ... | 256 elseif isa(varargin{1}, 'org.apache.xerces.dom.DeferredElementImpl') && ... |