Code example for Table

Methods: getQualifiedNamesqlDropString

0
    return DriverManager.getConnection(
        _tool.getDbServerHost() + "/" + _tool.getTestCatalog(), _tool.getUser(), _tool.getPassword());
  } 
 
  private void createTestTable() throws SQLException {
    Table table = new Table(TEST_TABLE);
    try { 
      String dropSql = table.sqlDropString(_tool.getHibernateDialect(), null, _tool
          .getTestSchema()); 
      _tool.executeSql(_tool.getTestCatalog(), _tool.getTestSchema(), dropSql);
    } catch (OpenGammaRuntimeException e) {
      // It might not exist, that's OK 
    } 
    String createSql = "CREATE TABLE "
        + table.getQualifiedName(_tool.getHibernateDialect(), null, _tool
            .getTestSchema()) + " (test_column char(50))"; 
    _tool.executeSql(_tool.getTestCatalog(), _tool.getTestSchema(), createSql);
  } 
 
}