01: /*
02: * Created on Feb 16, 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.XSSLAction;
12: import org.xdev.base.xssl.XSSLReference;
13: import org.xdev.base.xssl.XSSLReturn;
14:
15: /**
16: * @author AYegorov
17: *
18: * To change the template for this generated type comment go to
19: * Window>Preferences>Java>Code Generation>Code and Comments
20: */
21: public class TransactionRollback extends XSSLReference {
22: /**
23: * @param id
24: */
25: public TransactionRollback(String id) {
26: super (id);
27: // XXX Auto-generated constructor stub
28: }
29:
30: /**
31: * @param id
32: * @param properties
33: */
34: public TransactionRollback(String id, HashMap properties) {
35: super (id, properties);
36: // XXX Auto-generated constructor stub
37: }
38:
39: /* (non-Javadoc)
40: * @see org.xdev.base.xssl.XSSLReference#processReference(java.lang.Object)
41: */
42: protected Object processReference(Object reference)
43: throws Exception {
44: Object obj = null;
45:
46: XSSLAction action = (XSSLAction) reference;
47:
48: try {
49:
50: action.rollback();
51:
52: if (action instanceof XSSLReturn) {
53: obj = ((XSSLReturn) action).getObjectValue();
54: }
55: } catch (Exception ex) {
56: this.logError(ex);
57: }
58:
59: return obj;
60: }
61: }
|