01: /*
02: * Created on Jan 12, 2004
03: *
04: * To change the template for this generated file go to
05: * Window>Preferences>Java>Code Generation>Code and Comments
06: */
07: package org.xdev.base.xssl.manage;
08:
09: import java.util.HashMap;
10:
11: import org.xdev.base.xssl.XReference;
12: import org.xdev.base.xssl.XSSLAction;
13: import org.xdev.base.xssl.XSSLReference;
14: import org.xdev.base.xssl.XSSLReturn;
15:
16: /**
17: * @author AYegorov
18: *
19: * To change the template for this generated type comment go to
20: * Window>Preferences>Java>Code Generation>Code and Comments
21: */
22: public class TransactionCommit extends XSSLReference {
23:
24: /**
25: * @param id
26: */
27: public TransactionCommit(String id) {
28: super (id);
29: // XXX Auto-generated constructor stub
30: }
31:
32: /**
33: * @param id
34: * @param properties
35: */
36: public TransactionCommit(String id, HashMap properties) {
37: super (id, properties);
38: // XXX Auto-generated constructor stub
39: }
40:
41: /* (non-Javadoc)
42: * @see org.xdev.base.xssl.XSSLReference#processReference(java.lang.Object)
43: */
44: protected Object processReference(Object reference) {
45: Object obj = null;
46:
47: this .logDebug("Commiting: " + reference);
48:
49: if (reference instanceof XSSLAction) {
50:
51: XSSLAction action = (XSSLAction) reference;
52:
53: try {
54:
55: action.commit();
56:
57: if (action instanceof XSSLReturn) {
58: obj = ((XSSLReturn) action).getObjectValue();
59: }
60: } catch (Exception ex) {
61: this.log(ex);
62: }
63: }
64:
65: return obj;
66: }
67:
68: }
|