Class BlobExportAdapter


  • public class BlobExportAdapter
    extends java.lang.Object
    • Field Detail

      • connection

        protected final java.sql.Connection connection
    • Constructor Detail

      • BlobExportAdapter

        public BlobExportAdapter​(java.sql.Connection connection,
                                 BlobType blobType,
                                 java.lang.String schema)
    • Method Detail

      • addBatch

        public int addBatch​(long id,
                            BlobExportAdapter.BatchEntry entry)
                     throws java.io.IOException,
                            java.sql.SQLException
        Throws:
        java.io.IOException
        java.sql.SQLException
      • executeBatch

        public int executeBatch()
                         throws java.sql.SQLException,
                                java.io.IOException
        Throws:
        java.sql.SQLException
        java.io.IOException
      • getInByteArray

        public byte[] getInByteArray​(long id)
                              throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • writeToFile

        public boolean writeToFile​(long id,
                                   java.lang.String fileName)
                            throws java.sql.SQLException,
                                   java.io.IOException
        Throws:
        java.sql.SQLException
        java.io.IOException
      • writeToStream

        public boolean writeToStream​(long id,
                                     java.io.OutputStream stream)
                              throws java.sql.SQLException,
                                     java.io.IOException
        Throws:
        java.sql.SQLException
        java.io.IOException
      • close

        public void close()
                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException