com.arjuna.ArjunaOTS.ArjunaFactoryPOA Maven / Gradle / Ivy
The newest version!
package com.arjuna.ArjunaOTS;
/**
* Generated from IDL interface "ArjunaFactory".
*
* @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 ArjunaFactoryPOA
extends org.omg.PortableServer.Servant
implements org.omg.CORBA.portable.InvokeHandler, com.arjuna.ArjunaOTS.ArjunaFactoryOperations
{
static private final java.util.Hashtable m_opsHash = new java.util.Hashtable();
static
{
m_opsHash.put ( "getCurrentStatus", new java.lang.Integer(0));
m_opsHash.put ( "getTransaction", new java.lang.Integer(1));
m_opsHash.put ( "numberOfTransactions", new java.lang.Integer(2));
m_opsHash.put ( "getGlobalInfo", new java.lang.Integer(3));
m_opsHash.put ( "getStatus", new java.lang.Integer(4));
m_opsHash.put ( "getChildTransactions", new java.lang.Integer(5));
m_opsHash.put ( "recreate", new java.lang.Integer(6));
m_opsHash.put ( "getTransactionInfo", new java.lang.Integer(7));
m_opsHash.put ( "create", new java.lang.Integer(8));
}
private String[] ids = {"IDL:arjuna.com/ArjunaOTS/ArjunaFactory:1.0","IDL:omg.org/CosTransactions/TransactionFactory:1.0"};
public com.arjuna.ArjunaOTS.ArjunaFactory _this()
{
return com.arjuna.ArjunaOTS.ArjunaFactoryHelper.narrow(_this_object());
}
public com.arjuna.ArjunaOTS.ArjunaFactory _this(org.omg.CORBA.ORB orb)
{
return com.arjuna.ArjunaOTS.ArjunaFactoryHelper.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: // getCurrentStatus
{
try
{
org.omg.CosTransactions.otid_t _arg0=org.omg.CosTransactions.otid_tHelper.read(_input);
_out = handler.createReply();
org.omg.CosTransactions.StatusHelper.write(_out,getCurrentStatus(_arg0));
}
catch(org.omg.CosTransactions.NoTransaction _ex0)
{
_out = handler.createExceptionReply();
org.omg.CosTransactions.NoTransactionHelper.write(_out, _ex0);
}
break;
}
case 1: // getTransaction
{
try
{
org.omg.CosTransactions.otid_t _arg0=org.omg.CosTransactions.otid_tHelper.read(_input);
_out = handler.createReply();
org.omg.CosTransactions.ControlHelper.write(_out,getTransaction(_arg0));
}
catch(org.omg.CosTransactions.NoTransaction _ex0)
{
_out = handler.createExceptionReply();
org.omg.CosTransactions.NoTransactionHelper.write(_out, _ex0);
}
break;
}
case 2: // numberOfTransactions
{
try
{
com.arjuna.ArjunaOTS.TransactionType _arg0=com.arjuna.ArjunaOTS.TransactionTypeHelper.read(_input);
_out = handler.createReply();
com.arjuna.ArjunaOTS.txIdsHelper.write(_out,numberOfTransactions(_arg0));
}
catch(org.omg.CosTransactions.NoTransaction _ex0)
{
_out = handler.createExceptionReply();
org.omg.CosTransactions.NoTransactionHelper.write(_out, _ex0);
}
catch(org.omg.CosTransactions.Inactive _ex1)
{
_out = handler.createExceptionReply();
org.omg.CosTransactions.InactiveHelper.write(_out, _ex1);
}
break;
}
case 3: // getGlobalInfo
{
_out = handler.createReply();
com.arjuna.ArjunaOTS.GlobalTransactionInfoHelper.write(_out,getGlobalInfo());
break;
}
case 4: // getStatus
{
try
{
org.omg.CosTransactions.otid_t _arg0=org.omg.CosTransactions.otid_tHelper.read(_input);
_out = handler.createReply();
org.omg.CosTransactions.StatusHelper.write(_out,getStatus(_arg0));
}
catch(org.omg.CosTransactions.NoTransaction _ex0)
{
_out = handler.createExceptionReply();
org.omg.CosTransactions.NoTransactionHelper.write(_out, _ex0);
}
break;
}
case 5: // getChildTransactions
{
try
{
org.omg.CosTransactions.otid_t _arg0=org.omg.CosTransactions.otid_tHelper.read(_input);
_out = handler.createReply();
com.arjuna.ArjunaOTS.txIdsHelper.write(_out,getChildTransactions(_arg0));
}
catch(org.omg.CosTransactions.NoTransaction _ex0)
{
_out = handler.createExceptionReply();
org.omg.CosTransactions.NoTransactionHelper.write(_out, _ex0);
}
catch(org.omg.CosTransactions.Inactive _ex1)
{
_out = handler.createExceptionReply();
org.omg.CosTransactions.InactiveHelper.write(_out, _ex1);
}
break;
}
case 6: // recreate
{
org.omg.CosTransactions.PropagationContext _arg0=org.omg.CosTransactions.PropagationContextHelper.read(_input);
_out = handler.createReply();
org.omg.CosTransactions.ControlHelper.write(_out,recreate(_arg0));
break;
}
case 7: // getTransactionInfo
{
try
{
org.omg.CosTransactions.otid_t _arg0=org.omg.CosTransactions.otid_tHelper.read(_input);
_out = handler.createReply();
com.arjuna.ArjunaOTS.TransactionInfoHelper.write(_out,getTransactionInfo(_arg0));
}
catch(org.omg.CosTransactions.NoTransaction _ex0)
{
_out = handler.createExceptionReply();
org.omg.CosTransactions.NoTransactionHelper.write(_out, _ex0);
}
break;
}
case 8: // create
{
int _arg0=_input.read_ulong();
_out = handler.createReply();
org.omg.CosTransactions.ControlHelper.write(_out,create(_arg0));
break;
}
}
return _out;
}
public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id)
{
return ids;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy