Package org.jboss.cache.io

Examples of org.jboss.cache.io.ByteBuffer


         con = cf.getConnection();
         ps = prepareAndLogStatement(con, config.getUpdateNodeSql());

         if (node == null) node = EMPTY_HASHMAP;

         ByteBuffer byteBuffer = marshall(node);
         ps.setBinaryStream(1, byteBuffer.getStream(), byteBuffer.getLength());

         ps.setString(2, name.toString());

         /*int rows = */
         ps.executeUpdate();
View Full Code Here


      //now marshall the contents of the object
      defaultMarshaller.objectToObjectStream(obj, out);
      out.close();

      // and return bytes.
      return new ByteBuffer(baos.getRawBuffer(), 0, baos.size());
   }
View Full Code Here

TOP

Related Classes of org.jboss.cache.io.ByteBuffer

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.