Package org.dbunit.ext.mysql

Examples of org.dbunit.ext.mysql.MySqlDataTypeFactory


  /**
   * must be implemented, otherwise warnings
   */
  protected void setUpDatabaseConfig(DatabaseConfig config) {
    config.setProperty(DatabaseConfig.PROPERTY_DATATYPE_FACTORY, new MySqlDataTypeFactory());
  }
View Full Code Here


    if ("MySQL".equalsIgnoreCase(connection.getMetaData()
        .getDatabaseProductName())) {
      config.setProperty(DatabaseConfig.PROPERTY_METADATA_HANDLER,
          new MySqlMetadataHandler());
      config.setProperty(DatabaseConfig.PROPERTY_DATATYPE_FACTORY,
          new MySqlDataTypeFactory());
    } //else if ("Oracle".equalsIgnoreCase(connection.getMetaData()
//        .getDatabaseProductName())) {
//      config.setProperty(DatabaseConfig.PROPERTY_DATATYPE_FACTORY,
//          new Oracle10DataTypeFactory());
//    }
View Full Code Here

      break;
    case H2:
      dataTypeFactory = new H2DataTypeFactory();
      break;
    case MYSQL:
      dataTypeFactory = new MySqlDataTypeFactory();
      metadataHandler = new MySqlMetadataHandler();
      break;
    case ORACLE:
      // XXX: Enable for other DBs?
      this.setConfigProperty(DatabaseConfig.FEATURE_BATCHED_STATEMENTS, true);
View Full Code Here

TOP

Related Classes of org.dbunit.ext.mysql.MySqlDataTypeFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.