Re: memory usage

From: Tore Halset (halse..vv.ntnu.no)
Date: Wed Feb 01 2006 - 03:10:20 EST

  • Next message: Ryan Holmes: "Re: Java 1.5 enums - ClassCastException"

    On Jan 31, 2006, at 17:45, Andrus Adamchik wrote:

    > But here is another untested idea: subclass your ExtendedType from
    > org.objectstyle.cayenne.Fault, and Cayenne would do the injection
    > for you via 'resolveFault' method.

    Nice! Looks like a hack, but it sort of make sense to fault in the
    blob at any point in time. I got it to work for reading. Using
    MemoryBlob are probably ok for writing?

    My working title is BlobFault. I tried to query for the blob column
    inside the BlobFault using SQLTemplate with dataRows. This resultet
    in a BlobFault of a BlobFault of a.. since the ExtendedType converted
    all blobs to BlobFaults. I solved this by creating a sql query manually.

    I had one more problem that I think is related to the Blob
    implementation in the PostgreSQL jdbc-driver. Using ExtendedType for
    java.sql.Blob resultet in psql returning an Integer (oid) for the
    blob column. I hacked this one be creating my own empty Blob
    interface extending java.sql.Blob. Anyone know of a better solution?

      - Tore.



    This archive was generated by hypermail 2.0.0 : Wed Feb 01 2006 - 03:10:24 EST