Package com.dbxml.db.core.data

Examples of com.dbxml.db.core.data.Record


      try {
         long pos = findValue(tx, key);
         Page page = getPage(tx, pos);
         Value v = readValue(tx, page);
         RecordMetaData md = buildMetaData(page);
         return new Record(key, v, md);
      }
      catch ( BTreeNotFoundException b ) {
      }
      catch ( BTreeException b ) {
         throw b;
View Full Code Here


   public static final String[] PARAMS_getValue = {"key"};

   public byte[] getValue(String key) throws DBException {
      Transaction tx = new Transaction();
      try {
         Record rec = col.getRecord(tx, key);
         if ( rec == null )
            throw new DBException(FaultCodes.COL_CANNOT_RETRIEVE, "Record '"+key+"' not found");

         return rec.getValue().getData();
      }
      catch ( DBException e ) {
         tx.cancel();
         throw e;
      }
View Full Code Here

   }

   public boolean writeRecord(Transaction tx, Key key, Value value) throws DBException {
      checkOpened();
      checkReadOnly();
      records.put(key, new Record(key, value));
      return true;
   }
View Full Code Here

            RecordMetaData md = buildMetaData(file);

            fis.read(valueData);
            fis.close();

            return new Record(key, new Value(valueData), md);
         }
      }
      catch ( Exception e ) {
         e.printStackTrace(System.err);
      }
View Full Code Here

TOP

Related Classes of com.dbxml.db.core.data.Record

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.