@Test public void testGetDataSourceFail() throws Exception { thrown.expect(MetaException.class); thrown.expectMessage("does not exist"); metaContext.getDataSource("any"); }
@Override public MetaDataSource getDataSource(String name) throws MetaException { return getMDataSource(name, false); }
JDOMetaContext implements MetaContext { @Override public MetaDataSource getDataSource(String name) throws MetaException { return getMDataSource(name, false); } }
JDOMetaContext implements MetaContext { @Override public MetaDataSource getDataSource(String name) throws MetaException { return getMDataSource(name, false); } JDOMetaContext(PersistenceManager persistenceManager,
                          UpdateLoggerFactory updateLoggerFactory); }
JDOMetaContext implements MetaContext { @Override public MetaDataSource getDataSource(String name) throws MetaException { return getMDataSource(name, false); } JDOMetaContext(PersistenceManager persistenceManager,
                          UpdateLoggerFactory updateLoggerFactory); @Override boolean userExists(String name); @Override MetaUser getUser(String name); @Override MetaUser createUser(String name, String password); @Override void alterUser(String name, String newPassword); @Override void dropUser(String name); @Override void commentOnUser(String comment, String name); @Override Collection<MetaUser> getUsers(); @Override boolean dataSourceExists(String name); @Override MetaDataSource getDataSource(String name); @Override MetaDataSource addJdbcDataSource(String driverName, String connectionString, String name); @Override MetaDataSource addMetaModelDataSource(String driverName, String connectionString, String name); @Override void dropJdbcDataSource(String name); @Override MetaDataSource updateJdbcDataSource(String dataSourceName, final String schemaRegex, final String tableRegex); @Override void commentOnDataSource(String comment, String name); @Override Collection<MetaDataSource> getDataSources(); @Override Collection<ResultOfGetColumns> getColumns(String dataSourceName, String schemaRegex, String tableRegex, String colmnRegex); @Override void commentOnSchema(String comment, String dataSourceName, String schemaName); @Override void commentOnTable(String comment, String dataSourceName, String schemaName, String tableName); @Override void commentOnColumn(String comment, String dataSourceName, String schemaName, String tableName, String columnName); @Override void setDataCategoryOn(String category, String dataSourceName, String schemaName, String tableName, String columnName); @Override MetaRole createRole(String name); @Override void dropRoleByName(String name); @Override void addSystemPrivileges(List<SystemPrivilege> sysPrivs, List<String> userNames); @Override void removeSystemPrivileges(List<SystemPrivilege> sysPrivs, List<String> userNames); @Override MetaSchemaPrivilege getSchemaPrivilege(String[] schemaName, String userName); @Override Collection<MetaSchemaPrivilege> getSchemaPrivilegesByUser(String userName); @Override void addObjectPrivileges(List<ObjectPrivilege> objPrivs, String[] schemaName, List<String> userNames); @Override void removeObjectPrivileges(List<ObjectPrivilege> objPrivs, String[] schemaName, List<String> userNames); @Override void close(); }
JDOMetaContext implements MetaContext { @Override public MetaDataSource getDataSource(String name) throws MetaException { return getMDataSource(name, false); } JDOMetaContext(PersistenceManager persistenceManager,
                          UpdateLoggerFactory updateLoggerFactory); @Override boolean userExists(String name); @Override MetaUser getUser(String name); @Override MetaUser createUser(String name, String password); @Override void alterUser(String name, String newPassword); @Override void dropUser(String name); @Override void commentOnUser(String comment, String name); @Override Collection<MetaUser> getUsers(); @Override boolean dataSourceExists(String name); @Override MetaDataSource getDataSource(String name); @Override MetaDataSource addJdbcDataSource(String driverName, String connectionString, String name); @Override MetaDataSource addMetaModelDataSource(String driverName, String connectionString, String name); @Override void dropJdbcDataSource(String name); @Override MetaDataSource updateJdbcDataSource(String dataSourceName, final String schemaRegex, final String tableRegex); @Override void commentOnDataSource(String comment, String name); @Override Collection<MetaDataSource> getDataSources(); @Override Collection<ResultOfGetColumns> getColumns(String dataSourceName, String schemaRegex, String tableRegex, String colmnRegex); @Override void commentOnSchema(String comment, String dataSourceName, String schemaName); @Override void commentOnTable(String comment, String dataSourceName, String schemaName, String tableName); @Override void commentOnColumn(String comment, String dataSourceName, String schemaName, String tableName, String columnName); @Override void setDataCategoryOn(String category, String dataSourceName, String schemaName, String tableName, String columnName); @Override MetaRole createRole(String name); @Override void dropRoleByName(String name); @Override void addSystemPrivileges(List<SystemPrivilege> sysPrivs, List<String> userNames); @Override void removeSystemPrivileges(List<SystemPrivilege> sysPrivs, List<String> userNames); @Override MetaSchemaPrivilege getSchemaPrivilege(String[] schemaName, String userName); @Override Collection<MetaSchemaPrivilege> getSchemaPrivilegesByUser(String userName); @Override void addObjectPrivileges(List<ObjectPrivilege> objPrivs, String[] schemaName, List<String> userNames); @Override void removeObjectPrivileges(List<ObjectPrivilege> objPrivs, String[] schemaName, List<String> userNames); @Override void close();  }