> > >Future plans: > > > >Next release: 1.2.1 > >=================== > >* various bugfixes > >* full support for Clob and Blob > > > > How are you planning on supporting this? Is there going to be some > internal changes in Hibernate to support them, or are you > just going to > add new Blob and Clob types?
There are two parts to this new functionality. Firstly, there is the existing (in CVS) BlobType and ClobType. (BlobType was created by Benoit Menendez and this has given me the inspiration for the rest of the implementation.) The existing functionality lets you retrieve and manipulate existing Clobs and Blobs (to an extent that varies depending upon JDBC driver support) but doesn't let you create new Blobs or Clobs. So what I plan are methods: Hibernate.createBlob(byte[] bytes) Hibernate.createClob(String string) That will let you obtain an instance of java.sql.Clob or java.sql.Blob that simply wraps a byte array or string. Then BlobType and ClobType will detect wrapper instances and use setBytes() / setString() instead of setBlob() / setClob(). By exposing the actual Clob or Blob object to the persistent class we let you do whatever the JDBC driver will let you do. For example, in the case of Oracle, you could cast it to OracleBlob. I think that this is a really nice design. It seems to be efficient (we never load up the whole Blob or Clob into memory); we can pass instances of Blob or Clob from one persistent class to another; we can manipulate the Blob if that is supported by the driver. What do you think? ********** CAUTION - Disclaimer ********** This message may contain privileged and confidential information. If you are not the intended recipient of this message (or responsible for delivery of the message to such person) you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error, you should destroy it and kindly notify the sender by reply e-mail. Please advise immediately if you or your employer do not consent to Internet e-mail for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Expert Information Services Pty Ltd ("The Company") shall be understood as neither given nor endorsed by it. The Company advises that this e-mail and any attached files should be scanned to detect viruses. The Company accepts no liability for loss or damage (whether caused by negligence or not) resulting from the use of any attached files. **EIS******** End of Disclaimer ********** ------------------------------------------------------- This SF.NET email is sponsored by: The Best Geek Holiday Gifts! Time is running out! Thinkgeek.com has the coolest gifts for your favorite geek. Let your fingers do the typing. Visit Now. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel