view m-toolbox/classes/@ltpda_uoh/fromRepository.m @ 7:1e91f84a4be8
database-connection-manager
Make ltpda_up.retrieve work with java.sql.Connection objects
author
Daniele Nicolodi <nicolodi@science.unitn.it>
date
Mon, 05 Dec 2011 16:20:06 +0100 (2011-12-05)
parents
f0afece42f48
children
line source
+ − % Retrieve a ltpda_uo from a repository
+ − %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − %
+ − % FUNCTION: fromRepository
+ − %
+ − % DESCRIPTION: Retrieve a ltpda_uo from a repository
+ − %
+ − % CALL: obj = fromRepository(pl)
+ − %
+ − % PARAMETER: pl: Parameter list object
+ − %
+ − % VERSION: $Id: fromRepository.m,v 1.20 2011/08/15 12:59:04 hewitson Exp $
+ − %
+ − %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − function objs = fromRepository(obj, pli)
+ −
+ − VERSION = 'ltpda_uoh: $Id: fromRepository.m,v 1.20 2011/08/15 12:59:04 hewitson Exp $';
+ −
+ − % get object info
+ − ii = obj.getInfo(class(obj), 'From Repository');
+ − % Set the method version string in the minfo object
+ − ii.setMversion([VERSION '-->' ii.mversion]);
+ −
+ − [objs, plh, ii] = fromRepository@ltpda_uo(obj, pli, ii);
+ −
+ − for ll = 1:numel(objs)
+ − %---- Add history
+ − objs(ll).addHistoryWoChangingUUID(ii, plh(ll), [], objs(ll).hist);
+ −
+ − % Set properties from the plist
+ − objs.setObjectProperties(plh(ll));
+ − end
+ −
+ −
+ − end
+ −