パッケージ org.postgresql.jdbc

クラス AbstractBlobClob

java.lang.Object
org.postgresql.jdbc.AbstractBlobClob
直系の既知のサブクラス:
PgBlob, PgClob

public abstract class AbstractBlobClob extends Object
This class holds all of the methods common to both Blobs and Clobs.
  • フィールド詳細

  • コンストラクタの詳細

  • メソッドの詳細

    • free

      public void free() throws SQLException
      例外:
      SQLException
    • truncate

      public void truncate(long len) throws SQLException
      For Blobs this should be in bytes while for Clobs it should be in characters. Since we really haven't figured out how to handle character sets for Clobs the current implementation uses bytes for both Blobs and Clobs.
      パラメータ:
      len - maximum length
      例外:
      SQLException - if operation fails
    • length

      public long length() throws SQLException
      例外:
      SQLException
    • getBytes

      public byte[] getBytes(long pos, int length) throws SQLException
      例外:
      SQLException
    • getBinaryStream

      public InputStream getBinaryStream() throws SQLException
      例外:
      SQLException
    • setBinaryStream

      public OutputStream setBinaryStream(long pos) throws SQLException
      例外:
      SQLException
    • position

      public long position(byte[] pattern, long start) throws SQLException
      Iterate over the buffer looking for the specified pattern.
      パラメータ:
      pattern - A pattern of bytes to search the blob for
      start - The position to start reading from
      戻り値:
      position of the specified pattern
      例外:
      SQLException - if something wrong happens
    • position

      public long position(Blob pattern, long start) throws SQLException
      This is simply passing the byte value of the pattern Blob.
      パラメータ:
      pattern - search pattern
      start - start position
      戻り値:
      position of given pattern
      例外:
      SQLException - if something goes wrong
    • assertPosition

      protected void assertPosition(long pos) throws SQLException
      Throws an exception if the pos value exceeds the max value by which the large object API can index.
      パラメータ:
      pos - Position to write at.
      例外:
      SQLException - if something goes wrong
    • assertPosition

      protected void assertPosition(long pos, long len) throws SQLException
      Throws an exception if the pos value exceeds the max value by which the large object API can index.
      パラメータ:
      pos - Position to write at.
      len - number of bytes to write.
      例外:
      SQLException - if something goes wrong
    • checkFreed

      protected void checkFreed() throws SQLException
      Checks that this LOB hasn't been free()d already.
      例外:
      SQLException - if LOB has been freed.
    • getLo

      protected LargeObject getLo(boolean forWrite) throws SQLException
      例外:
      SQLException
    • addSubLO

      protected void addSubLO(LargeObject subLO)