Class DbExport

java.lang.Object
org.jumpmind.symmetric.io.data.DbExport

public class DbExport extends Object
Export the structure and data from database tables to file.
  • Constructor Details

  • Method Details

    • exportTables

      public String exportTables() throws IOException
      Throws:
      IOException
    • exportTables

      public String exportTables(String[] tableNames) throws IOException
      Throws:
      IOException
    • exportTables

      public String exportTables(Table[] tables) throws IOException
      Throws:
      IOException
    • exportTables

      public void exportTables(OutputStream output) throws IOException
      Throws:
      IOException
    • exportTables

      public void exportTables(OutputStream output, String[] tableNames) throws IOException
      Throws:
      IOException
    • exportTable

      public void exportTable(OutputStream output, String tableName, String sql) throws IOException
      Throws:
      IOException
    • exportTables

      public void exportTables(OutputStream output, Table[] tables) throws IOException
      Throws:
      IOException
    • exportTables

      public void exportTables(OutputStream output, Table[] tables, String sql) throws IOException
      Throws:
      IOException
    • getSchemaToUse

      protected String getSchemaToUse()
    • getCatalogToUse

      protected String getCatalogToUse()
    • writeTable

      protected void writeTable(org.jumpmind.symmetric.io.data.DbExport.WriterWrapper writerWrapper, Table table, String sql) throws IOException
      Throws:
      IOException
    • getColumnsToExport

      protected Column[] getColumnsToExport(Table table)
    • getDatabase

      protected Database getDatabase(Table table)
    • getDatabase

      protected Database getDatabase(Table[] tables)
    • getFormat

      public DbExport.Format getFormat()
    • setFormat

      public void setFormat(DbExport.Format format)
    • getCompatible

      public DbExport.Compatible getCompatible()
    • setCompatible

      public void setCompatible(DbExport.Compatible compatible)
    • isAddDropTable

      public boolean isAddDropTable()
    • setAddDropTable

      public void setAddDropTable(boolean addDropTable)
    • isNoCreateInfo

      public boolean isNoCreateInfo()
    • setNoCreateInfo

      public void setNoCreateInfo(boolean noCreateInfo)
    • isNoData

      public boolean isNoData()
    • setNoData

      public void setNoData(boolean noData)
    • setUseQuotedIdentifiers

      public void setUseQuotedIdentifiers(boolean useQuotedIdentifiers)
    • isUseQuotedIdentifiers

      public boolean isUseQuotedIdentifiers()
    • setWhereClause

      public void setWhereClause(String whereClause)
    • getWhereClause

      public String getWhereClause()
    • setExcludeColumns

      public void setExcludeColumns(String[] excludeColumns)
    • getExcludeColumns

      public String[] getExcludeColumns()
    • isComments

      public boolean isComments()
    • setComments

      public void setComments(boolean comments)
    • getCatalog

      public String getCatalog()
    • setCatalog

      public void setCatalog(String catalog)
    • getSchema

      public String getSchema()
    • setSchema

      public void setSchema(String schema)
    • isIgnoreMissingTables

      public boolean isIgnoreMissingTables()
    • setIgnoreMissingTables

      public void setIgnoreMissingTables(boolean ignoreMissingTables)
    • isUseVariableDates

      public boolean isUseVariableDates()
    • setUseVariableForDates

      public void setUseVariableForDates(boolean useVariableDates)
    • isNoIndices

      public boolean isNoIndices()
    • setNoIndices

      public void setNoIndices(boolean noIndices)
    • isNoForeignKeys

      public boolean isNoForeignKeys()
    • setNoForeignKeys

      public void setNoForeignKeys(boolean noForeignKeys)
    • setDir

      public void setDir(String dir)
    • getDir

      public String getDir()
    • setUseJdbcTimestampFormat

      public void setUseJdbcTimestampFormat(boolean useJdbcTimestampFormat)
    • isUseJdbcTimestampFormat

      public boolean isUseJdbcTimestampFormat()
    • setMaxRows

      public void setMaxRows(int maxRows)
    • getMaxRows

      public int getMaxRows()
    • isUseReadUncommitted

      public boolean isUseReadUncommitted()
    • setUseReadUncommitted

      public void setUseReadUncommitted(boolean useReadUncommitted)
    • getDatabaseName

      protected String getDatabaseName()