/** * Return the schema name that should be used for new tables, or null if * none. */ public static String getNewTableSchema(JDBCConfiguration conf) { if (conf.getSchema() != null) return conf.getSchema(); String[] schemas = conf.getSchemasList(); if (schemas.length == 0) return null; int dotIdx = schemas[0].lastIndexOf('.'); if (dotIdx == 0) return null; if (dotIdx == -1) return schemas[0]; return schemas[0].substring(0, dotIdx); }
/** * Returns the schema name that will be used for obtaining information * from {@link DatabaseMetaData}. */ protected String getSchemaNameForMetadata(String schemaName) { if (schemaName == null) schemaName = conf.getSchema(); return convertSchemaCase(schemaName); }
public static DBIdentifier getNewTableSchemaIdentifier(JDBCConfiguration conf) { if (conf.getSchema() != null) return DBIdentifier.newSchema(conf.getSchema()); String[] schemas = conf.getSchemasList(); if (schemas.length == 0) return DBIdentifier.NULL; String[] names = Normalizer.splitName(schemas[0]); if (names.length == 0 || StringUtils.isEmpty(names[0])) { return DBIdentifier.NULL; } return DBIdentifier.newSchema(names[0]); }
public void setConfiguration(Configuration conf) { JDBCConfiguration jconf = (JDBCConfiguration) conf; _dict = jconf.getDBDictionaryInstance(); _schema = jconf.getSchema(); }
public static DBIdentifier getNewTableSchemaIdentifier(JDBCConfiguration conf) { if (conf.getSchema() != null) return DBIdentifier.newSchema(conf.getSchema()); String[] schemas = conf.getSchemasList(); if (schemas.length == 0) return DBIdentifier.NULL; String[] names = Normalizer.splitName(schemas[0]); if (names.length == 0 || StringUtils.isEmpty(names[0])) { return DBIdentifier.NULL; } return DBIdentifier.newSchema(names[0]); }
public void setConfiguration(Configuration conf) { JDBCConfiguration jconf = (JDBCConfiguration) conf; _dict = jconf.getDBDictionaryInstance(); _schema = DBIdentifier.newSchema(jconf.getSchema()); }
public static DBIdentifier getNewTableSchemaIdentifier(JDBCConfiguration conf) { if (conf.getSchema() != null) return DBIdentifier.newSchema(conf.getSchema()); String[] schemas = conf.getSchemasList(); if (schemas.length == 0) return DBIdentifier.NULL; String[] names = Normalizer.splitName(schemas[0]); if (names.length == 0 || StringUtil.isEmpty(names[0])) { return DBIdentifier.NULL; } return DBIdentifier.newSchema(names[0]); }
public void setConfiguration(Configuration conf) { JDBCConfiguration jconf = (JDBCConfiguration) conf; _dict = jconf.getDBDictionaryInstance(); _schema = DBIdentifier.newSchema(jconf.getSchema()); }
public static DBIdentifier getNewTableSchemaIdentifier(JDBCConfiguration conf) { if (conf.getSchema() != null) return DBIdentifier.newSchema(conf.getSchema()); String[] schemas = conf.getSchemasList(); if (schemas.length == 0) return DBIdentifier.NULL; String[] names = Normalizer.splitName(schemas[0]); if (names.length == 0 || StringUtil.isEmpty(names[0])) { return DBIdentifier.NULL; } return DBIdentifier.newSchema(names[0]); }
/** * Returns the schema name that will be used for obtaining information * from {@link DatabaseMetaData}. */ protected String getSchemaNameForMetadata(String schemaName) { if (schemaName == null) schemaName = conf.getSchema(); return convertSchemaCase(DBIdentifier.newSchema(schemaName)); }
public void setConfiguration(Configuration conf) { JDBCConfiguration jconf = (JDBCConfiguration) conf; _dict = jconf.getDBDictionaryInstance(); _schema = DBIdentifier.newSchema(jconf.getSchema()); }
public void setConfiguration(Configuration conf) { JDBCConfiguration jconf = (JDBCConfiguration) conf; _dict = jconf.getDBDictionaryInstance(); _schema = DBIdentifier.newSchema(jconf.getSchema()); }
/** * Returns the schema name that will be used for obtaining information * from {@link DatabaseMetaData}. */ protected String getSchemaNameForMetadata(String schemaName) { if (schemaName == null) schemaName = conf.getSchema(); return convertSchemaCase(DBIdentifier.newSchema(schemaName)); }
/** * Returns the schema name that will be used for obtaining information * from {@link DatabaseMetaData}. */ protected String getSchemaNameForMetadata(String schemaName) { if (schemaName == null) schemaName = conf.getSchema(); return convertSchemaCase(DBIdentifier.newSchema(schemaName)); }
/** * Returns the schema name that will be used for obtaining information * from {@link DatabaseMetaData}. */ protected String getSchemaNameForMetadata(String schemaName) { if (schemaName == null) schemaName = conf.getSchema(); return convertSchemaCase(DBIdentifier.newSchema(schemaName)); }
/** * Returns the schema name that will be used for obtaining information * from {@link DatabaseMetaData}. */ protected String getSchemaNameForMetadata(DBIdentifier schemaName) { if (DBIdentifier.isNull(schemaName)) schemaName = DBIdentifier.newSchema(conf.getSchema()); return convertSchemaCase(schemaName); }
/** * Returns the schema name that will be used for obtaining information * from {@link DatabaseMetaData}. */ protected String getSchemaNameForMetadata(DBIdentifier schemaName) { if (DBIdentifier.isNull(schemaName)) schemaName = DBIdentifier.newSchema(conf.getSchema()); return convertSchemaCase(schemaName); }
/** * Returns the schema name that will be used for obtaining information * from {@link DatabaseMetaData}. */ protected String getSchemaNameForMetadata(DBIdentifier schemaName) { if (DBIdentifier.isNull(schemaName)) schemaName = DBIdentifier.newSchema(conf.getSchema()); return convertSchemaCase(schemaName); }
/** * Returns the schema name that will be used for obtaining information * from {@link DatabaseMetaData}. */ protected String getSchemaNameForMetadata(DBIdentifier schemaName) { if (DBIdentifier.isNull(schemaName)) schemaName = DBIdentifier.newSchema(conf.getSchema()); return convertSchemaCase(schemaName); }