352353354355356357358
* * @param bytes a byte array * @return the Blob */ public static Blob createBlob(byte[] bytes) { return new SerializableBlob( new BlobImpl( bytes ) ); }
363364365366367368369
* @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 ) ); }
374375376377378379380
* @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() ) ); }
53545556575859
} public Object get(ResultSet rs, String name) throws HibernateException, SQLException { Blob value = rs.getBlob(name); return rs.wasNull() ? null : new SerializableBlob(value); }
375376377378379380381
386387388389390391392
397398399400401402403
76777879808182
390391392393394395396
401402403404405406407