@Test public void create() { assertEquals(DB_NAME, GlueDatabase.create(mUdbContext, mUdbConfiguration).getName()); }
public static GlueDatabase create(UdbContext udbContext, UdbConfiguration configuration) { String glueDbName = udbContext.getUdbDbName(); if (glueDbName == null || glueDbName.isEmpty()) { throw new IllegalArgumentException( "Glue database name cannot be empty: " + glueDbName); } else if (configuration.get(Property.GLUE_REGION) == null) { throw new IllegalArgumentException("GlueUdb Error: Please setup aws region."); } return new GlueDatabase(udbContext, configuration, glueDbName); }
GlueDatabase implements UnderDatabase { public static GlueDatabase create(UdbContext udbContext, UdbConfiguration configuration) { String glueDbName = udbContext.getUdbDbName(); if (glueDbName == null || glueDbName.isEmpty()) { throw new IllegalArgumentException( "Glue database name cannot be empty: " + glueDbName); } else if (configuration.get(Property.GLUE_REGION) == null) { throw new IllegalArgumentException("GlueUdb Error: Please setup aws region."); } return new GlueDatabase(udbContext, configuration, glueDbName); } }
GlueDatabase implements UnderDatabase { public static GlueDatabase create(UdbContext udbContext, UdbConfiguration configuration) { String glueDbName = udbContext.getUdbDbName(); if (glueDbName == null || glueDbName.isEmpty()) { throw new IllegalArgumentException( "Glue database name cannot be empty: " + glueDbName); } else if (configuration.get(Property.GLUE_REGION) == null) { throw new IllegalArgumentException("GlueUdb Error: Please setup aws region."); } return new GlueDatabase(udbContext, configuration, glueDbName); } @VisibleForTesting protected  GlueDatabase(UdbContext udbContext, UdbConfiguration glueConfig, String glueDbName); }
GlueDatabase implements UnderDatabase { public static GlueDatabase create(UdbContext udbContext, UdbConfiguration configuration) { String glueDbName = udbContext.getUdbDbName(); if (glueDbName == null || glueDbName.isEmpty()) { throw new IllegalArgumentException( "Glue database name cannot be empty: " + glueDbName); } else if (configuration.get(Property.GLUE_REGION) == null) { throw new IllegalArgumentException("GlueUdb Error: Please setup aws region."); } return new GlueDatabase(udbContext, configuration, glueDbName); } @VisibleForTesting protected  GlueDatabase(UdbContext udbContext, UdbConfiguration glueConfig, String glueDbName); static GlueDatabase create(UdbContext udbContext, UdbConfiguration configuration); @Override UdbContext getUdbContext(); @Override DatabaseInfo getDatabaseInfo(); @Override String getType(); @Override String getName(); @Override List<String> getTableNames(); @Override UdbTable getTable(String tableName); AWSGlueAsync getClient(); }
GlueDatabase implements UnderDatabase { public static GlueDatabase create(UdbContext udbContext, UdbConfiguration configuration) { String glueDbName = udbContext.getUdbDbName(); if (glueDbName == null || glueDbName.isEmpty()) { throw new IllegalArgumentException( "Glue database name cannot be empty: " + glueDbName); } else if (configuration.get(Property.GLUE_REGION) == null) { throw new IllegalArgumentException("GlueUdb Error: Please setup aws region."); } return new GlueDatabase(udbContext, configuration, glueDbName); } @VisibleForTesting protected  GlueDatabase(UdbContext udbContext, UdbConfiguration glueConfig, String glueDbName); static GlueDatabase create(UdbContext udbContext, UdbConfiguration configuration); @Override UdbContext getUdbContext(); @Override DatabaseInfo getDatabaseInfo(); @Override String getType(); @Override String getName(); @Override List<String> getTableNames(); @Override UdbTable getTable(String tableName); AWSGlueAsync getClient();  }