Package com.orientechnologies.orient.core.record.impl

Examples of com.orientechnologies.orient.core.record.impl.ORecordBytes


    if (current != null)
      current.getRecord().delete();
  }

  public void setContent(byte[] bytes) {
    this.content = new ORecordBytes(bytes);
  }
View Full Code Here


    @OAfterDeserialization
    public void fromStream(final ODocument iDocument) {
        initialized = true;
        if (iDocument.containsField("externalPhoto")) {
            // READ THE PHOTO FROM AN EXTERNAL RECORD AS PURE BINARY
            ORecordBytes extRecord = iDocument.field("externalPhoto");
            photo = extRecord.toStream();
        }
    }
View Full Code Here

    @OBeforeSerialization
    public void toStream(final ODocument iDocument) {
        if (thumbnail != null) {
            // WRITE THE PHOTO IN AN EXTERNAL RECORD AS PURE BINARY
            ORecordBytes externalPhoto = new ORecordBytes(iDocument.getDatabase(), thumbnail);
            iDocument.field("externalPhoto", externalPhoto);
        }
    }
View Full Code Here

TOP

Related Classes of com.orientechnologies.orient.core.record.impl.ORecordBytes

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.