Package org.hsqldb_voltpatches.types

Examples of org.hsqldb_voltpatches.types.ClobDataID


                    resultOut.addLobResult(resultLob);
                }
                parameterValues[i] = blob;
            } else if (parameterTypes[i].typeCode == Types.SQL_CLOB) {
                long       id;
                ClobDataID clob = null;

                if (value instanceof JDBCClobClient) {

                    // fix id mismatch
                    clob = ((JDBCClobClient) value).clob;
                    id   = clob.getId();
                } else if (value instanceof Clob) {
                    long   length = ((Clob) value).length();
                    Reader reader = ((Clob) value).getCharacterStream();

                    clob = connection.sessionProxy.createClob(length);
                    id   = clob.getId();

                    ResultLob resultLob = ResultLob.newLobCreateClobRequest(
                        connection.sessionProxy.getId(), id, reader, length);

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

                    clob = connection.sessionProxy.createClob(length);
                    id   = clob.getId();

                    Reader reader = (Reader) value;
                    ResultLob resultLob = ResultLob.newLobCreateClobRequest(
                        connection.sessionProxy.getId(), id, reader, length);
View Full Code Here


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

        ClobData clob = new ClobDataID(lobID);

        return clob;
    }
View Full Code Here

            return null;
        }

        long id = Long.parseLong(s);

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

    protected ClobData readClob() throws IOException {

        long id = super.readLong();

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

            return null;
        }

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

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

    protected ClobData readClob() throws IOException {

        long id = super.readLong();

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

            throw Error.error(ErrorCode.X_0F502);
        }

        sessionData.addToCreatedLobs(lobID);

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

TOP

Related Classes of org.hsqldb_voltpatches.types.ClobDataID

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.