FileDocCategorySizeDatePackage
_JCoordinatorStub.javaAPI DocGlassfish v2 API20250Fri May 04 22:36:36 BST 2007com.sun.jts.otsidl

_JCoordinatorStub

public class _JCoordinatorStub extends ObjectImpl implements com.sun.jts.otsidl.JCoordinator
com/sun/jts/otsidl/_JCoordinatorStub.java . Generated by the IDL-to-Java compiler (portable), version "3.1" from com/sun/jts/ots.idl Tuesday, February 5, 2002 12:57:23 PM PST

Fields Summary
private static String[]
__ids
Constructors Summary
Methods Summary
public java.lang.String[]_ids()


     
  
    return (String[])__ids.clone ();
  
public org.omg.CosTransactions.Controlcreate_subtransaction()

    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("create_subtransaction", true);
       $in = _invoke ($out);
       org.omg.CosTransactions.Control $result = org.omg.CosTransactions.ControlHelper.read ($in);
       return $result;
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       if (_id.equals ("IDL:omg.org/CosTransactions/SubtransactionsUnavailable:1.0"))
          throw org.omg.CosTransactions.SubtransactionsUnavailableHelper.read ($in);
       else if (_id.equals ("IDL:omg.org/CosTransactions/Inactive:1.0"))
          throw org.omg.CosTransactions.InactiveHelper.read ($in);
       else
            throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       return create_subtransaction ();
    } finally {
        _releaseReply ($in);
    }
  
public org.omg.CosTransactions.TransIdentity[]getAncestors()

    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("getAncestors", true);
       $in = _invoke ($out);
       org.omg.CosTransactions.TransIdentity $result[] = com.sun.jts.otsidl.TransAncestryHelper.read ($in);
       return $result;
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       return getAncestors ();
    } finally {
        _releaseReply ($in);
    }
  
public org.omg.CosTransactions.otid_tgetGlobalTID()

    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("getGlobalTID", true);
       $in = _invoke ($out);
       org.omg.CosTransactions.otid_t $result = org.omg.CosTransactions.otid_tHelper.read ($in);
       return $result;
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       return getGlobalTID ();
    } finally {
        _releaseReply ($in);
    }
  
public longgetLocalTID()

    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("getLocalTID", true);
       $in = _invoke ($out);
       long $result = $in.read_longlong ();
       return $result;
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       return getLocalTID ();
    } finally {
        _releaseReply ($in);
    }
  
public org.omg.CosTransactions.Statusget_parent_status()

    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("get_parent_status", true);
       $in = _invoke ($out);
       org.omg.CosTransactions.Status $result = org.omg.CosTransactions.StatusHelper.read ($in);
       return $result;
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       return get_parent_status ();
    } finally {
        _releaseReply ($in);
    }
  
public org.omg.CosTransactions.Statusget_status()

    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("get_status", true);
       $in = _invoke ($out);
       org.omg.CosTransactions.Status $result = org.omg.CosTransactions.StatusHelper.read ($in);
       return $result;
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       return get_status ();
    } finally {
        _releaseReply ($in);
    }
  
public org.omg.CosTransactions.Statusget_top_level_status()

    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("get_top_level_status", true);
       $in = _invoke ($out);
       org.omg.CosTransactions.Status $result = org.omg.CosTransactions.StatusHelper.read ($in);
       return $result;
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       return get_top_level_status ();
    } finally {
        _releaseReply ($in);
    }
  
public java.lang.Stringget_transaction_name()

    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("get_transaction_name", true);
       $in = _invoke ($out);
       String $result = $in.read_string ();
       return $result;
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       return get_transaction_name ();
    } finally {
        _releaseReply ($in);
    }
  
public org.omg.CosTransactions.PropagationContextget_txcontext()

    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("get_txcontext", true);
       $in = _invoke ($out);
       org.omg.CosTransactions.PropagationContext $result = org.omg.CosTransactions.PropagationContextHelper.read ($in);
       return $result;
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       if (_id.equals ("IDL:omg.org/CosTransactions/Unavailable:1.0"))
          throw org.omg.CosTransactions.UnavailableHelper.read ($in);
       else
            throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       return get_txcontext ();
    } finally {
        _releaseReply ($in);
    }
  
public inthash_top_level_tran()

    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("hash_top_level_tran", true);
       $in = _invoke ($out);
       int $result = $in.read_ulong ();
       return $result;
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       return hash_top_level_tran ();
    } finally {
        _releaseReply ($in);
    }
  
public inthash_transaction()

    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("hash_transaction", true);
       $in = _invoke ($out);
       int $result = $in.read_ulong ();
       return $result;
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       return hash_transaction ();
    } finally {
        _releaseReply ($in);
    }
  
public booleanisRollbackOnly()

    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("isRollbackOnly", true);
       $in = _invoke ($out);
       boolean $result = $in.read_boolean ();
       return $result;
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       return isRollbackOnly ();
    } finally {
        _releaseReply ($in);
    }
  
public booleanis_ancestor_transaction(org.omg.CosTransactions.Coordinator tc)

    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("is_ancestor_transaction", true);
       org.omg.CosTransactions.CoordinatorHelper.write ($out, tc);
       $in = _invoke ($out);
       boolean $result = $in.read_boolean ();
       return $result;
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       return is_ancestor_transaction (tc);
    } finally {
        _releaseReply ($in);
    }
  
public booleanis_descendant_transaction(org.omg.CosTransactions.Coordinator tc)

    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("is_descendant_transaction", true);
       org.omg.CosTransactions.CoordinatorHelper.write ($out, tc);
       $in = _invoke ($out);
       boolean $result = $in.read_boolean ();
       return $result;
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       return is_descendant_transaction (tc);
    } finally {
        _releaseReply ($in);
    }
  
public booleanis_related_transaction(org.omg.CosTransactions.Coordinator tc)

    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("is_related_transaction", true);
       org.omg.CosTransactions.CoordinatorHelper.write ($out, tc);
       $in = _invoke ($out);
       boolean $result = $in.read_boolean ();
       return $result;
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       return is_related_transaction (tc);
    } finally {
        _releaseReply ($in);
    }
  
public booleanis_same_transaction(org.omg.CosTransactions.Coordinator tc)

    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("is_same_transaction", true);
       org.omg.CosTransactions.CoordinatorHelper.write ($out, tc);
       $in = _invoke ($out);
       boolean $result = $in.read_boolean ();
       return $result;
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       return is_same_transaction (tc);
    } finally {
        _releaseReply ($in);
    }
  
public booleanis_top_level_transaction()

    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("is_top_level_transaction", true);
       $in = _invoke ($out);
       boolean $result = $in.read_boolean ();
       return $result;
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       return is_top_level_transaction ();
    } finally {
        _releaseReply ($in);
    }
  
private voidreadObject(java.io.ObjectInputStream s)

     String str = s.readUTF ();
     String[] args = null;
     java.util.Properties props = null;
     org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
     org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
     _set_delegate (delegate);
  
public org.omg.CosTransactions.RecoveryCoordinatorregister_resource(org.omg.CosTransactions.Resource r)

    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("register_resource", true);
       org.omg.CosTransactions.ResourceHelper.write ($out, r);
       $in = _invoke ($out);
       org.omg.CosTransactions.RecoveryCoordinator $result = org.omg.CosTransactions.RecoveryCoordinatorHelper.read ($in);
       return $result;
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       if (_id.equals ("IDL:omg.org/CosTransactions/Inactive:1.0"))
          throw org.omg.CosTransactions.InactiveHelper.read ($in);
       else
            throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       return register_resource (r);
    } finally {
        _releaseReply ($in);
    }
  
public voidregister_subtran_aware(org.omg.CosTransactions.SubtransactionAwareResource r)

    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("register_subtran_aware", true);
       org.omg.CosTransactions.SubtransactionAwareResourceHelper.write ($out, r);
       $in = _invoke ($out);
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       if (_id.equals ("IDL:omg.org/CosTransactions/Inactive:1.0"))
          throw org.omg.CosTransactions.InactiveHelper.read ($in);
       else if (_id.equals ("IDL:omg.org/CosTransactions/NotSubtransaction:1.0"))
          throw org.omg.CosTransactions.NotSubtransactionHelper.read ($in);
       else
            throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       register_subtran_aware (r);
    } finally {
        _releaseReply ($in);
    }
  
public voidregister_synchronization(org.omg.CosTransactions.Synchronization sync)

    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("register_synchronization", true);
       org.omg.CosTransactions.SynchronizationHelper.write ($out, sync);
       $in = _invoke ($out);
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       if (_id.equals ("IDL:omg.org/CosTransactions/Inactive:1.0"))
          throw org.omg.CosTransactions.InactiveHelper.read ($in);
       else if (_id.equals ("IDL:omg.org/CosTransactions/SynchronizationUnavailable:1.0"))
          throw org.omg.CosTransactions.SynchronizationUnavailableHelper.read ($in);
       else
            throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       register_synchronization (sync);
    } finally {
        _releaseReply ($in);
    }
  
public voidrollback_only()

    org.omg.CORBA.portable.InputStream $in = null;
    try {
       org.omg.CORBA.portable.OutputStream $out = _request ("rollback_only", true);
       $in = _invoke ($out);
    } catch (org.omg.CORBA.portable.ApplicationException $ex) {
       $in = $ex.getInputStream ();
       String _id = $ex.getId ();
       if (_id.equals ("IDL:omg.org/CosTransactions/Inactive:1.0"))
          throw org.omg.CosTransactions.InactiveHelper.read ($in);
       else
            throw new org.omg.CORBA.MARSHAL (_id);
    } catch (org.omg.CORBA.portable.RemarshalException $rm) {
       rollback_only ();
    } finally {
        _releaseReply ($in);
    }
  
private voidwriteObject(java.io.ObjectOutputStream s)

     String[] args = null;
     java.util.Properties props = null;
     String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
     s.writeUTF (str);