001: // @@
002: // @@
003: /*
004: * Wi.Ser Framework
005: *
006: * Version: 1.8.1, 20-September-2007
007: * Copyright (C) 2005 Dirk von der Weiden <dvdw@imail.de>
008: *
009: * This library is free software; you can redistribute it and/or
010: * modify it under the terms of the GNU Lesser General Public
011: * License as published by the Free Software Foundation; either
012: * version 2 of the License, or (at your option) any later version.
013: *
014: * This library is distributed in the hope that it will be useful,
015: * but WITHOUT ANY WARRANTY; without even the implied warranty of
016: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
017: * Lesser General Public License for more details.
018: *
019: * You should have received a copy of the GNU Lesser General Public
020: * License along with this library located in LGPL.txt in the
021: * license directory; if not, write to the
022: * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
023: * Boston, MA 02111-1307, USA.
024: *
025: * If this agreement does not cover your requirements, please contact us
026: * via email to get detailed information about the commercial license
027: * or our service offerings!
028: *
029: */
030: // @@
031: package de.ug2t.process;
032:
033: import java.util.*;
034:
035: import de.ug2t.kernel.*;
036: import de.ug2t.unifiedGui.*;
037: import de.ug2t.unifiedGui.interfaces.*;
038:
039: // Die eigentlichen Transaktionen werden als Ableitungen implementiert, die
040: // Funtionsclass (Init, Exit, ...)
041: // werden als innere Klassen implementiert, die Funktionen werden im Konstruktor
042: // gesetzt.
043:
044: public class PcTransaction implements IKeExecutable,
045: IUnGuiEventListener {
046: // @@
047:
048: protected IKeExecutable pdm_work = null;
049:
050: // @@
051:
052: public void pcmf_execListener(UnComponent xParam) throws Exception {
053: this .pcmf_execObj(xParam);
054:
055: return;
056: };
057:
058: // @@
059:
060: public Object pcmf_work(Object xObj) {
061:
062: // @@
063:
064: if (this .pdm_work != null)
065: return (this .pdm_work.pcmf_execObj(xObj));
066: else
067: return (null);
068: };
069:
070: public Object pcmf_work_autoCommit(Object xObj) {
071:
072: Object l_ret = null;
073:
074: // @@
075:
076: l_ret = this .pcmf_work(xObj);
077:
078: // @@
079:
080: return (l_ret);
081: };
082:
083: // @@
084:
085: public final IKeExecutable pcmf_setWorkFct(IKeExecutable xFct) {
086:
087: // @@
088:
089: IKeExecutable l_obj = this .pdm_work;
090: this .pdm_work = xFct;
091:
092: return (l_obj);
093: };
094:
095: // @@
096:
097: public Object pcmf_execObj(Object xObj) {
098: return (this.pcmf_work_autoCommit(xObj));
099: };
100: }
|