If we do end up adding support for this, it probably can be handled by splitting org.hibernate.engine.jdbc.LobCreator up into separate parts for BLOB, CLOB and NCLOB. That way we can test all three methods on the driver and return appropriate creators for each.
interface BlobCreator {
Blob wrap(Blob blob);
Blob createBlob(byte[] bytes);
...
}
interface ClobCreator {
Clob wrap(Clob clob);
Clob createClob(String string);
...
}
interface NClobCreator {
NClob wrap(NClob nclob);
NClob createNClob(String string);
...
}
|