Package fi.foyt.hibernate.gae.search.persistence.dao

Examples of fi.foyt.hibernate.gae.search.persistence.dao.FileSegmentDAO.updateData()


      FileSegmentDAO fileSegmentDAO = new FileSegmentDAO();
     
      FileSegment fileSegment = getCurrentSegment();
      byte[] segmentData = getSegmentData(fileSegment, segmentPosition + 1);
      segmentData[segmentPosition++] = b;
      fileSegmentDAO.updateData(fileSegment, segmentData);
    } catch (Exception e) {
      throw new IOException(e);
    }
  }
View Full Code Here


        int bytesToCopy = len < remainInSegment ? len : remainInSegment;
       
        byte[] segmentData = getSegmentData(fileSegment, segmentPosition + bytesToCopy);
 
        System.arraycopy(b, offset, segmentData, segmentPosition, bytesToCopy);
        fileSegmentDAO.updateData(fileSegment, segmentData);
       
        offset += bytesToCopy;
        len -= bytesToCopy;
        segmentPosition += bytesToCopy;
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.