Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.omg.CosTransactions;


Generated from IDL interface "Control".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:18
 
public abstract class ControlPOA
	static private final java.util.HashMap<String,Integerm_opsHash = new java.util.HashMap<String,Integer>();
	static
	{
		.put ( "get_terminator", Integer.valueOf(0));
		.put ( "get_coordinator", Integer.valueOf(1));
	}
	private String[] ids = {"IDL:omg.org/CosTransactions/Control:1.0"};
	{
		org.omg.CosTransactions.Control __r = org.omg.CosTransactions.ControlHelper.narrow(__o);
		return __r;
	}
	{
		org.omg.CORBA.Object __o = _this_object(orb) ;
		org.omg.CosTransactions.Control __r = org.omg.CosTransactions.ControlHelper.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: // get_terminator
			{
			try
			{
				_out = handler.createReply();
				org.omg.CosTransactions.TerminatorHelper.write(_out,get_terminator());
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosTransactions.UnavailableHelper.write(_out_ex0);
			}
				break;
			}
			case 1: // get_coordinator
			{
			try
			{
				_out = handler.createReply();
				org.omg.CosTransactions.CoordinatorHelper.write(_out,get_coordinator());
			}
			{
				_out = handler.createExceptionReply();
				org.omg.CosTransactions.UnavailableHelper.write(_out_ex0);
			}
				break;
			}
		}
		return _out;
	}
	public String[] _all_interfaces(org.omg.PortableServer.POA poabyte[] obj_id)
	{
		return ;
	}
New to GrepCode? Check out our FAQ X