⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 blobproxy.java

📁 JdbcProxy 可以理解为 JDBC 代理
💻 JAVA
字号:
/*
 * This file is generated by nl.griffelservices.proxy.Generator.
 * Please do not modify this file manually.
 * All your changes will be deleted when this file is regenerated.
 */
package nl.griffelservices.proxy.jdbc;

import java.lang.reflect.Method;
import nl.griffelservices.proxy.Handler;

/** This class is a proxy implementation of java.sql.Blob */
public class BlobProxy extends JdbcProxy implements java.sql.Blob
{
  /**
   * Constructs a new BlobProxy object.
   * 
   * @param handler the proxy handler
   * @param proxyObject the proxy data
   */
  public BlobProxy(Handler handler, Object proxyObject)
  {
    super(handler, java.sql.Blob.class, proxyObject);
  }

  /** public abstract byte[] java.sql.Blob.getBytes(long,int) throws java.sql.SQLException */
  private static final Method m0 = getMethod(java.sql.Blob.class, "getBytes", new Class[] {long.class, int.class});
  public byte[] getBytes(long p0, int p1) throws java.sql.SQLException
  {
    return (byte[])invoke(m0, new Object[] {new Long(p0), new Integer(p1)});
  }

  /** public abstract long java.sql.Blob.length() throws java.sql.SQLException */
  private static final Method m1 = getMethod(java.sql.Blob.class, "length", new Class[] {});
  public long length() throws java.sql.SQLException
  {
    return ((Long)invoke(m1, new Object[] {})).longValue();
  }

  /** public abstract long java.sql.Blob.position(java.sql.Blob,long) throws java.sql.SQLException */
  private static final Method m2 = getMethod(java.sql.Blob.class, "position", new Class[] {java.sql.Blob.class, long.class});
  public long position(java.sql.Blob p0, long p1) throws java.sql.SQLException
  {
    return ((Long)invoke(m2, new Object[] {p0, new Long(p1)})).longValue();
  }

  /** public abstract long java.sql.Blob.position(byte[],long) throws java.sql.SQLException */
  private static final Method m3 = getMethod(java.sql.Blob.class, "position", new Class[] {byte[].class, long.class});
  public long position(byte[] p0, long p1) throws java.sql.SQLException
  {
    return ((Long)invoke(m3, new Object[] {p0, new Long(p1)})).longValue();
  }

  /** public abstract java.io.InputStream java.sql.Blob.getBinaryStream() throws java.sql.SQLException */
  private static final Method m4 = getMethod(java.sql.Blob.class, "getBinaryStream", new Class[] {});
  public java.io.InputStream getBinaryStream() throws java.sql.SQLException
  {
    return (java.io.InputStream)invoke(m4, new Object[] {});
  }

  /** public abstract java.io.OutputStream java.sql.Blob.setBinaryStream(long) throws java.sql.SQLException */
  private static final Method m5 = getMethod(java.sql.Blob.class, "setBinaryStream", new Class[] {long.class});
  public java.io.OutputStream setBinaryStream(long p0) throws java.sql.SQLException
  {
    return (java.io.OutputStream)invoke(m5, new Object[] {new Long(p0)});
  }

  /** public abstract int java.sql.Blob.setBytes(long,byte[]) throws java.sql.SQLException */
  private static final Method m6 = getMethod(java.sql.Blob.class, "setBytes", new Class[] {long.class, byte[].class});
  public int setBytes(long p0, byte[] p1) throws java.sql.SQLException
  {
    return ((Integer)invoke(m6, new Object[] {new Long(p0), p1})).intValue();
  }

  /** public abstract int java.sql.Blob.setBytes(long,byte[],int,int) throws java.sql.SQLException */
  private static final Method m7 = getMethod(java.sql.Blob.class, "setBytes", new Class[] {long.class, byte[].class, int.class, int.class});
  public int setBytes(long p0, byte[] p1, int p2, int p3) throws java.sql.SQLException
  {
    return ((Integer)invoke(m7, new Object[] {new Long(p0), p1, new Integer(p2), new Integer(p3)})).intValue();
  }

  /** public abstract void java.sql.Blob.truncate(long) throws java.sql.SQLException */
  private static final Method m8 = getMethod(java.sql.Blob.class, "truncate", new Class[] {long.class});
  public void truncate(long p0) throws java.sql.SQLException
  {
    invoke(m8, new Object[] {new Long(p0)});
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -