try {
layerDef.setFieldID(getPKNames(con, tableName));
layerDef.setFieldNames(getFieldNames(con, "select * from "
+ tableName + " where false"));
} catch (SQLException e) {
throw new DriverException(e);
}
layerDef.setTableName(tableName);
layerDef.setWhereClause("");
layerDef.setWorkingArea(null);
driver.setData(con, layerDef);
adapter.setDriver(driver);
adapter.start();
setDriver(driver);
super.open(adapter);
try {
metadata = con.createStatement().executeQuery("select * from " + tableName + " where false").getMetaData();
} catch (SQLException e) {
throw new DriverException(e);
}
}