Mercurial > hg > ltpda
comparison m-toolbox/classes/@ssm/ssm.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 | a59cdb8aaf31 |
comparison
equal
deleted
inserted
replaced
22:b11e88004fca | 23:a71a40911c27 |
---|---|
615 % Now validate this object | 615 % Now validate this object |
616 if doValidate | 616 if doValidate |
617 s.validate(); | 617 s.validate(); |
618 end | 618 end |
619 | 619 |
620 elseif (isa(varargin{1}, 'database') || isa(varargin{1}, 'mpipeline.repository.RepositoryConnection')) && isnumeric(varargin{2}) | 620 elseif (isa(varargin{1}, 'database') || isa(varargin{1}, 'java.sql.Connection')) && isnumeric(varargin{2}) |
621 %%%%%%%%%% s = ssm(<database-object>, [IDs]) %%%%%%%%%% | 621 %%%%%%%%%% s = ssm(<database-object>, [IDs]) %%%%%%%%%% |
622 utils.helper.msg(msg.OPROC1, 'retrieve from repository'); | 622 utils.helper.msg(msg.OPROC1, 'retrieve from repository'); |
623 s = s.fromRepository(plist('conn', varargin{1}, 'id', varargin{2})); | 623 s = s.fromRepository(plist('conn', varargin{1}, 'id', varargin{2})); |
624 | 624 |
625 elseif ischar(varargin{1}) | 625 elseif ischar(varargin{1}) |