All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.omg.XA.BeforeCompletionCallbackPOA Maven / Gradle / Ivy

Go to download

JBossTS - JBoss Transaction Service. JTA, JTS and XTS (WS-AT, WS-BA)

The newest version!
package org.omg.XA;


/**
 * Generated from IDL interface "BeforeCompletionCallback".
 *
 * @author JacORB IDL compiler V 2.3.1 (JBoss patch01), 29-Jul-2009
 * @version generated at Oct 2, 2012 3:07:47 PM
 */

public abstract class BeforeCompletionCallbackPOA
	extends org.omg.PortableServer.Servant
	implements org.omg.CORBA.portable.InvokeHandler, org.omg.XA.BeforeCompletionCallbackOperations
{
	static private final java.util.Hashtable m_opsHash = new java.util.Hashtable();
	static
	{
		m_opsHash.put ( "before_completion", new java.lang.Integer(0));
	}
	private String[] ids = {"IDL:omg.org/XA/BeforeCompletionCallback:1.0"};
	public org.omg.XA.BeforeCompletionCallback _this()
	{
		return org.omg.XA.BeforeCompletionCallbackHelper.narrow(_this_object());
	}
	public org.omg.XA.BeforeCompletionCallback _this(org.omg.CORBA.ORB orb)
	{
		return org.omg.XA.BeforeCompletionCallbackHelper.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
			{
				org.omg.CosTransactions.Coordinator _arg0=org.omg.CosTransactions.CoordinatorHelper.read(_input);
				org.omg.CosTransactions.otid_t _arg1=org.omg.CosTransactions.otid_tHelper.read(_input);
				boolean _arg2=_input.read_boolean();
				_out = handler.createReply();
				before_completion(_arg0,_arg1,_arg2);
				break;
			}
		}
		return _out;
	}

	public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id)
	{
		return ids;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy