@Override public InitFromBuilder query() { // produce an InitFromBuilder that uses _this_ datacontext return new InitFromBuilderImpl(this); }
@Override public TableFromBuilder from(String tableName) { if (tableName == null) { throw new IllegalArgumentException("tableName cannot be null"); } Table table = dataContext.getTableByQualifiedLabel(tableName); if (table == null) { throw new IllegalArgumentException("No such table: " + tableName); } return from(table); }
@Override public TableFromBuilder from(String tableName) { if (tableName == null) { throw new IllegalArgumentException("tableName cannot be null"); } Table table = dataContext.getTableByQualifiedLabel(tableName); if (table == null) { throw new IllegalArgumentException("No such table: " + tableName); } return from(table); }
/** * {@inheritDoc} */ @Override public final InitFromBuilder query() { return new InitFromBuilderImpl(this); }
@Override public TableFromBuilder from(Schema schema, String tableName) { Table table = schema.getTableByName(tableName); if (table == null) { throw new IllegalArgumentException("Nu such table '" + tableName + "' found in schema: " + schema + ". Available tables are: " + Arrays.toString(schema.getTableNames().toArray())); } return from(table); }
@Override public InitFromBuilder query() { // produce an InitFromBuilder that uses _this_ datacontext return new InitFromBuilderImpl(this); }
@Override public TableFromBuilder from(Schema schema, String tableName) { Table table = schema.getTableByName(tableName); if (table == null) { throw new IllegalArgumentException("Nu such table '" + tableName + "' found in schema: " + schema + ". Available tables are: " + Arrays.toString(schema.getTableNames().toArray())); } return from(table); }
/** * {@inheritDoc} */ @Override public final InitFromBuilder query() { return new InitFromBuilderImpl(this); }
@Override public TableFromBuilder from(String schemaName, String tableName) { if (schemaName == null) { throw new IllegalArgumentException("schemaName cannot be null"); } if (tableName == null) { throw new IllegalArgumentException("tableName cannot be null"); } Schema schema = dataContext.getSchemaByName(schemaName); if (schema == null) { schema = dataContext.getDefaultSchema(); } return from(schema, tableName); }
@Override public InitFromBuilder query() { return new InitFromBuilderImpl(this); }
@Override public TableFromBuilder from(String schemaName, String tableName) { if (schemaName == null) { throw new IllegalArgumentException("schemaName cannot be null"); } if (tableName == null) { throw new IllegalArgumentException("tableName cannot be null"); } Schema schema = dataContext.getSchemaByName(schemaName); if (schema == null) { schema = dataContext.getDefaultSchema(); } return from(schema, tableName); }
@Override public InitFromBuilder query() { return new InitFromBuilderImpl(this); }