
com.arjuna.ArjunaOTS._ArjunaSubtranAwareResourceStub Maven / Gradle / Ivy
package com.arjuna.ArjunaOTS;
/**
* Generated from IDL interface "ArjunaSubtranAwareResource".
*
* @author JacORB IDL compiler V 2.3.1 (JBoss patch01), 29-Jul-2009
* @version generated at Sep 25, 2012 5:03:58 PM
*/
public class _ArjunaSubtranAwareResourceStub
extends org.omg.CORBA.portable.ObjectImpl
implements com.arjuna.ArjunaOTS.ArjunaSubtranAwareResource
{
private String[] ids = {"IDL:arjuna.com/ArjunaOTS/ArjunaSubtranAwareResource:1.0","IDL:omg.org/CosTransactions/SubtransactionAwareResource:1.0","IDL:omg.org/CosTransactions/Resource:1.0"};
public String[] _ids()
{
return ids;
}
public final static java.lang.Class _opsClass = com.arjuna.ArjunaOTS.ArjunaSubtranAwareResourceOperations.class;
public void rollback_subtransaction()
{
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
org.omg.CORBA.portable.OutputStream _os = null;
try
{
_os = _request( "rollback_subtransaction", true);
_is = _invoke(_os);
return;
}
catch( org.omg.CORBA.portable.RemarshalException _rx ){}
catch( org.omg.CORBA.portable.ApplicationException _ax )
{
String _id = _ax.getId();
try
{
_ax.getInputStream().close();
}
catch (java.io.IOException e)
{
throw new RuntimeException("Unexpected exception " + e.toString() );
}
throw new RuntimeException("Unexpected exception " + _id );
}
finally
{
if (_os != null)
{
try
{
_os.close();
}
catch (java.io.IOException e)
{
throw new RuntimeException("Unexpected exception " + e.toString() );
}
}
this._releaseReply(_is);
}
}
else
{
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "rollback_subtransaction", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ArjunaSubtranAwareResourceOperations _localServant = (ArjunaSubtranAwareResourceOperations)_so.servant;
try
{
_localServant.rollback_subtransaction();
}
finally
{
_servant_postinvoke(_so);
}
return;
}
}
}
public void rollback() throws org.omg.CosTransactions.HeuristicHazard,org.omg.CosTransactions.HeuristicMixed,org.omg.CosTransactions.HeuristicCommit
{
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
org.omg.CORBA.portable.OutputStream _os = null;
try
{
_os = _request( "rollback", true);
_is = _invoke(_os);
return;
}
catch( org.omg.CORBA.portable.RemarshalException _rx ){}
catch( org.omg.CORBA.portable.ApplicationException _ax )
{
String _id = _ax.getId();
try
{
if( _id.equals("IDL:omg.org/CosTransactions/HeuristicHazard:1.0"))
{
throw org.omg.CosTransactions.HeuristicHazardHelper.read(_ax.getInputStream());
}
else
if( _id.equals("IDL:omg.org/CosTransactions/HeuristicMixed:1.0"))
{
throw org.omg.CosTransactions.HeuristicMixedHelper.read(_ax.getInputStream());
}
else
if( _id.equals("IDL:omg.org/CosTransactions/HeuristicCommit:1.0"))
{
throw org.omg.CosTransactions.HeuristicCommitHelper.read(_ax.getInputStream());
}
else
{
throw new RuntimeException("Unexpected exception " + _id );
}
}
finally
{
try
{
_ax.getInputStream().close();
}
catch (java.io.IOException e)
{
throw new RuntimeException("Unexpected exception " + e.toString() );
}
}
}
finally
{
if (_os != null)
{
try
{
_os.close();
}
catch (java.io.IOException e)
{
throw new RuntimeException("Unexpected exception " + e.toString() );
}
}
this._releaseReply(_is);
}
}
else
{
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "rollback", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ArjunaSubtranAwareResourceOperations _localServant = (ArjunaSubtranAwareResourceOperations)_so.servant;
try
{
_localServant.rollback();
}
finally
{
_servant_postinvoke(_so);
}
return;
}
}
}
public void commit_subtransaction(org.omg.CosTransactions.Coordinator parent)
{
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
org.omg.CORBA.portable.OutputStream _os = null;
try
{
_os = _request( "commit_subtransaction", true);
org.omg.CosTransactions.CoordinatorHelper.write(_os,parent);
_is = _invoke(_os);
return;
}
catch( org.omg.CORBA.portable.RemarshalException _rx ){}
catch( org.omg.CORBA.portable.ApplicationException _ax )
{
String _id = _ax.getId();
try
{
_ax.getInputStream().close();
}
catch (java.io.IOException e)
{
throw new RuntimeException("Unexpected exception " + e.toString() );
}
throw new RuntimeException("Unexpected exception " + _id );
}
finally
{
if (_os != null)
{
try
{
_os.close();
}
catch (java.io.IOException e)
{
throw new RuntimeException("Unexpected exception " + e.toString() );
}
}
this._releaseReply(_is);
}
}
else
{
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "commit_subtransaction", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ArjunaSubtranAwareResourceOperations _localServant = (ArjunaSubtranAwareResourceOperations)_so.servant;
try
{
_localServant.commit_subtransaction(parent);
}
finally
{
_servant_postinvoke(_so);
}
return;
}
}
}
public void commit() throws org.omg.CosTransactions.NotPrepared,org.omg.CosTransactions.HeuristicHazard,org.omg.CosTransactions.HeuristicMixed,org.omg.CosTransactions.HeuristicRollback
{
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
org.omg.CORBA.portable.OutputStream _os = null;
try
{
_os = _request( "commit", true);
_is = _invoke(_os);
return;
}
catch( org.omg.CORBA.portable.RemarshalException _rx ){}
catch( org.omg.CORBA.portable.ApplicationException _ax )
{
String _id = _ax.getId();
try
{
if( _id.equals("IDL:omg.org/CosTransactions/NotPrepared:1.0"))
{
throw org.omg.CosTransactions.NotPreparedHelper.read(_ax.getInputStream());
}
else
if( _id.equals("IDL:omg.org/CosTransactions/HeuristicHazard:1.0"))
{
throw org.omg.CosTransactions.HeuristicHazardHelper.read(_ax.getInputStream());
}
else
if( _id.equals("IDL:omg.org/CosTransactions/HeuristicMixed:1.0"))
{
throw org.omg.CosTransactions.HeuristicMixedHelper.read(_ax.getInputStream());
}
else
if( _id.equals("IDL:omg.org/CosTransactions/HeuristicRollback:1.0"))
{
throw org.omg.CosTransactions.HeuristicRollbackHelper.read(_ax.getInputStream());
}
else
{
throw new RuntimeException("Unexpected exception " + _id );
}
}
finally
{
try
{
_ax.getInputStream().close();
}
catch (java.io.IOException e)
{
throw new RuntimeException("Unexpected exception " + e.toString() );
}
}
}
finally
{
if (_os != null)
{
try
{
_os.close();
}
catch (java.io.IOException e)
{
throw new RuntimeException("Unexpected exception " + e.toString() );
}
}
this._releaseReply(_is);
}
}
else
{
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "commit", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ArjunaSubtranAwareResourceOperations _localServant = (ArjunaSubtranAwareResourceOperations)_so.servant;
try
{
_localServant.commit();
}
finally
{
_servant_postinvoke(_so);
}
return;
}
}
}
public org.omg.CosTransactions.Vote prepare_subtransaction()
{
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
org.omg.CORBA.portable.OutputStream _os = null;
try
{
_os = _request( "prepare_subtransaction", true);
_is = _invoke(_os);
org.omg.CosTransactions.Vote _result = org.omg.CosTransactions.VoteHelper.read(_is);
return _result;
}
catch( org.omg.CORBA.portable.RemarshalException _rx ){}
catch( org.omg.CORBA.portable.ApplicationException _ax )
{
String _id = _ax.getId();
try
{
_ax.getInputStream().close();
}
catch (java.io.IOException e)
{
throw new RuntimeException("Unexpected exception " + e.toString() );
}
throw new RuntimeException("Unexpected exception " + _id );
}
finally
{
if (_os != null)
{
try
{
_os.close();
}
catch (java.io.IOException e)
{
throw new RuntimeException("Unexpected exception " + e.toString() );
}
}
this._releaseReply(_is);
}
}
else
{
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "prepare_subtransaction", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ArjunaSubtranAwareResourceOperations _localServant = (ArjunaSubtranAwareResourceOperations)_so.servant;
org.omg.CosTransactions.Vote _result;
try
{
_result = _localServant.prepare_subtransaction();
}
finally
{
_servant_postinvoke(_so);
}
return _result;
}
}
}
public org.omg.CosTransactions.Vote prepare() throws org.omg.CosTransactions.HeuristicHazard,org.omg.CosTransactions.HeuristicMixed
{
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
org.omg.CORBA.portable.OutputStream _os = null;
try
{
_os = _request( "prepare", true);
_is = _invoke(_os);
org.omg.CosTransactions.Vote _result = org.omg.CosTransactions.VoteHelper.read(_is);
return _result;
}
catch( org.omg.CORBA.portable.RemarshalException _rx ){}
catch( org.omg.CORBA.portable.ApplicationException _ax )
{
String _id = _ax.getId();
try
{
if( _id.equals("IDL:omg.org/CosTransactions/HeuristicHazard:1.0"))
{
throw org.omg.CosTransactions.HeuristicHazardHelper.read(_ax.getInputStream());
}
else
if( _id.equals("IDL:omg.org/CosTransactions/HeuristicMixed:1.0"))
{
throw org.omg.CosTransactions.HeuristicMixedHelper.read(_ax.getInputStream());
}
else
{
throw new RuntimeException("Unexpected exception " + _id );
}
}
finally
{
try
{
_ax.getInputStream().close();
}
catch (java.io.IOException e)
{
throw new RuntimeException("Unexpected exception " + e.toString() );
}
}
}
finally
{
if (_os != null)
{
try
{
_os.close();
}
catch (java.io.IOException e)
{
throw new RuntimeException("Unexpected exception " + e.toString() );
}
}
this._releaseReply(_is);
}
}
else
{
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "prepare", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ArjunaSubtranAwareResourceOperations _localServant = (ArjunaSubtranAwareResourceOperations)_so.servant;
org.omg.CosTransactions.Vote _result;
try
{
_result = _localServant.prepare();
}
finally
{
_servant_postinvoke(_so);
}
return _result;
}
}
}
public void forget()
{
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
org.omg.CORBA.portable.OutputStream _os = null;
try
{
_os = _request( "forget", true);
_is = _invoke(_os);
return;
}
catch( org.omg.CORBA.portable.RemarshalException _rx ){}
catch( org.omg.CORBA.portable.ApplicationException _ax )
{
String _id = _ax.getId();
try
{
_ax.getInputStream().close();
}
catch (java.io.IOException e)
{
throw new RuntimeException("Unexpected exception " + e.toString() );
}
throw new RuntimeException("Unexpected exception " + _id );
}
finally
{
if (_os != null)
{
try
{
_os.close();
}
catch (java.io.IOException e)
{
throw new RuntimeException("Unexpected exception " + e.toString() );
}
}
this._releaseReply(_is);
}
}
else
{
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "forget", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ArjunaSubtranAwareResourceOperations _localServant = (ArjunaSubtranAwareResourceOperations)_so.servant;
try
{
_localServant.forget();
}
finally
{
_servant_postinvoke(_so);
}
return;
}
}
}
public void commit_one_phase() throws org.omg.CosTransactions.HeuristicHazard
{
while(true)
{
if(! this._is_local())
{
org.omg.CORBA.portable.InputStream _is = null;
org.omg.CORBA.portable.OutputStream _os = null;
try
{
_os = _request( "commit_one_phase", true);
_is = _invoke(_os);
return;
}
catch( org.omg.CORBA.portable.RemarshalException _rx ){}
catch( org.omg.CORBA.portable.ApplicationException _ax )
{
String _id = _ax.getId();
try
{
if( _id.equals("IDL:omg.org/CosTransactions/HeuristicHazard:1.0"))
{
throw org.omg.CosTransactions.HeuristicHazardHelper.read(_ax.getInputStream());
}
else
{
throw new RuntimeException("Unexpected exception " + _id );
}
}
finally
{
try
{
_ax.getInputStream().close();
}
catch (java.io.IOException e)
{
throw new RuntimeException("Unexpected exception " + e.toString() );
}
}
}
finally
{
if (_os != null)
{
try
{
_os.close();
}
catch (java.io.IOException e)
{
throw new RuntimeException("Unexpected exception " + e.toString() );
}
}
this._releaseReply(_is);
}
}
else
{
org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke( "commit_one_phase", _opsClass );
if( _so == null )
throw new org.omg.CORBA.UNKNOWN("local invocations not supported!");
ArjunaSubtranAwareResourceOperations _localServant = (ArjunaSubtranAwareResourceOperations)_so.servant;
try
{
_localServant.commit_one_phase();
}
finally
{
_servant_postinvoke(_so);
}
return;
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy