FileDocCategorySizeDatePackage
TransactionHelper.javaAPI DocExample2105Sun Jun 15 15:16:32 BST 1997Examples

TransactionHelper

public final class TransactionHelper extends Object

Fields Summary
private static org.omg.CORBA.TypeCode
_tc
Constructors Summary
private TransactionHelper()

 
Methods Summary
public static Examples.Transaction__read(org.omg.CORBA.portable.InputStream in)

        return Examples.TransactionHelper.narrow(in.read_Object());
    
public static void__write(org.omg.CORBA.portable.OutputStream out, Examples.Transaction that)

        out.write_Object(that);
    
public static boolean_is_a(org.omg.CORBA.Object that)

        if (that == null)
           return true;
	else 
           return that._is_a(id());
   
public static Examples.Transactionextract(org.omg.CORBA.Any a)

     org.omg.CORBA.portable.InputStream in = a.get_input_stream();
     return __read(in);
   
public static java.lang.Stringid()

       return "IDL:Examples/Transaction:1.0";
   
public static voidinsert(org.omg.CORBA.Any a, Examples.Transaction that)

     org.omg.CORBA.portable.OutputStream out = a.create_output_stream();
     a.type(type());
     __write(out, that);
     a.read_value(out.get_input_stream(), type());
   
public static Examples.Transactionnarrow(org.omg.CORBA.Object that)

        if (that == null)
            return null;
        if (that instanceof Examples.Transaction)
            return (Examples.Transaction) that;
	if (!_is_a(that)) {
	    throw new org.omg.CORBA.BAD_PARAM();
	}
        org.omg.CORBA.portable.Delegate dup = ((org.omg.CORBA.portable.ObjectImpl)that)._get_delegate();
        Examples.Transaction result = new Examples._TransactionStub(dup);
        return result;
   
public static synchronized org.omg.CORBA.TypeCodetype()

          if (_tc == null)
             _tc = org.omg.CORBA.ORB.init().create_interface_tc(id(), "Transaction");
      return _tc;