Class PgLobApiImpl

  • All Implemented Interfaces:
    PgLobApi

    class PgLobApiImpl
    extends java.lang.Object
    implements PgLobApi
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static int BUF_SIZE  
      private org.postgresql.largeobject.LargeObjectManager mgr  
    • Constructor Summary

      Constructors 
      Constructor Description
      PgLobApiImpl​(java.sql.Connection conn)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long createLob()  
      void deleteLob​(long oid)  
      java.io.InputStream readLob​(long oid)  
      void writeLob​(long oid, java.io.InputStream data)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • mgr

        private final org.postgresql.largeobject.LargeObjectManager mgr
    • Constructor Detail

      • PgLobApiImpl

        PgLobApiImpl​(java.sql.Connection conn)
    • Method Detail

      • createLob

        public long createLob()
        Specified by:
        createLob in interface PgLobApi
      • writeLob

        public void writeLob​(long oid,
                             java.io.InputStream data)
        Specified by:
        writeLob in interface PgLobApi
      • readLob

        public java.io.InputStream readLob​(long oid)
        Specified by:
        readLob in interface PgLobApi
      • deleteLob

        public void deleteLob​(long oid)
        Specified by:
        deleteLob in interface PgLobApi