* @return
*/
public static boolean tableExists(String tableName, String uri) {
JdbcTemplate t = new JdbcTemplate(CachingDataSourceProvider.getInstance().getDataSource(uri));
try {
t.query( "select * from " + tableName + ifMySql(" LIMIT 1",DriverLoader.discernDialect(uri)), new TrueRowMapper());
return true;
}
catch (Exception e) {
return false;
}