コード例 #1
0
 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
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 public OdbcSchema getSchema() {
   List<String> l = new ArrayList<String>();
   String currentSchema =
       MPJdbcCnxnManager.getClient(uri, clientOptions, plugin).getCurrentSchema();
   defaultSchema = new OdbcSchema(currentSchema);
   return defaultSchema;
 }
コード例 #4
0
 @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;
 }
コード例 #5
0
 @Override
 public AbstractSchema getDefaultSchema() {
   return MPJdbcCnxnManager.getClient(uri, clientOptions, plugin).getDefaultSchema();
 }
コード例 #6
0
 @Override
 public Set<String> getSubSchemaNames() {
   // TODO Auto-generated method stub
   sub_schemas = MPJdbcCnxnManager.getClient(uri, clientOptions, plugin).getSchemas();
   return sub_schemas.keySet();
 }
コード例 #7
0
 @Override
 public Set<String> getTableNames() {
   // TODO Auto-generated method stub
   Set<String> Tables = MPJdbcCnxnManager.getClient(uri, clientOptions, plugin).getTables(name);
   return Tables;
 }