function h = transaction
% Returns instance of @transaction class

%   Copyright 1986-2004 The MathWorks, Inc.
%   $Revision: 1.1.6.1 $ $Date: 2004/12/26 21:41:44 $


%% Create transaction and set its the tsTransaction and metaTransaction
%% properties to capture operations on the time series and the metadata.
h = tsguis.transaction;
h.tsTransaction = handle.transaction(get(findpackage('hds'),...
    'DefaultDatabase'));
h.metaTransaction = handle.transaction(get(findpackage('tsdata'), ...
    'DefaultDatabase'));
set([h.tsTransaction;h.metaTransaction],'OperationStore','on', ...
    'InverseOperationStore','on');