com.arjuna.ArjunaOTS.JTAInterposedSynchronizationPOA Maven / Gradle / Ivy
The newest version!
package com.arjuna.ArjunaOTS;
/**
* Generated from IDL interface "JTAInterposedSynchronization".
*
* @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 JTAInterposedSynchronizationPOA
extends org.omg.PortableServer.Servant
implements org.omg.CORBA.portable.InvokeHandler, com.arjuna.ArjunaOTS.JTAInterposedSynchronizationOperations
{
static private final java.util.Hashtable m_opsHash = new java.util.Hashtable();
static
{
m_opsHash.put ( "before_completion", new java.lang.Integer(0));
m_opsHash.put ( "after_completion", new java.lang.Integer(1));
}
private String[] ids = {"IDL:arjuna.com/ArjunaOTS/JTAInterposedSynchronization:1.0","IDL:omg.org/CosTransactions/TransactionalObject:1.0","IDL:omg.org/CosTransactions/Synchronization:1.0"};
public com.arjuna.ArjunaOTS.JTAInterposedSynchronization _this()
{
return com.arjuna.ArjunaOTS.JTAInterposedSynchronizationHelper.narrow(_this_object());
}
public com.arjuna.ArjunaOTS.JTAInterposedSynchronization _this(org.omg.CORBA.ORB orb)
{
return com.arjuna.ArjunaOTS.JTAInterposedSynchronizationHelper.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: // before_completion
{
_out = handler.createReply();
before_completion();
break;
}
case 1: // after_completion
{
org.omg.CosTransactions.Status _arg0=org.omg.CosTransactions.StatusHelper.read(_input);
_out = handler.createReply();
after_completion(_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