Package org.jumpmind.symmetric.io.data
Class DbExport
java.lang.Object
org.jumpmind.symmetric.io.data.DbExport
Export the structure and data from database tables to file.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
exportTable
(OutputStream output, String tableName, String sql) void
exportTables
(OutputStream output) void
exportTables
(OutputStream output, String[] tableNames) void
exportTables
(OutputStream output, Table[] tables) void
exportTables
(OutputStream output, Table[] tables, String sql) exportTables
(String[] tableNames) exportTables
(Table[] tables) protected String
protected Column[]
getColumnsToExport
(Table table) protected Database
getDatabase
(Table table) protected Database
getDatabase
(Table[] tables) protected String
getDir()
String[]
int
protected String
boolean
boolean
boolean
boolean
boolean
isNoData()
boolean
boolean
boolean
boolean
boolean
boolean
void
setAddDropTable
(boolean addDropTable) void
setCatalog
(String catalog) void
setComments
(boolean comments) void
setCompatible
(DbExport.Compatible compatible) void
void
setExcludeColumns
(String[] excludeColumns) void
setFormat
(DbExport.Format format) void
setIgnoreMissingTables
(boolean ignoreMissingTables) void
setMaxRows
(int maxRows) void
setNoCreateInfo
(boolean noCreateInfo) void
setNoData
(boolean noData) void
setNoForeignKeys
(boolean noForeignKeys) void
setNoIndices
(boolean noIndices) void
void
setUseJdbcTimestampFormat
(boolean useJdbcTimestampFormat) void
setUseQuotedIdentifiers
(boolean useQuotedIdentifiers) void
setUseReadUncommitted
(boolean useReadUncommitted) void
setUseVariableForDates
(boolean useVariableDates) void
setWhereClause
(String whereClause) protected void
writeTable
(org.jumpmind.symmetric.io.data.DbExport.WriterWrapper writerWrapper, Table table, String sql)
-
Constructor Details
-
DbExport
-
-
Method Details
-
exportTables
- Throws:
IOException
-
exportTables
- Throws:
IOException
-
exportTables
- Throws:
IOException
-
exportTables
- Throws:
IOException
-
exportTables
- Throws:
IOException
-
exportTable
- Throws:
IOException
-
exportTables
- Throws:
IOException
-
exportTables
- Throws:
IOException
-
getSchemaToUse
-
getCatalogToUse
-
writeTable
protected void writeTable(org.jumpmind.symmetric.io.data.DbExport.WriterWrapper writerWrapper, Table table, String sql) throws IOException - Throws:
IOException
-
getColumnsToExport
-
getDatabase
-
getDatabase
-
getFormat
-
setFormat
-
getCompatible
-
setCompatible
-
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
-
getWhereClause
-
setExcludeColumns
-
getExcludeColumns
-
isComments
public boolean isComments() -
setComments
public void setComments(boolean comments) -
getCatalog
-
setCatalog
-
getSchema
-
setSchema
-
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
-
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
-