All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.foundationdb.sql.jdbc.jdbc3.AbstractJdbc3Clob Maven / Gradle / Ivy

/*-------------------------------------------------------------------------
*
* Copyright (c) 2004-2011, PostgreSQL Global Development Group
*
*
*-------------------------------------------------------------------------
*/
package com.foundationdb.sql.jdbc.jdbc3;


import java.sql.*;

public abstract class AbstractJdbc3Clob extends com.foundationdb.sql.jdbc.jdbc2.AbstractJdbc2Clob
{

    public AbstractJdbc3Clob(com.foundationdb.sql.jdbc.core.BaseConnection conn, long oid) throws SQLException
    {
        super(conn, oid);
    }

    /**
     * Writes the given Java String to the CLOB
     * value that this Clob object designates at the position
     * pos.
     *
     * @param pos the position at which to start writing to the CLOB
     *     value that this Clob object represents
     * @param str the string to be written to the CLOB
     *    value that this Clob designates
     * @return the number of characters written
     * @exception SQLException if there is an error accessing the
     *     CLOB value
     *
     * @since 1.4
     */
    public synchronized int setString(long pos, String str) throws SQLException
    {
        checkFreed();
        throw com.foundationdb.sql.jdbc.Driver.notImplemented(this.getClass(), "setString(long,str)");
    }

    /**
     * Writes len characters of str, starting
     * at character offset, to the CLOB value
     * that this Clob represents.
     *
     * @param pos the position at which to start writing to this
     *    CLOB object
     * @param str the string to be written to the CLOB
     *    value that this Clob object represents
     * @param offset the offset into str to start reading
     *    the characters to be written
     * @param len the number of characters to be written
     * @return the number of characters written
     * @exception SQLException if there is an error accessing the
     *     CLOB value
     *
     * @since 1.4
     */
    public synchronized int setString(long pos, String str, int offset, int len) throws SQLException
    {
        checkFreed();
        throw com.foundationdb.sql.jdbc.Driver.notImplemented(this.getClass(), "setString(long,String,int,int)");
    }

    /**
     * Retrieves a stream to be used to write Ascii characters to the
     * CLOB value that this Clob object represents,
     * starting at position pos.
     *
     * @param pos the position at which to start writing to this
     *    CLOB object
     * @return the stream to which ASCII encoded characters can be written
     * @exception SQLException if there is an error accessing the
     *     CLOB value
     * @see #getAsciiStream
     *
     * @since 1.4
     */
    public synchronized java.io.OutputStream setAsciiStream(long pos) throws SQLException
    {
        checkFreed();
        throw com.foundationdb.sql.jdbc.Driver.notImplemented(this.getClass(), "setAsciiStream(long)");
    }

    /**
     * Retrieves a stream to be used to write a stream of Unicode characters
     * to the CLOB value that this Clob object
     * represents, at position pos.
     *
     * @param  pos the position at which to start writing to the
     *    CLOB value
     *
     * @return a stream to which Unicode encoded characters can be written
     * @exception SQLException if there is an error accessing the
     *     CLOB value
     * @see #getCharacterStream
     *
     * @since 1.4
     */
    public synchronized java.io.Writer setCharacterStream(long pos) throws SQLException
    {
        checkFreed();
        throw com.foundationdb.sql.jdbc.Driver.notImplemented(this.getClass(), "setCharacteStream(long)");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy