001    package org.omg.CosTransactions;
002    
003    import org.omg.PortableServer.POA;
004    
005    /**
006     * Generated from IDL interface "Terminator".
007     *
008     * @author JacORB IDL compiler V 2.3.0 (JBoss patch 6), 06-Jun-2007
009     * @version generated at Jun 18, 2012 10:37:00 AM
010     */
011    
012    public class TerminatorPOATie
013            extends TerminatorPOA
014    {
015            private TerminatorOperations _delegate;
016    
017            private POA _poa;
018            public TerminatorPOATie(TerminatorOperations delegate)
019            {
020                    _delegate = delegate;
021            }
022            public TerminatorPOATie(TerminatorOperations delegate, POA poa)
023            {
024                    _delegate = delegate;
025                    _poa = poa;
026            }
027            public org.omg.CosTransactions.Terminator _this()
028            {
029                    return org.omg.CosTransactions.TerminatorHelper.narrow(_this_object());
030            }
031            public org.omg.CosTransactions.Terminator _this(org.omg.CORBA.ORB orb)
032            {
033                    return org.omg.CosTransactions.TerminatorHelper.narrow(_this_object(orb));
034            }
035            public TerminatorOperations _delegate()
036            {
037                    return _delegate;
038            }
039            public void _delegate(TerminatorOperations delegate)
040            {
041                    _delegate = delegate;
042            }
043            public POA _default_POA()
044            {
045                    if (_poa != null)
046                    {
047                            return _poa;
048                    }
049                    return super._default_POA();
050            }
051            public void rollback()
052            {
053    _delegate.rollback();
054            }
055    
056            public void commit(boolean report_heuristics) throws org.omg.CosTransactions.HeuristicHazard,org.omg.CosTransactions.HeuristicMixed
057            {
058    _delegate.commit(report_heuristics);
059            }
060    
061    }