diff m-toolbox/classes/@ao/ao.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
line wrap: on
line diff
--- a/m-toolbox/classes/@ao/ao.m	Mon Dec 05 16:20:06 2011 +0100
+++ b/m-toolbox/classes/@ao/ao.m	Mon Dec 05 16:20:06 2011 +0100
@@ -580,7 +580,7 @@
           %%%%%%%%%%%%%%%%%%%%%%%%%%%   two inputs   %%%%%%%%%%%%%%%%%%%%%%%%%%
           %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
           
-          if isa(varargin{1}, 'database') || isa(varargin{1}, 'mpipeline.repository.RepositoryConnection')
+          if isa(varargin{1}, 'database') || isa(varargin{1}, 'java.sql.Connection')
             %%%%%%%%%%   ao(database-object, [IDs])   %%%%%%%%%%
             utils.helper.msg(msg.PROC1, 'constructing from database object');
             pl = plist('conn', varargin{1}, 'id', varargin{2});