Mercurial > hg > ltpda
comparison m-toolbox/classes/@filterbank/filterbank.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 |
---|---|
128 | 128 |
129 case 2 | 129 case 2 |
130 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | 130 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
131 %%%%%%%%%%%%%%%%%%%%%%%%%%% two input %%%%%%%%%%%%%%%%%%%%%%%%%%% | 131 %%%%%%%%%%%%%%%%%%%%%%%%%%% two input %%%%%%%%%%%%%%%%%%%%%%%%%%% |
132 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | 132 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
133 if (isa(varargin{1}, 'database') || isa(varargin{1}, 'mpipeline.repository.RepositoryConnection')) && isnumeric(varargin{2}) | 133 if (isa(varargin{1}, 'database') || isa(varargin{1}, 'java.sql.Connection')) && isnumeric(varargin{2}) |
134 %%%%%%%%%% mdl = filterbank(<database-object>, [IDs]) %%%%%%%%%% | 134 %%%%%%%%%% mdl = filterbank(<database-object>, [IDs]) %%%%%%%%%% |
135 obj = obj.fromRepository(plist('conn', varargin{1}, 'id', varargin{2})); | 135 obj = obj.fromRepository(plist('conn', varargin{1}, 'id', varargin{2})); |
136 | 136 |
137 elseif isa(varargin{1}, 'filterbank') && isa(varargin{2}, 'plist') && isempty(varargin{2}.params) | 137 elseif isa(varargin{1}, 'filterbank') && isa(varargin{2}, 'plist') && isempty(varargin{2}.params) |
138 %%%%%%%%%% f = filterbank(filterbank, <empty-plist>) %%%%%%%%%% | 138 %%%%%%%%%% f = filterbank(filterbank, <empty-plist>) %%%%%%%%%% |