|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dbunit.util.QualifiedTableName
public class QualifiedTableName
Utility to parse a fully qualified table name into its components schema and table.
| Constructor Summary | |
|---|---|
QualifiedTableName(java.lang.String tableName,
java.lang.String defaultSchema)
Creates an object parsing the given tableName. |
|
QualifiedTableName(java.lang.String tableName,
java.lang.String defaultSchema,
java.lang.String escapePattern)
Creates an object parsing the given tableName. |
|
| Method Summary | |
|---|---|
java.lang.String |
getQualifiedName()
|
java.lang.String |
getQualifiedNameIfEnabled(DatabaseConfig config)
Returns the qualified name using the values given in the constructor. |
java.lang.String |
getSchema()
|
java.lang.String |
getTable()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public QualifiedTableName(java.lang.String tableName,
java.lang.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 null
public QualifiedTableName(java.lang.String tableName,
java.lang.String defaultSchema,
java.lang.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.| Method Detail |
|---|
public java.lang.String getSchema()
public java.lang.String getTable()
public java.lang.String getQualifiedName()
public java.lang.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.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||