Class ExportAbstract

java.lang.Object
org.apache.derby.impl.load.ExportAbstract
Direct Known Subclasses:
Export

abstract class ExportAbstract extends Object

  • Field Details

  • Constructor Details

    • ExportAbstract

      ExportAbstract()
  • Method Details

    • resultSetForEntity

      protected ResultSet resultSetForEntity() throws Exception
      Throws:
      Exception
    • getOneRowAtATime

      private String[] getOneRowAtATime(ResultSet rs, boolean[] isLargeBinary, boolean[] isLargeChar) throws Exception
      convert resultset data for the current row to string array. If large objects are being exported to an external file, then write the lob data into the external file and store the lob data location in the string array for that column.
      Parameters:
      rs - resultset that contains the data to export.
      isLargeBinary - boolean array, whose elements will be true, if the column type is blob/or other large binary type, otherwise false.
      isLargeChar - boolean array, whose elements will be true, if the column type is clob/ other large char type, otherwise false.
      Returns:
      A string array of the row data to write to export file.
      Throws:
      Exception - if any errors during conversion.
    • stringifyObject

      public static String stringifyObject(Object udt) throws Exception
      Throws:
      Exception
    • getControlFileReader

      protected ControlInfo getControlFileReader()
    • getExportWriteData

      protected abstract ExportWriteDataAbstract getExportWriteData() throws Exception
      Throws:
      Exception
    • doAllTheWork

      protected void doAllTheWork() throws Exception
      Throws:
      Exception