Package com.dbxml.db.core

Examples of com.dbxml.db.core.DBException


      return transactions.iterator();
   }

   protected void checkOpened() throws DBException {
      if ( !opened )
         throw new DBException(FaultCodes.COL_COLLECTION_CLOSED, "Transaction Log is closed");
   }
View Full Code Here


         reset();

         return true;
      }
      catch ( Exception e ) {
         throw new DBException(FaultCodes.GEN_CRITICAL_ERROR, "Error creating " + file.getName(), e);
      }
   }
View Full Code Here

            opened = true;
         }
         return opened;
      }
      catch ( Exception e ) {
         throw new DBException(FaultCodes.GEN_CRITICAL_ERROR, "Error opening " + file.getName(), e);
      }
   }
View Full Code Here

         }
         else
            return false;
      }
      catch ( Exception e ) {
         throw new DBException(FaultCodes.GEN_CRITICAL_ERROR, "Error closing " + file.getName(), e);
      }
   }
View Full Code Here

            return file.delete();
         else
            return true;
      }
      catch ( Exception e ) {
         throw new DBException(FaultCodes.COL_CANNOT_DROP, "Can't drop " + file.getName(), e);
      }
   }
View Full Code Here

            raf.close();
         }
      }
      catch ( IOException e ) {
         throw new DBException(FaultCodes.GEN_CRITICAL_ERROR, "Error playing back " + file.getName(), e);
      }
      finally {
         callback.endPlayback();
      }
   }
View Full Code Here

         DocumentTable dt = col.getDocument(tx, key);
         if ( dt != null )
            DTSMHelper.tableToSAX(dt, handler);
      }
      catch ( DTSMException e ) {
         throw new DBException(FaultCodes.COL_CANNOT_RETRIEVE, "Error retrieving object '" + key + "'", e);
      }
   }
View Full Code Here

      DocumentTable dt;
      try {
         dt = DTSMHelper.documentToTable(doc, col.getSymbols());
      }
      catch ( DTSMException e ) {
         throw new DBException(FaultCodes.COL_CANNOT_STORE, "Error storing object '" + key + "'", e);
      }

      col.setDocument(tx, key, dt);
   }
View Full Code Here

         DocumentTable dt = col.getDocument(tx, key);
         if ( dt != null )
            doc = DTSMHelper.tableToDocument(dt);
      }
      catch ( DTSMException e ) {
         throw new DBException(FaultCodes.COL_CANNOT_RETRIEVE, "Error retrieving object '" + key + "'", e);
      }

      if ( doc != null ) {
         String className = null;
         NodeList childNodes = doc.getChildNodes();
View Full Code Here

   }

   protected final void checkTransaction(Transaction tx) throws DBException {
      if ( txSupported ) {
         if ( log == null )
            throw new DBException(FaultCodes.GEN_CRITICAL_ERROR, "No Transaction Log");

         if ( tx == null )
            throw new DBException(FaultCodes.GEN_CRITICAL_ERROR, "No Transaction Context");

         tx.addTransactionLog(log);
      }
   }
View Full Code Here

TOP

Related Classes of com.dbxml.db.core.DBException

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.