Package org.hsqldb.result

Examples of org.hsqldb.result.Result


        params[LOB_IDS.LOB_ID]          = ValuePool.getLong(lobID);
        params[LOB_IDS.LOB_LENGTH]      = ValuePool.getLong(length);
        params[LOB_IDS.LOB_USAGE_COUNT] = ValuePool.INTEGER_0;
        params[LOB_IDS.LOB_TYPE]        = ValuePool.getInt(Types.SQL_BLOB);

        Result result = sysLobSession.executeCompiledStatement(createLob,
            params);

        return lobID;
    }
View Full Code Here


        params[LOB_IDS.LOB_ID]          = ValuePool.getLong(lobID);
        params[LOB_IDS.LOB_LENGTH]      = ValuePool.getLong(length);
        params[LOB_IDS.LOB_USAGE_COUNT] = ValuePool.INTEGER_0;
        params[LOB_IDS.LOB_TYPE]        = ValuePool.getInt(Types.SQL_CLOB);

        Result result = sysLobSession.executeCompiledStatement(createLob,
            params);

        return lobID;
    }
View Full Code Here

        Object         params[] = new Object[meta.getColumnCount()];

        params[0] = ValuePool.getLong(lobID);
        params[1] = ValuePool.getLong(0);

        Result result = sysLobSession.executeCompiledStatement(deleteLobCall,
            params);

        return result;
    }
View Full Code Here

        return result;
    }

    synchronized public Result deleteUnusedLobs() {

        Result result =
            sysLobSession.executeCompiledStatement(deleteUnusedLobs,
                ValuePool.emptyObjectArray);

        deletedLobCount = 0;
View Full Code Here

        params[LOB_IDS.LOB_ID] = ValuePool.getLong(newLobID);
        params[1]              = data[1];
        params[2]              = data[2];
        params[3]              = data[3];

        Result result = sysLobSession.executeCompiledStatement(createLob,
            params);

        if (result.isError()) {
            return result;
        }

        long length     = ((Long) data[1]).longValue();
        long byteLength = length;
View Full Code Here

        }
    }

    synchronized public Result getChars(long lobID, long offset, int length) {

        Result result = getBytes(lobID, offset * 2, length * 2);

        if (result.isError()) {
            return result;
        }

        byte[] bytes = ((ResultLob) result).getByteArray();
        char[] chars = ArrayUtil.byteArrayToChars(bytes);
View Full Code Here

        if (data == null) {
            return Result.newErrorResult(Error.error(ErrorCode.X_0F502));
        }

        long   length = ((Long) data[LOB_IDS.LOB_LENGTH]).longValue();
        Result result = setBytesBA(lobID, dataBytes, offset, dataBytes.length);

        if (offset + dataBytes.length > length) {
            setLength(lobID, offset + dataBytes.length);
        }
View Full Code Here

        if (length == 0) {
            return ResultLob.newLobSetResponse(lobID, 0);
        }

        Result result = setBytesIS(lobID, inputStream, length);

        return result;
    }
View Full Code Here

        os.write(chars, 0, chars.length);

        byte[] bytes = os.getBuffer();
*/
        Result result = setBytesBA(lobID, bytes, offset * 2, chars.length * 2);

        if (result.isError()) {
            return result;
        }

        if (offset + chars.length > length) {
            result = setLength(lobID, offset + chars.length);

            if (result.isError()) {
                return result;
            }
        }

        return ResultLob.newLobSetResponse(lobID, 0);
View Full Code Here

        if (length == 0) {
            return ResultLob.newLobSetResponse(lobID, 0);
        }

        Result result = setBytesIS(lobID, inputStream, length * 2);

        if (result.isError()) {
            return result;
        }

        return ResultLob.newLobSetResponse(lobID, 0);
    }
View Full Code Here

TOP

Related Classes of org.hsqldb.result.Result

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.