Java 类org.hibernate.engine.jdbc.BlobProxy 实例源码

项目:beanlib    文件:Hibernate4BlobReplicator.java   
@Override
public <T> T replicateBlob(Blob fromBlob, Class<T> toClass) {
    byte[] byteArray = blobUtils.toByteArray(fromBlob);
    @SuppressWarnings("unchecked")
    T ret = (T) BlobProxy.generateProxy(byteArray);
    return ret;
}
项目:lams    文件:BlobTypeDescriptor.java   
/**
 * {@inheritDoc}
 */
public Blob fromString(String string) {
    return BlobProxy.generateProxy( PrimitiveByteArrayTypeDescriptor.INSTANCE.fromString( string ) );
}
项目:hibernate-semantic-query    文件:BlobJavaDescriptor.java   
@Override
public Blob fromString(String string) {
    return BlobProxy.generateProxy( PrimitiveByteArrayJavaDescriptor.INSTANCE.fromString( string ) );
}