Mercurial > hg > ltpda
comparison m-toolbox/classes/@matrix/matrix.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 |
---|---|
149 if isa(varargin{1}, 'ltpda_uoh') && isa(varargin{2}, 'ltpda_uoh') | 149 if isa(varargin{1}, 'ltpda_uoh') && isa(varargin{2}, 'ltpda_uoh') |
150 %%%%%%%%%% f = matrix(a1, a2) %%%%%%%%%% | 150 %%%%%%%%%% f = matrix(a1, a2) %%%%%%%%%% |
151 utils.helper.msg(msg.OPROC1, 'retrieve from repository'); | 151 utils.helper.msg(msg.OPROC1, 'retrieve from repository'); |
152 obj = obj.fromInput(plist('objs', varargin), callerIsMethod); | 152 obj = obj.fromInput(plist('objs', varargin), callerIsMethod); |
153 | 153 |
154 elseif (isa(varargin{1}, 'database') || isa(varargin{1}, 'mpipeline.repository.RepositoryConnection')) ... | 154 elseif (isa(varargin{1}, 'database') || isa(varargin{1}, 'java.sql.Connection')) ... |
155 && isnumeric(varargin{2}) | 155 && isnumeric(varargin{2}) |
156 %%%%%%%%%% f = matrix(<database-object>, [IDs]) %%%%%%%%%% | 156 %%%%%%%%%% f = matrix(<database-object>, [IDs]) %%%%%%%%%% |
157 utils.helper.msg(msg.OPROC1, 'retrieve from repository'); | 157 utils.helper.msg(msg.OPROC1, 'retrieve from repository'); |
158 obj = obj.fromRepository(plist('conn', varargin{1}, 'id', varargin{2})); | 158 obj = obj.fromRepository(plist('conn', varargin{1}, 'id', varargin{2})); |
159 | 159 |