Package org.hibernate.lob

Examples of org.hibernate.lob.SerializableBlob


   *
   * @param bytes a byte array
   * @return the Blob
   */
  public static Blob createBlob(byte[] bytes) {
    return new SerializableBlob( new BlobImpl( bytes ) );
  }
View Full Code Here


   * @param stream a binary stream
   * @param length the number of bytes in the stream
   * @return the Blob
   */
  public static Blob createBlob(InputStream stream, int length) {
    return new SerializableBlob( new BlobImpl( stream, length ) );
  }
View Full Code Here

   * @param stream a binary stream
   * @return the Blob
   * @throws IOException
   */
  public static Blob createBlob(InputStream stream) throws IOException {
    return new SerializableBlob( new BlobImpl( stream, stream.available() ) );
  }
View Full Code Here

   
  }

  public Object get(ResultSet rs, String name) throws HibernateException, SQLException {
    Blob value = rs.getBlob(name);
    return rs.wasNull() ? null : new SerializableBlob(value);
  }
View Full Code Here

   *
   * @param bytes a byte array
   * @return the Blob
   */
  public static Blob createBlob(byte[] bytes) {
    return new SerializableBlob( new BlobImpl( bytes ) );
  }
View Full Code Here

   * @param stream a binary stream
   * @param length the number of bytes in the stream
   * @return the Blob
   */
  public static Blob createBlob(InputStream stream, int length) {
    return new SerializableBlob( new BlobImpl( stream, length ) );
  }
View Full Code Here

   * @param stream a binary stream
   * @return the Blob
   * @throws IOException
   */
  public static Blob createBlob(InputStream stream) throws IOException {
    return new SerializableBlob( new BlobImpl( stream, stream.available() ) );
  }
View Full Code Here

   
  }

  public Object get(ResultSet rs, String name) throws HibernateException, SQLException {
    Blob value = rs.getBlob(name);
    return rs.wasNull() ? null : new SerializableBlob(value);
  }
View Full Code Here

   *
   * @param bytes a byte array
   * @return the Blob
   */
  public static Blob createBlob(byte[] bytes) {
    return new SerializableBlob( new BlobImpl( bytes ) );
  }
View Full Code Here

   * @param stream a binary stream
   * @param length the number of bytes in the stream
   * @return the Blob
   */
  public static Blob createBlob(InputStream stream, int length) {
    return new SerializableBlob( new BlobImpl( stream, length ) );
  }
View Full Code Here

TOP

Related Classes of org.hibernate.lob.SerializableBlob

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.