package DB;
/**
 * Generated by the JacORB IDL compiler.
 */
public class CursorHelper
{
	public CursorHelper()
	{
	}
	public static void insert(org.omg.CORBA.Any any, DB.Cursor s)
	{
		any.insert_Object(s);
	}
	public static DB.Cursor extract(org.omg.CORBA.Any any)
	{
		return narrow(any.extract_Object());
	}
	public static org.omg.CORBA.TypeCode type()
	{
		return org.omg.CORBA.ORB.init().create_interface_tc( "IDL:DB/Cursor:1.0", "Cursor");
	}
	public static String id()
	{
		return "IDL:DB/Cursor:1.0";
	}
	public static Cursor read(org.omg.CORBA.portable.InputStream in)
	{
		return narrow( in.read_Object());
	}
	public static void write(org.omg.CORBA.portable.OutputStream _out, DB.Cursor s)
	{
		_out.write_Object(s);
	}
	public static DB.Cursor narrow(org.omg.CORBA.Object obj)
	{
		if( obj == null )
			return null;
		try
		{
			return (DB.Cursor)obj;
		}
		catch( ClassCastException c )
		{
			if( obj._is_a("IDL:DB/Cursor:1.0"))
			{
				DB._CursorStub stub;
				stub = new DB._CursorStub();
				stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate());
				return stub;
			}
		}
		throw new org.omg.CORBA.BAD_PARAM("Narrow failed");
	}
	public void write_Object(org.omg.CORBA.portable.OutputStream _out, java.lang.Object obj)
	{
		 throw new RuntimeException(" not implemented");
	}
	public java.lang.Object read_Object(org.omg.CORBA.portable.InputStream in)
	{
		 throw new RuntimeException(" not implemented");
	}
	public String get_id()
	{
		return id();
	}
	public org.omg.CORBA.TypeCode get_type()
	{
		return type();
	}
}
