
package com.sap.dbtech.jdbc.trace;


import com.sap.dbtech.util.Tracer;

public class Blob implements java.sql.Blob
{
    private java.sql.Blob _inner;
    // nothing in genAdditionalInstanceVars
    public java.sql.Blob getInner() {
      return (java.sql.Blob) this._inner;
    }
    static java.sql.Blob getInner (java.sql.Blob obj ) {
      if (obj == null || ! (obj instanceof com.sap.dbtech.jdbc.trace.Blob))  { 
        return null;  
      }
      Blob iobj = (Blob)obj;
      return (java.sql.Blob)iobj._inner;
    }
    static java.sql.Blob createNew (java.sql.Blob obj ) {
      Blob iobj = new Blob (obj);
      return (java.sql.Blob)iobj;
    }

    public Blob(
        java.sql.Blob _innerP)
    {
        this._inner = _innerP;
    }

    public byte [] getBytes (
        long arg0,
        int arg1)
    throws java.sql.SQLException
    {
        byte [] _result;
        Tracer.println (this._inner + ".getBytes (" + arg0 + ", " + arg1 + ")");
        try {
            _result = this._inner.getBytes (arg0, arg1);
            Tracer.println ("=> " + _result);
        }
        catch (RuntimeException _exc) {
            Tracer.println (" <-!");
            Tracer.traceException (_exc);
            throw _exc;
        }
        catch (java.sql.SQLException _exc0) {
            Tracer.println (" <-!");
            Tracer.traceException (_exc0);
            throw _exc0;
        }
        return _result;
    }

    public long length ()
    throws java.sql.SQLException
    {
        long _result;
        Tracer.println (this._inner + ".length (" + ")");
        try {
            _result = this._inner.length ();
            Tracer.println ("=> " + _result);
        }
        catch (RuntimeException _exc) {
            Tracer.println (" <-!");
            Tracer.traceException (_exc);
            throw _exc;
        }
        catch (java.sql.SQLException _exc0) {
            Tracer.println (" <-!");
            Tracer.traceException (_exc0);
            throw _exc0;
        }
        return _result;
    }

    public long position (
        byte [] arg0,
        long arg1)
    throws java.sql.SQLException
    {
        long _result;
        Tracer.println (this._inner + ".position (" + arg0 + ", " + arg1 + ")");
        try {
            _result = this._inner.position (arg0, arg1);
            Tracer.println ("=> " + _result);
        }
        catch (RuntimeException _exc) {
            Tracer.println (" <-!");
            Tracer.traceException (_exc);
            throw _exc;
        }
        catch (java.sql.SQLException _exc0) {
            Tracer.println (" <-!");
            Tracer.traceException (_exc0);
            throw _exc0;
        }
        return _result;
    }

    public long position (
        java.sql.Blob arg0,
        long arg1)
    throws java.sql.SQLException
    {
        long _result;
        Tracer.println (this._inner + ".position (" + com.sap.dbtech.jdbc.trace.Blob.getInner(arg0) + ", " + arg1 + ")");
        try {
            _result = this._inner.position (com.sap.dbtech.jdbc.trace.Blob.getInner(arg0), arg1);
            Tracer.println ("=> " + _result);
        }
        catch (RuntimeException _exc) {
            Tracer.println (" <-!");
            Tracer.traceException (_exc);
            throw _exc;
        }
        catch (java.sql.SQLException _exc0) {
            Tracer.println (" <-!");
            Tracer.traceException (_exc0);
            throw _exc0;
        }
        return _result;
    }

    public java.io.InputStream getBinaryStream ()
    throws java.sql.SQLException
    {
        java.io.InputStream _result;
        Tracer.println (this._inner + ".getBinaryStream (" + ")");
        try {
            _result = this._inner.getBinaryStream ();
            Tracer.println ("=> " + _result);
        }
        catch (RuntimeException _exc) {
            Tracer.println (" <-!");
            Tracer.traceException (_exc);
            throw _exc;
        }
        catch (java.sql.SQLException _exc0) {
            Tracer.println (" <-!");
            Tracer.traceException (_exc0);
            throw _exc0;
        }
        return _result;
    }

    public java.io.OutputStream setBinaryStream (
        long arg0)
    throws java.sql.SQLException
    {
        java.io.OutputStream _result;
        Tracer.println (this._inner + ".setBinaryStream (" + arg0 + ")");
        try {
            _result = this._inner.setBinaryStream (arg0);
            Tracer.println ("=> " + _result);
        }
        catch (RuntimeException _exc) {
            Tracer.println (" <-!");
            Tracer.traceException (_exc);
            throw _exc;
        }
        catch (java.sql.SQLException _exc0) {
            Tracer.println (" <-!");
            Tracer.traceException (_exc0);
            throw _exc0;
        }
        return _result;
    }

    public int setBytes (
        long arg0,
        byte [] arg1,
        int arg2,
        int arg3)
    throws java.sql.SQLException
    {
        int _result;
        Tracer.println (this._inner + ".setBytes (" + arg0 + ", " + arg1 + ", " + arg2 + ", " + arg3 + ")");
        try {
            _result = this._inner.setBytes (arg0, arg1, arg2, arg3);
            Tracer.println ("=> " + _result);
        }
        catch (RuntimeException _exc) {
            Tracer.println (" <-!");
            Tracer.traceException (_exc);
            throw _exc;
        }
        catch (java.sql.SQLException _exc0) {
            Tracer.println (" <-!");
            Tracer.traceException (_exc0);
            throw _exc0;
        }
        return _result;
    }

    public int setBytes (
        long arg0,
        byte [] arg1)
    throws java.sql.SQLException
    {
        int _result;
        Tracer.println (this._inner + ".setBytes (" + arg0 + ", " + arg1 + ")");
        try {
            _result = this._inner.setBytes (arg0, arg1);
            Tracer.println ("=> " + _result);
        }
        catch (RuntimeException _exc) {
            Tracer.println (" <-!");
            Tracer.traceException (_exc);
            throw _exc;
        }
        catch (java.sql.SQLException _exc0) {
            Tracer.println (" <-!");
            Tracer.traceException (_exc0);
            throw _exc0;
        }
        return _result;
    }

    public void truncate (
        long arg0)
    throws java.sql.SQLException
    {
        Tracer.println (this._inner + ".truncate (" + arg0 + ")");
        try {
            this._inner.truncate (arg0);
        }
        catch (RuntimeException _exc) {
            Tracer.println (" <-!");
            Tracer.traceException (_exc);
            throw _exc;
        }
        catch (java.sql.SQLException _exc0) {
            Tracer.println (" <-!");
            Tracer.traceException (_exc0);
            throw _exc0;
        }
    }


}
