public OdbcSchema(List<String> parentSchemaPath, String name) { super(parentSchemaPath, name); currentSchema = MPJdbcCnxnManager.getClient(uri, clientOptions, plugin).getCurrentSchema(); if (currentSchema == null) { currentSchema = "ROOT"; } sub_schemas = MPJdbcCnxnManager.getClient(uri, clientOptions, plugin).getSchemas(); // TODO Auto-generated constructor stub }
public OdbcSchema(String name) { super(ImmutableList.<String>of(), name); /*currentSchema = MPJdbcCnxnManager.getClient(uri, clientOptions, plugin).getCurrentSchema(); if (currentSchema == null) { currentSchema = MPJdbcCnxnManager.getClient(uri, clientOptions, plugin).getCurrentSchema(); } */ if (name.equals("")) { sub_schemas = MPJdbcCnxnManager.getClient(uri, clientOptions, plugin).getSchemas(); } tables = MPJdbcCnxnManager.getClient(uri, clientOptions, plugin).getTables(name); }
public OdbcSchema getSchema() { List<String> l = new ArrayList<String>(); String currentSchema = MPJdbcCnxnManager.getClient(uri, clientOptions, plugin).getCurrentSchema(); defaultSchema = new OdbcSchema(currentSchema); return defaultSchema; }
@Override public AbstractSchema getSubSchema(String name) { if (sub_schemas == null) { sub_schemas = MPJdbcCnxnManager.getClient(uri, clientOptions, plugin).getSchemas(); } Integer a = sub_schemas.get(name); if (a == 1) { return new OdbcSchema(name); } return null; }
@Override public AbstractSchema getDefaultSchema() { return MPJdbcCnxnManager.getClient(uri, clientOptions, plugin).getDefaultSchema(); }
@Override public Set<String> getSubSchemaNames() { // TODO Auto-generated method stub sub_schemas = MPJdbcCnxnManager.getClient(uri, clientOptions, plugin).getSchemas(); return sub_schemas.keySet(); }
@Override public Set<String> getTableNames() { // TODO Auto-generated method stub Set<String> Tables = MPJdbcCnxnManager.getClient(uri, clientOptions, plugin).getTables(name); return Tables; }