com.arjuna.ArjunaOTS.ArjunaTransactionPOA Maven / Gradle / Ivy
package com.arjuna.ArjunaOTS;
/**
* Generated from IDL interface "ArjunaTransaction".
*
* @author JacORB IDL compiler V 2.3.1 (JBoss patch01), 29-Jul-2009
* @version generated at Oct 2, 2012 3:07:46 PM
*/
public abstract class ArjunaTransactionPOA
extends org.omg.PortableServer.Servant
implements org.omg.CORBA.portable.InvokeHandler, com.arjuna.ArjunaOTS.ArjunaTransactionOperations
{
static private final java.util.Hashtable m_opsHash = new java.util.Hashtable();
static
{
m_opsHash.put ( "get_top_level_status", new java.lang.Integer(0));
m_opsHash.put ( "_get_topLevelUid", new java.lang.Integer(1));
m_opsHash.put ( "register_resource", new java.lang.Integer(2));
m_opsHash.put ( "create_subtransaction", new java.lang.Integer(3));
m_opsHash.put ( "commit", new java.lang.Integer(4));
m_opsHash.put ( "is_related_transaction", new java.lang.Integer(5));
m_opsHash.put ( "rollback_only", new java.lang.Integer(6));
m_opsHash.put ( "is_ancestor_transaction", new java.lang.Integer(7));
m_opsHash.put ( "is_same_transaction", new java.lang.Integer(8));
m_opsHash.put ( "hash_transaction", new java.lang.Integer(9));
m_opsHash.put ( "get_status", new java.lang.Integer(10));
m_opsHash.put ( "hash_top_level_tran", new java.lang.Integer(11));
m_opsHash.put ( "register_synchronization", new java.lang.Integer(12));
m_opsHash.put ( "is_top_level_transaction", new java.lang.Integer(13));
m_opsHash.put ( "get_parent_status", new java.lang.Integer(14));
m_opsHash.put ( "get_txcontext", new java.lang.Integer(15));
m_opsHash.put ( "get_transaction_name", new java.lang.Integer(16));
m_opsHash.put ( "_get_uid", new java.lang.Integer(17));
m_opsHash.put ( "register_subtran_aware", new java.lang.Integer(18));
m_opsHash.put ( "is_descendant_transaction", new java.lang.Integer(19));
m_opsHash.put ( "rollback", new java.lang.Integer(20));
}
private String[] ids = {"IDL:arjuna.com/ArjunaOTS/ArjunaTransaction:1.0","IDL:omg.org/CosTransactions/Terminator:1.0","IDL:arjuna.com/ArjunaOTS/UidCoordinator:1.0","IDL:omg.org/CosTransactions/Coordinator:1.0"};
public com.arjuna.ArjunaOTS.ArjunaTransaction _this()
{
return com.arjuna.ArjunaOTS.ArjunaTransactionHelper.narrow(_this_object());
}
public com.arjuna.ArjunaOTS.ArjunaTransaction _this(org.omg.CORBA.ORB orb)
{
return com.arjuna.ArjunaOTS.ArjunaTransactionHelper.narrow(_this_object(orb));
}
public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler)
throws org.omg.CORBA.SystemException
{
org.omg.CORBA.portable.OutputStream _out = null;
// do something
// quick lookup of operation
java.lang.Integer opsIndex = (java.lang.Integer)m_opsHash.get ( method );
if ( null == opsIndex )
throw new org.omg.CORBA.BAD_OPERATION(method + " not found");
switch ( opsIndex.intValue() )
{
case 0: // get_top_level_status
{
_out = handler.createReply();
org.omg.CosTransactions.StatusHelper.write(_out,get_top_level_status());
break;
}
case 1: // _get_topLevelUid
{
_out = handler.createReply();
_out.write_string(topLevelUid());
break;
}
case 2: // register_resource
{
try
{
org.omg.CosTransactions.Resource _arg0=org.omg.CosTransactions.ResourceHelper.read(_input);
_out = handler.createReply();
org.omg.CosTransactions.RecoveryCoordinatorHelper.write(_out,register_resource(_arg0));
}
catch(org.omg.CosTransactions.Inactive _ex0)
{
_out = handler.createExceptionReply();
org.omg.CosTransactions.InactiveHelper.write(_out, _ex0);
}
break;
}
case 3: // create_subtransaction
{
try
{
_out = handler.createReply();
org.omg.CosTransactions.ControlHelper.write(_out,create_subtransaction());
}
catch(org.omg.CosTransactions.SubtransactionsUnavailable _ex0)
{
_out = handler.createExceptionReply();
org.omg.CosTransactions.SubtransactionsUnavailableHelper.write(_out, _ex0);
}
catch(org.omg.CosTransactions.Inactive _ex1)
{
_out = handler.createExceptionReply();
org.omg.CosTransactions.InactiveHelper.write(_out, _ex1);
}
break;
}
case 4: // commit
{
try
{
boolean _arg0=_input.read_boolean();
_out = handler.createReply();
commit(_arg0);
}
catch(org.omg.CosTransactions.HeuristicHazard _ex0)
{
_out = handler.createExceptionReply();
org.omg.CosTransactions.HeuristicHazardHelper.write(_out, _ex0);
}
catch(org.omg.CosTransactions.HeuristicMixed _ex1)
{
_out = handler.createExceptionReply();
org.omg.CosTransactions.HeuristicMixedHelper.write(_out, _ex1);
}
break;
}
case 5: // is_related_transaction
{
org.omg.CosTransactions.Coordinator _arg0=org.omg.CosTransactions.CoordinatorHelper.read(_input);
_out = handler.createReply();
_out.write_boolean(is_related_transaction(_arg0));
break;
}
case 6: // rollback_only
{
try
{
_out = handler.createReply();
rollback_only();
}
catch(org.omg.CosTransactions.Inactive _ex0)
{
_out = handler.createExceptionReply();
org.omg.CosTransactions.InactiveHelper.write(_out, _ex0);
}
break;
}
case 7: // is_ancestor_transaction
{
org.omg.CosTransactions.Coordinator _arg0=org.omg.CosTransactions.CoordinatorHelper.read(_input);
_out = handler.createReply();
_out.write_boolean(is_ancestor_transaction(_arg0));
break;
}
case 8: // is_same_transaction
{
org.omg.CosTransactions.Coordinator _arg0=org.omg.CosTransactions.CoordinatorHelper.read(_input);
_out = handler.createReply();
_out.write_boolean(is_same_transaction(_arg0));
break;
}
case 9: // hash_transaction
{
_out = handler.createReply();
_out.write_ulong(hash_transaction());
break;
}
case 10: // get_status
{
_out = handler.createReply();
org.omg.CosTransactions.StatusHelper.write(_out,get_status());
break;
}
case 11: // hash_top_level_tran
{
_out = handler.createReply();
_out.write_ulong(hash_top_level_tran());
break;
}
case 12: // register_synchronization
{
try
{
org.omg.CosTransactions.Synchronization _arg0=org.omg.CosTransactions.SynchronizationHelper.read(_input);
_out = handler.createReply();
register_synchronization(_arg0);
}
catch(org.omg.CosTransactions.SynchronizationUnavailable _ex0)
{
_out = handler.createExceptionReply();
org.omg.CosTransactions.SynchronizationUnavailableHelper.write(_out, _ex0);
}
catch(org.omg.CosTransactions.Inactive _ex1)
{
_out = handler.createExceptionReply();
org.omg.CosTransactions.InactiveHelper.write(_out, _ex1);
}
break;
}
case 13: // is_top_level_transaction
{
_out = handler.createReply();
_out.write_boolean(is_top_level_transaction());
break;
}
case 14: // get_parent_status
{
_out = handler.createReply();
org.omg.CosTransactions.StatusHelper.write(_out,get_parent_status());
break;
}
case 15: // get_txcontext
{
try
{
_out = handler.createReply();
org.omg.CosTransactions.PropagationContextHelper.write(_out,get_txcontext());
}
catch(org.omg.CosTransactions.Unavailable _ex0)
{
_out = handler.createExceptionReply();
org.omg.CosTransactions.UnavailableHelper.write(_out, _ex0);
}
break;
}
case 16: // get_transaction_name
{
_out = handler.createReply();
_out.write_string(get_transaction_name());
break;
}
case 17: // _get_uid
{
_out = handler.createReply();
_out.write_string(uid());
break;
}
case 18: // register_subtran_aware
{
try
{
org.omg.CosTransactions.SubtransactionAwareResource _arg0=org.omg.CosTransactions.SubtransactionAwareResourceHelper.read(_input);
_out = handler.createReply();
register_subtran_aware(_arg0);
}
catch(org.omg.CosTransactions.NotSubtransaction _ex0)
{
_out = handler.createExceptionReply();
org.omg.CosTransactions.NotSubtransactionHelper.write(_out, _ex0);
}
catch(org.omg.CosTransactions.Inactive _ex1)
{
_out = handler.createExceptionReply();
org.omg.CosTransactions.InactiveHelper.write(_out, _ex1);
}
break;
}
case 19: // is_descendant_transaction
{
org.omg.CosTransactions.Coordinator _arg0=org.omg.CosTransactions.CoordinatorHelper.read(_input);
_out = handler.createReply();
_out.write_boolean(is_descendant_transaction(_arg0));
break;
}
case 20: // rollback
{
_out = handler.createReply();
rollback();
break;
}
}
return _out;
}
public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id)
{
return ids;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy