Package de.bright_side.bdbexport.model
Class BulkExportRequest
java.lang.Object
de.bright_side.bdbexport.model.BulkExportRequest
public class BulkExportRequest
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description BulkExportRequest() -
Method Summary
Modifier and Type Method Description java.lang.StringgetCatalog()intgetClobExportMaxLength()java.sql.ConnectiongetConnection()java.util.Set<DbExporter.ObjectType>getObjectTypes()java.lang.StringgetSchema()ObjectNameFiltergetTableDataFilter()ObjectNameFiltergetTableDdlFilter()DbExporter.DbTypegetTargetDbType()java.lang.StringgetUserName()ObjectNameFiltergetViewDdlFilter()java.lang.StringgetWhereClause()booleanisSortTableData()voidsetCatalog(java.lang.String catalog)if no value is set the catalog name is determined from the current connection.voidsetClobExportMaxLength(int clobExportMaxLength)if no value is set the default value DbExporter.DEFAULT_CLOB_EXPORT_MAX_LENGTH is usedvoidsetConnection(java.sql.Connection connection)voidsetObjectTypes(java.util.Set<DbExporter.ObjectType> objectTypes)if no value is set, all object types are exportedvoidsetSchema(java.lang.String schema)if no value is set the schema name is determined from the current connectionvoidsetSortTableData(boolean sortTableData)voidsetTableDataFilter(ObjectNameFilter tableDataFilter)if no value is set objects with all names are exported.voidsetTableDdlFilter(ObjectNameFilter tableDdlFilter)if no value is set objects with all names are exported.voidsetTargetDbType(DbExporter.DbType targetDbType)if no value is set the target database type is assumed to be the same as the database type of the connectionvoidsetUserName(java.lang.String userName)if no value is set the user name is determined from the current connectionvoidsetViewDdlFilter(ObjectNameFilter viewDdlFilter)if no value is set objects with all names are exported.voidsetWhereClause(java.lang.String whereClause)
-
Constructor Details
-
BulkExportRequest
public BulkExportRequest()
-
-
Method Details
-
getConnection
public java.sql.Connection getConnection() -
setConnection
public void setConnection(java.sql.Connection connection) -
getUserName
public java.lang.String getUserName() -
setUserName
public void setUserName(java.lang.String userName)if no value is set the user name is determined from the current connection- Parameters:
userName- user name
-
isSortTableData
public boolean isSortTableData() -
setSortTableData
public void setSortTableData(boolean sortTableData) -
getObjectTypes
-
setObjectTypes
if no value is set, all object types are exported- Parameters:
objectTypes- set of object types to be exported
-
getWhereClause
public java.lang.String getWhereClause() -
setWhereClause
public void setWhereClause(java.lang.String whereClause) -
getTargetDbType
-
setTargetDbType
if no value is set the target database type is assumed to be the same as the database type of the connection- Parameters:
targetDbType- target database type
-
getClobExportMaxLength
public int getClobExportMaxLength() -
setClobExportMaxLength
public void setClobExportMaxLength(int clobExportMaxLength)if no value is set the default value DbExporter.DEFAULT_CLOB_EXPORT_MAX_LENGTH is used- Parameters:
clobExportMaxLength- maximum length of the CLOB export per line
-
getCatalog
public java.lang.String getCatalog() -
setCatalog
public void setCatalog(java.lang.String catalog)if no value is set the catalog name is determined from the current connection. The catalog may also be irrelevant for some database types- Parameters:
catalog- catalog name
-
getSchema
public java.lang.String getSchema() -
setSchema
public void setSchema(java.lang.String schema)if no value is set the schema name is determined from the current connection- Parameters:
schema- schema name
-
getTableDdlFilter
-
setTableDdlFilter
if no value is set objects with all names are exported. If the ObjectNameFilter.include or ObjectNameFilter.exclude is null, it means "all".- Parameters:
tableDdlFilter- table DDL filter: names of tables for which the DDL should be exported
-
getTableDataFilter
-
setTableDataFilter
if no value is set objects with all names are exported. If the ObjectNameFilter.include or ObjectNameFilter.exclude is null, it means "all".- Parameters:
tableDataFilter- table data filter: names of tables of which the data should be be exported
-
getViewDdlFilter
-
setViewDdlFilter
if no value is set objects with all names are exported. If the ObjectNameFilter.include or ObjectNameFilter.exclude is null, it means "all".- Parameters:
viewDdlFilter- view DDL filter: names of views to be exported
-