Package com.dbxml.db.core.data

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


      DocumentTable dt = DTSMHelper.textToTable(document, container.getCollection().getSymbols());
      container.setDocument(dt);
   }

   public void setValue(byte[] value) throws dbXMLException {
      container.setValue(new Value(value));
   }
View Full Code Here


   public static final String[] PARAMS_setValue = {"value"};

   public void setValue(byte[] value) throws DBException {
      Transaction tx = new Transaction();
      try {
         col.setRecord(tx, docName, new Value(value));
      }
      catch ( DBException e ) {
         tx.cancel();
         throw e;
      }
View Full Code Here

   }

   public String insertValue(byte[] value) throws dbXMLException {
      Transaction tx = new Transaction();
      try {
         return col.insertRecord(tx, new Value(value)).toString();
      }
      catch ( dbXMLException e ) {
         tx.cancel();
         throw e;
      }
View Full Code Here

   }

   public void setValue(String key, byte[] value) throws dbXMLException {
      Transaction tx = new Transaction();
      try {
         col.setRecord(tx, key, new Value(value));
      }
      catch ( dbXMLException e ) {
         tx.cancel();
         throw e;
      }
View Full Code Here

   public Record readRecord(Transaction tx, Key key) throws DBException {
      checkOpened();
      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 ) {
      }
View Full Code Here

   public static final String[] PARAMS_insertValue = {"value"};

   public String insertValue(byte[] value) throws DBException {
      Transaction tx = new Transaction();
      try {
         return col.insertRecord(tx, new Value(value)).toString();
      }
      catch ( DBException e ) {
         tx.cancel();
         throw e;
      }
View Full Code Here

   public static final String[] PARAMS_setValue = {"key", "value"};

   public void setValue(String key, byte[] value) throws DBException {
      Transaction tx = new Transaction();
      try {
         col.setRecord(tx, key, new Value(value));
      }
      catch ( DBException e ) {
         tx.cancel();
         throw e;
      }
View Full Code Here

      byte[] b = new byte[len+2];
      System.arraycopy(r, pos, b, 0, len);
      b[b.length-1] = (byte)0xFF; // Was 127
      b[b.length-2] = 0;

      Value v1 = new Value(b, 0, b.length-1);
      Value v2 = new Value(b, 0, b.length-2);
      Value v3 = new Value(b, 0, b.length);

      vals = new Value[]{v1, v2, v3};
   }
View Full Code Here

      byte[] b = new byte[len+2];
      System.arraycopy(r, pos, b, 0, len);
      b[b.length-1] = (byte)0xFF; // Was 127
      b[b.length-2] = 0;

      Value v1 = new Value(b, 0, b.length-1);
      Value v2 = new Value(b, 0, b.length-2);
      Value v3 = new Value(b, 0, b.length);

      vals = new Value[]{v1, v2, v3};
   }
View Full Code Here

         if ( nextPage != -1 )
            p = getPage(tx, nextPage);
         else
            break;
      }
      return new Value(bos.toByteArray());
   }
View Full Code Here

TOP

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

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.