Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.omg.BridgeTransactionMgmt;


Generated from IDL interface "TransactionManagement".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:23
 
public abstract class TransactionManagementPOA
	static private final java.util.HashMap<String,Integerm_opsHash = new java.util.HashMap<String,Integer>();
	static
	{
		.put ( "disable_transaction", Integer.valueOf(0));
		.put ( "enable_transaction", Integer.valueOf(1));
	}
	private String[] ids = {"IDL:omg.org/BridgeTransactionMgmt/TransactionManagement:1.0"};
	{
		org.omg.BridgeTransactionMgmt.TransactionManagement __r = org.omg.BridgeTransactionMgmt.TransactionManagementHelper.narrow(__o);
		return __r;
	}
	{
		org.omg.CORBA.Object __o = _this_object(orb) ;
		org.omg.BridgeTransactionMgmt.TransactionManagement __r = org.omg.BridgeTransactionMgmt.TransactionManagementHelper.narrow(__o);
		return __r;
	}
	{
		// do something
		// quick lookup of operation
		java.lang.Integer opsIndex = (java.lang.Integer).get ( method );
		if ( null == opsIndex )
			throw new org.omg.CORBA.BAD_OPERATION(method + " not found");
		switch ( opsIndex.intValue() )
		{
			case 0: // disable_transaction
			{
			try
			{
				_out = handler.createReply();
			}
			{
				_out = handler.createExceptionReply();
				org.omg.BridgeTransactionMgmt.TransactionActiveHelper.write(_out_ex0);
			}
				break;
			}
			case 1: // enable_transaction
			{
			try
			{
				int _arg0=_input.read_ulong();
				int _arg1=_input.read_ulong();
				_out = handler.createReply();
				enable_transaction(_arg0,_arg1);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.BridgeTransactionMgmt.TransactionAlreadyActiveHelper.write(_out_ex0);
			}
			{
				_out = handler.createExceptionReply();
				org.omg.BridgeTransactionMgmt.UnsupportedTransactionHelper.write(_out_ex1);
			}
				break;
			}
		}
		return _out;
	}
	public String[] _all_interfaces(org.omg.PortableServer.POA poabyte[] obj_id)
	{
		return ;
	}
New to GrepCode? Check out our FAQ X