Package com.dbxml.db.core.transaction

Examples of com.dbxml.db.core.transaction.TransactionException


         dos.writeByte(EVENT_START);
         dos.writeLong(tx.getID());
         //dos.flush();
      }
      catch ( IOException e ) {
         throw new TransactionException(FaultCodes.GEN_CRITICAL_ERROR, "Error writing " + file.getName(), e);
      }
   }
View Full Code Here


         dos.writeByte(EVENT_COMMIT);
         dos.writeLong(tx.getID());
         dos.flush();
      }
      catch ( DBException e ) {
         throw new TransactionException(FaultCodes.GEN_CRITICAL_ERROR, "Error flushing buffers", e);
      }
      catch ( IOException e ) {
         throw new TransactionException(FaultCodes.GEN_CRITICAL_ERROR, "Error writing " + file.getName(), e);
      }
      finally {
         transactions.remove(tx);
      }
View Full Code Here

         dos.writeByte(EVENT_CANCEL);
         dos.writeLong(tx.getID());
         //dos.flush();
      }
      catch ( DBException e ) {
         throw new TransactionException(FaultCodes.GEN_CRITICAL_ERROR, "Error flushing buffers", e);
      }
      catch ( IOException e ) {
          throw new TransactionException(FaultCodes.GEN_CRITICAL_ERROR, "Error writing " + file.getName(), e);
      }
      finally {
         transactions.remove(tx);
      }
View Full Code Here

         dos.writeInt(buffer.length);
         dos.write(buffer);
         //dos.flush();
      }
      catch ( IOException e ) {
          throw new TransactionException(FaultCodes.GEN_CRITICAL_ERROR, "Error writing " + file.getName(), e);
      }
   }
View Full Code Here

            truncate();
         else
            dos.flush();
      }
      catch ( IOException e ) {
          throw new TransactionException(FaultCodes.GEN_CRITICAL_ERROR, "Error writing " + file.getName(), e);
      }
   }
View Full Code Here

      try {
         dos.flush();
         fc.truncate(0);
      }
      catch ( IOException e ) {
          throw new TransactionException(FaultCodes.GEN_CRITICAL_ERROR, "Error writing " + file.getName(), e);
      }
   }
View Full Code Here

                     raf.write(entry.buffer.array());
                  }
               }
            }
            catch ( IOException e ) {
               throw new TransactionException(FaultCodes.COL_CANNOT_STORE, "Error restoring from Transaction Log", e);
            }
         }
      }
View Full Code Here

TOP

Related Classes of com.dbxml.db.core.transaction.TransactionException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.