|
||||||||||
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(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. |
Method Summary | |
---|---|
String |
getQualifiedName()
|
String |
getQualifiedNameIfEnabled(DatabaseConfig config)
Returns the qualified name using the values given in the constructor. |
String |
getSchema()
|
String |
getTable()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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
.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |