com.github.springtestdbunit.bean
Class DatabaseConfigBean

java.lang.Object
  extended by com.github.springtestdbunit.bean.DatabaseConfigBean

public class DatabaseConfigBean
extends Object

A bean representation of the DB unit DatabaseConfig class. This bean allows the database configuration from spring using standard property arguments. The configuration from this bean can be applied to an existing DatabaseConfig.

Author:
Phillip Webb

Constructor Summary
DatabaseConfigBean()
           
 
Method Summary
 void apply(org.dbunit.database.DatabaseConfig databaseConfig)
          Apply the configuration represented by this bean to the specified databaseConfig.
 Boolean getBatchedStatements()
          Gets the batched statements database config feature.
 Integer getBatchSize()
          Gets the batch size database config property.
 Boolean getCaseSensitiveTableNames()
          Gets the case sensitive table names database config feature.
 org.dbunit.dataset.datatype.IDataTypeFactory getDatatypeFactory()
          Gets the data type factory database config property.
 Boolean getDatatypeWarning()
          Gets the datatype warning database config feature.
 String getEscapePattern()
          Gets the escape pattern database config property.
 Integer getFetchSize()
          Gets the fetch size database config property.
 org.dbunit.database.IMetadataHandler getMetadataHandler()
          Gets the meta-data handler database config property.
 org.dbunit.dataset.filter.IColumnFilter getPrimaryKeyFilter()
          Gets the primary key filter database config property.
 Boolean getQualifiedTableNames()
          Gets the qualified table names database config feature.
 org.dbunit.database.IResultSetTableFactory getResultsetTableFactory()
          Gets the result set table factory database config property.
 Boolean getSkipOracleRecyclebinTables()
          Gets the skip oracle recyclebin tables database config feature.
 org.dbunit.database.statement.IStatementFactory getStatementFactory()
          Gets the statement factory database config property.
 String[] getTableType()
          Gets the table type database config property.
 void setBatchedStatements(Boolean batchedStatements)
          Sets the batched statements database config feature.
 void setBatchSize(Integer batchSize)
          Sets the batch size database config property.
 void setCaseSensitiveTableNames(Boolean caseSensitiveTableNames)
          Sets the case sensitive table names database config feature.
 void setDatatypeFactory(org.dbunit.dataset.datatype.IDataTypeFactory dataTypeFactory)
          Sets the data type factory database config property.
 void setDatatypeWarning(Boolean datatypeWarning)
          Sets the datatype warning database config feature.
 void setEscapePattern(String escapePattern)
          Sets the escape pattern database config property.
 void setFetchSize(Integer fetchSize)
          Sets the fetch size database config property.
 void setMetadataHandler(org.dbunit.database.IMetadataHandler metadataHandler)
          Sets the meta-data handler database config property.
 void setPrimaryKeyFilter(org.dbunit.dataset.filter.IColumnFilter primaryKeyFilter)
          Sets the primary key filter database config property.
 void setQualifiedTableNames(Boolean qualifiedTableNames)
          Sets the qualified table names database config feature.
 void setResultsetTableFactory(org.dbunit.database.IResultSetTableFactory resultSetTableFactory)
          Sets the result set table factory database config property.
 void setSkipOracleRecyclebinTables(Boolean skipOracleRecyclebinTables)
          Sets the skip oracle recyclebin tables database config feature.
 void setStatementFactory(org.dbunit.database.statement.IStatementFactory statementFactory)
          Sets the statement factory database config property.
 void setTableType(String[] tableTable)
          Sets the table type database config property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseConfigBean

public DatabaseConfigBean()
Method Detail

getStatementFactory

public org.dbunit.database.statement.IStatementFactory getStatementFactory()
Gets the statement factory database config property.

Returns:
the statement factory
See Also:
DatabaseConfig.PROPERTY_STATEMENT_FACTORY

setStatementFactory

public void setStatementFactory(org.dbunit.database.statement.IStatementFactory statementFactory)
Sets the statement factory database config property.

Parameters:
statementFactory - the statement factory
See Also:
DatabaseConfig.PROPERTY_STATEMENT_FACTORY

getResultsetTableFactory

public org.dbunit.database.IResultSetTableFactory getResultsetTableFactory()
Gets the result set table factory database config property.

Returns:
the result set table factory
See Also:
DatabaseConfig.PROPERTY_RESULTSET_TABLE_FACTORY

setResultsetTableFactory

public void setResultsetTableFactory(org.dbunit.database.IResultSetTableFactory resultSetTableFactory)
Sets the result set table factory database config property.

Parameters:
resultSetTableFactory - the result set table factory
See Also:
DatabaseConfig.PROPERTY_RESULTSET_TABLE_FACTORY

getDatatypeFactory

public org.dbunit.dataset.datatype.IDataTypeFactory getDatatypeFactory()
Gets the data type factory database config property.

Returns:
the data type factory
See Also:
DatabaseConfig.PROPERTY_DATATYPE_FACTORY

setDatatypeFactory

public void setDatatypeFactory(org.dbunit.dataset.datatype.IDataTypeFactory dataTypeFactory)
Sets the data type factory database config property.

Parameters:
dataTypeFactory - the data type factory
See Also:
DatabaseConfig.PROPERTY_DATATYPE_FACTORY

getEscapePattern

public String getEscapePattern()
Gets the escape pattern database config property.

Returns:
the escape pattern
See Also:
DatabaseConfig.PROPERTY_ESCAPE_PATTERN

setEscapePattern

public void setEscapePattern(String escapePattern)
Sets the escape pattern database config property.

Parameters:
escapePattern - the escape pattern
See Also:
DatabaseConfig.PROPERTY_ESCAPE_PATTERN

getTableType

public String[] getTableType()
Gets the table type database config property.

Returns:
the table type
See Also:
DatabaseConfig.PROPERTY_TABLE_TYPE

setTableType

public void setTableType(String[] tableTable)
Sets the table type database config property.

Parameters:
tableTable - the table type
See Also:
DatabaseConfig.PROPERTY_TABLE_TYPE

getPrimaryKeyFilter

public org.dbunit.dataset.filter.IColumnFilter getPrimaryKeyFilter()
Gets the primary key filter database config property.

Returns:
the primary key filter
See Also:
DatabaseConfig.PROPERTY_PRIMARY_KEY_FILTER

setPrimaryKeyFilter

public void setPrimaryKeyFilter(org.dbunit.dataset.filter.IColumnFilter primaryKeyFilter)
Sets the primary key filter database config property.

Parameters:
primaryKeyFilter - the primary key filter
See Also:
DatabaseConfig.PROPERTY_PRIMARY_KEY_FILTER

getBatchSize

public Integer getBatchSize()
Gets the batch size database config property.

Returns:
the batch size
See Also:
DatabaseConfig.PROPERTY_BATCH_SIZE

setBatchSize

public void setBatchSize(Integer batchSize)
Sets the batch size database config property.

Parameters:
batchSize - the batch size
See Also:
DatabaseConfig.PROPERTY_BATCH_SIZE

getFetchSize

public Integer getFetchSize()
Gets the fetch size database config property.

Returns:
the fetch size
See Also:
DatabaseConfig.PROPERTY_FETCH_SIZE

setFetchSize

public void setFetchSize(Integer fetchSize)
Sets the fetch size database config property.

Parameters:
fetchSize - the fetch size
See Also:
DatabaseConfig.PROPERTY_FETCH_SIZE

getMetadataHandler

public org.dbunit.database.IMetadataHandler getMetadataHandler()
Gets the meta-data handler database config property.

Returns:
the meta-data handler
See Also:
DatabaseConfig.PROPERTY_METADATA_HANDLER

setMetadataHandler

public void setMetadataHandler(org.dbunit.database.IMetadataHandler metadataHandler)
Sets the meta-data handler database config property.

Parameters:
metadataHandler - meta-data handler
See Also:
DatabaseConfig.PROPERTY_METADATA_HANDLER

getCaseSensitiveTableNames

public Boolean getCaseSensitiveTableNames()
Gets the case sensitive table names database config feature.

Returns:
case sensitive table names
See Also:
DatabaseConfig.FEATURE_CASE_SENSITIVE_TABLE_NAMES

setCaseSensitiveTableNames

public void setCaseSensitiveTableNames(Boolean caseSensitiveTableNames)
Sets the case sensitive table names database config feature.

Parameters:
caseSensitiveTableNames - case sensitive table names
See Also:
DatabaseConfig.FEATURE_CASE_SENSITIVE_TABLE_NAMES

getQualifiedTableNames

public Boolean getQualifiedTableNames()
Gets the qualified table names database config feature.

Returns:
the qualified table names
See Also:
DatabaseConfig.FEATURE_QUALIFIED_TABLE_NAMES

setQualifiedTableNames

public void setQualifiedTableNames(Boolean qualifiedTableNames)
Sets the qualified table names database config feature.

Parameters:
qualifiedTableNames - the qualified table names
See Also:
DatabaseConfig.FEATURE_QUALIFIED_TABLE_NAMES

getBatchedStatements

public Boolean getBatchedStatements()
Gets the batched statements database config feature.

Returns:
the batched statements
See Also:
DatabaseConfig.FEATURE_BATCHED_STATEMENTS

setBatchedStatements

public void setBatchedStatements(Boolean batchedStatements)
Sets the batched statements database config feature.

Parameters:
batchedStatements - the batched statements
See Also:
DatabaseConfig.FEATURE_BATCHED_STATEMENTS

getDatatypeWarning

public Boolean getDatatypeWarning()
Gets the datatype warning database config feature.

Returns:
the datatype warning
See Also:
DatabaseConfig.FEATURE_DATATYPE_WARNING

setDatatypeWarning

public void setDatatypeWarning(Boolean datatypeWarning)
Sets the datatype warning database config feature.

Parameters:
datatypeWarning - the datatype warning
See Also:
DatabaseConfig.FEATURE_DATATYPE_WARNING

getSkipOracleRecyclebinTables

public Boolean getSkipOracleRecyclebinTables()
Gets the skip oracle recyclebin tables database config feature.

Returns:
the skip oracle recyclebin tables
See Also:
DatabaseConfig.FEATURE_SKIP_ORACLE_RECYCLEBIN_TABLES

setSkipOracleRecyclebinTables

public void setSkipOracleRecyclebinTables(Boolean skipOracleRecyclebinTables)
Sets the skip oracle recyclebin tables database config feature.

Parameters:
skipOracleRecyclebinTables - skip oracle recyclebin tables
See Also:
DatabaseConfig.FEATURE_SKIP_ORACLE_RECYCLEBIN_TABLES

apply

public void apply(org.dbunit.database.DatabaseConfig databaseConfig)
Apply the configuration represented by this bean to the specified databaseConfig.

Parameters:
databaseConfig - the database config to be updated.


Copyright © 2012. All Rights Reserved.