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

com.arjuna.ArjunaOTS.OTSAbstractRecordPOA Maven / Gradle / Ivy

Go to download

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

The newest version!
package com.arjuna.ArjunaOTS;


/**
 * Generated from IDL interface "OTSAbstractRecord".
 *
 * @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 OTSAbstractRecordPOA
	extends org.omg.PortableServer.Servant
	implements org.omg.CORBA.portable.InvokeHandler, com.arjuna.ArjunaOTS.OTSAbstractRecordOperations
{
	static private final java.util.Hashtable m_opsHash = new java.util.Hashtable();
	static
	{
		m_opsHash.put ( "commit_one_phase", new java.lang.Integer(0));
		m_opsHash.put ( "propagateOnAbort", new java.lang.Integer(1));
		m_opsHash.put ( "prepare", new java.lang.Integer(2));
		m_opsHash.put ( "shouldReplace", new java.lang.Integer(3));
		m_opsHash.put ( "prepare_subtransaction", new java.lang.Integer(4));
		m_opsHash.put ( "commit_subtransaction", new java.lang.Integer(5));
		m_opsHash.put ( "rollback_subtransaction", new java.lang.Integer(6));
		m_opsHash.put ( "_get_type_id", new java.lang.Integer(7));
		m_opsHash.put ( "shouldAdd", new java.lang.Integer(8));
		m_opsHash.put ( "forget", new java.lang.Integer(9));
		m_opsHash.put ( "propagateOnCommit", new java.lang.Integer(10));
		m_opsHash.put ( "merge", new java.lang.Integer(11));
		m_opsHash.put ( "saveRecord", new java.lang.Integer(12));
		m_opsHash.put ( "_get_uid", new java.lang.Integer(13));
		m_opsHash.put ( "alter", new java.lang.Integer(14));
		m_opsHash.put ( "shouldMerge", new java.lang.Integer(15));
		m_opsHash.put ( "commit", new java.lang.Integer(16));
		m_opsHash.put ( "rollback", new java.lang.Integer(17));
		m_opsHash.put ( "shouldAlter", new java.lang.Integer(18));
	}
	private String[] ids = {"IDL:arjuna.com/ArjunaOTS/OTSAbstractRecord:1.0","IDL:arjuna.com/ArjunaOTS/ArjunaSubtranAwareResource:1.0","IDL:omg.org/CosTransactions/SubtransactionAwareResource:1.0","IDL:omg.org/CosTransactions/Resource:1.0"};
	public com.arjuna.ArjunaOTS.OTSAbstractRecord _this()
	{
		return com.arjuna.ArjunaOTS.OTSAbstractRecordHelper.narrow(_this_object());
	}
	public com.arjuna.ArjunaOTS.OTSAbstractRecord _this(org.omg.CORBA.ORB orb)
	{
		return com.arjuna.ArjunaOTS.OTSAbstractRecordHelper.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: // commit_one_phase
			{
			try
			{
				_out = handler.createReply();
				commit_one_phase();
			}
			catch(org.omg.CosTransactions.HeuristicHazard _ex0)
			{
				_out = handler.createExceptionReply();
				org.omg.CosTransactions.HeuristicHazardHelper.write(_out, _ex0);
			}
				break;
			}
			case 1: // propagateOnAbort
			{
				_out = handler.createReply();
				_out.write_boolean(propagateOnAbort());
				break;
			}
			case 2: // prepare
			{
			try
			{
				_out = handler.createReply();
				org.omg.CosTransactions.VoteHelper.write(_out,prepare());
			}
			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 3: // shouldReplace
			{
				com.arjuna.ArjunaOTS.OTSAbstractRecord _arg0=com.arjuna.ArjunaOTS.OTSAbstractRecordHelper.read(_input);
				_out = handler.createReply();
				_out.write_boolean(shouldReplace(_arg0));
				break;
			}
			case 4: // prepare_subtransaction
			{
				_out = handler.createReply();
				org.omg.CosTransactions.VoteHelper.write(_out,prepare_subtransaction());
				break;
			}
			case 5: // commit_subtransaction
			{
				org.omg.CosTransactions.Coordinator _arg0=org.omg.CosTransactions.CoordinatorHelper.read(_input);
				_out = handler.createReply();
				commit_subtransaction(_arg0);
				break;
			}
			case 6: // rollback_subtransaction
			{
				_out = handler.createReply();
				rollback_subtransaction();
				break;
			}
			case 7: // _get_type_id
			{
			_out = handler.createReply();
			_out.write_long(type_id());
				break;
			}
			case 8: // shouldAdd
			{
				com.arjuna.ArjunaOTS.OTSAbstractRecord _arg0=com.arjuna.ArjunaOTS.OTSAbstractRecordHelper.read(_input);
				_out = handler.createReply();
				_out.write_boolean(shouldAdd(_arg0));
				break;
			}
			case 9: // forget
			{
				_out = handler.createReply();
				forget();
				break;
			}
			case 10: // propagateOnCommit
			{
				_out = handler.createReply();
				_out.write_boolean(propagateOnCommit());
				break;
			}
			case 11: // merge
			{
				com.arjuna.ArjunaOTS.OTSAbstractRecord _arg0=com.arjuna.ArjunaOTS.OTSAbstractRecordHelper.read(_input);
				_out = handler.createReply();
				merge(_arg0);
				break;
			}
			case 12: // saveRecord
			{
				_out = handler.createReply();
				_out.write_boolean(saveRecord());
				break;
			}
			case 13: // _get_uid
			{
			_out = handler.createReply();
			_out.write_string(uid());
				break;
			}
			case 14: // alter
			{
				com.arjuna.ArjunaOTS.OTSAbstractRecord _arg0=com.arjuna.ArjunaOTS.OTSAbstractRecordHelper.read(_input);
				_out = handler.createReply();
				alter(_arg0);
				break;
			}
			case 15: // shouldMerge
			{
				com.arjuna.ArjunaOTS.OTSAbstractRecord _arg0=com.arjuna.ArjunaOTS.OTSAbstractRecordHelper.read(_input);
				_out = handler.createReply();
				_out.write_boolean(shouldMerge(_arg0));
				break;
			}
			case 16: // commit
			{
			try
			{
				_out = handler.createReply();
				commit();
			}
			catch(org.omg.CosTransactions.NotPrepared _ex0)
			{
				_out = handler.createExceptionReply();
				org.omg.CosTransactions.NotPreparedHelper.write(_out, _ex0);
			}
			catch(org.omg.CosTransactions.HeuristicHazard _ex1)
			{
				_out = handler.createExceptionReply();
				org.omg.CosTransactions.HeuristicHazardHelper.write(_out, _ex1);
			}
			catch(org.omg.CosTransactions.HeuristicMixed _ex2)
			{
				_out = handler.createExceptionReply();
				org.omg.CosTransactions.HeuristicMixedHelper.write(_out, _ex2);
			}
			catch(org.omg.CosTransactions.HeuristicRollback _ex3)
			{
				_out = handler.createExceptionReply();
				org.omg.CosTransactions.HeuristicRollbackHelper.write(_out, _ex3);
			}
				break;
			}
			case 17: // rollback
			{
			try
			{
				_out = handler.createReply();
				rollback();
			}
			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);
			}
			catch(org.omg.CosTransactions.HeuristicCommit _ex2)
			{
				_out = handler.createExceptionReply();
				org.omg.CosTransactions.HeuristicCommitHelper.write(_out, _ex2);
			}
				break;
			}
			case 18: // shouldAlter
			{
				com.arjuna.ArjunaOTS.OTSAbstractRecord _arg0=com.arjuna.ArjunaOTS.OTSAbstractRecordHelper.read(_input);
				_out = handler.createReply();
				_out.write_boolean(shouldAlter(_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