Beispiel #1
0
 public void commit()
     throws org.omg.CosTransactions.NotPrepared, org.omg.CosTransactions.HeuristicRollback,
         org.omg.CosTransactions.HeuristicMixed, org.omg.CosTransactions.HeuristicHazard {
   org.omg.CORBA.portable.InputStream $in = null;
   try {
     org.omg.CORBA.portable.OutputStream $out = _request("commit", 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/NotPrepared:1.0"))
       throw org.omg.CosTransactions.NotPreparedHelper.read($in);
     else if (_id.equals("IDL:omg.org/CosTransactions/HeuristicRollback:1.0"))
       throw org.omg.CosTransactions.HeuristicRollbackHelper.read($in);
     else if (_id.equals("IDL:omg.org/CosTransactions/HeuristicMixed:1.0"))
       throw org.omg.CosTransactions.HeuristicMixedHelper.read($in);
     else if (_id.equals("IDL:omg.org/CosTransactions/HeuristicHazard:1.0"))
       throw org.omg.CosTransactions.HeuristicHazardHelper.read($in);
     else throw new org.omg.CORBA.MARSHAL(_id);
   } catch (org.omg.CORBA.portable.RemarshalException $rm) {
     commit();
   } finally {
     _releaseReply($in);
   }
 } // commit
 public void _write(org.omg.CORBA.portable.OutputStream o) {
   org.omg.CosTransactions.HeuristicRollbackHelper.write(o, value);
 }
 public org.omg.CORBA.TypeCode _type() {
   return org.omg.CosTransactions.HeuristicRollbackHelper.type();
 }
 public void _read(org.omg.CORBA.portable.InputStream i) {
   value = org.omg.CosTransactions.HeuristicRollbackHelper.read(i);
 }