public class QualifiedTableName extends Object
| Constructor and Description |
|---|
QualifiedTableName(String tableName,
String defaultSchema)
Creates an object parsing the given tableName.
|
QualifiedTableName(String tableName,
String defaultSchema,
String escapePattern)
Creates an object parsing the given tableName.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getQualifiedName() |
String |
getQualifiedNameIfEnabled(DatabaseConfig config)
Returns the qualified name using the values given in the constructor.
|
String |
getSchema() |
String |
getTable() |
String |
toString() |
public QualifiedTableName(String tableName, String defaultSchema)
tableName - The table name, either qualified or unqualified. If it is qualified (like "MYSCHEMA.MYTABLE")
this schema name has precedence before the given defaultSchema parameter.defaultSchema - The schema that is used when the given tableName is not fully qualified
(i.e. it is not like "MYSCHEMA.MYTABLE"). Can be nullpublic QualifiedTableName(String tableName, String defaultSchema, String escapePattern)
tableName - The table name, either qualified or unqualified. If it is qualified (like "MYSCHEMA.MYTABLE")
this schema name has precedence before the given defaultSchema parameter.defaultSchema - The schema that is used when the given tableName is not fully qualified
(i.e. it is not like "MYSCHEMA.MYTABLE"). Can be nullescapePattern - The escape pattern to be applied on the prefix and the name. Can be null.public String getSchema()
public String getTable()
public String getQualifiedName()
public String getQualifiedNameIfEnabled(DatabaseConfig config)
DatabaseConfig.FEATURE_QUALIFIED_TABLE_NAMES is set. Otherwise the given
name is returned unqualified (i.e. without prepending the prefix/schema).DatabaseConfig.FEATURE_QUALIFIED_TABLE_NAMES is set in the given config.Copyright © 2002-2017. All Rights Reserved.