Package org.hsqldb_voltpatches.types

Examples of org.hsqldb_voltpatches.types.BlobDataID


                continue;
            }

            if (parameterTypes[i].typeCode == Types.SQL_BLOB) {
                long       id;
                BlobDataID blob = null;

                if (value instanceof JDBCBlobClient) {
                    blob = ((JDBCBlobClient) value).blob;
                    id   = blob.getId();
                } else if (value instanceof Blob) {
                    long length = ((Blob) value).length();

                    blob = connection.sessionProxy.createBlob(length);
                    id   = blob.getId();

                    InputStream stream = ((Blob) value).getBinaryStream();
                    ResultLob resultLob = ResultLob.newLobCreateBlobRequest(
                        connection.sessionProxy.getId(), id, stream, length);

                    connection.sessionProxy.allocateResultLob(resultLob, null);
                    resultOut.addLobResult(resultLob);
                } else if (value instanceof InputStream) {
                    long length = streamLengths[i];

                    blob = connection.sessionProxy.createBlob(length);
                    id   = blob.getId();

                    InputStream stream = (InputStream) value;
                    ResultLob resultLob = ResultLob.newLobCreateBlobRequest(
                        connection.sessionProxy.getId(), id, stream, length);
View Full Code Here


        if (data == null) {
            return null;
        }

        BlobData blob = new BlobDataID(lobID);

        return blob;
    }
View Full Code Here

            return null;
        }

        long id = Long.parseLong(s);

        return new BlobDataID(id);
    }
View Full Code Here

    protected BlobData readBlob() throws IOException {

        long id = super.readLong();

        return new BlobDataID(id);
    }
View Full Code Here

            return null;
        }

        long id = ((Number) value).longValue();

        return new BlobDataID(id);
    }
View Full Code Here

    protected BlobData readBlob() throws IOException {

        long id = super.readLong();

        return new BlobDataID(id);
    }
View Full Code Here

            throw Error.error(ErrorCode.X_0F502);
        }

        sessionData.addToCreatedLobs(lobID);

        return new BlobDataID(lobID);
    }
View Full Code Here

TOP

Related Classes of org.hsqldb_voltpatches.types.BlobDataID

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.