Constructor and Description |
---|
TableName(String qualifiedTableName)
Construct splitting the qualifiedTableName potentially into catalog, schema
and name.
|
TableName(String catalog,
String schema,
String name)
Construct with the given catalog schema and table name.
|
Modifier and Type | Method and Description |
---|---|
void |
appendCatalogAndSchema(StringBuilder buffer)
Append a catalog and schema prefix if they exist to the string builder.
|
String |
getCatalog()
Gets the catalog.
|
String |
getName()
Gets the name.
|
String |
getQualifiedName()
Returns the qualified name in the form catalog.schema.name.
|
String |
getSchema()
Gets the schema.
|
boolean |
isValid()
Checks if is table name is valid i.e.
|
static String |
parse(String qualifiedTableName)
Parse a qualifiedTableName that might include a catalog and schema and just return the table name.
|
String |
toString() |
public TableName(String catalog, String schema, String name)
Note the catalog and schema can be null.
public TableName(String qualifiedTableName)
The qualifiedTableName can take the form of catalog.schema.tableName and is split on the '.' period character. The catalog and schema are optional.
qualifiedTableName
- the fully qualified table name using '.' between schema and table
name etc (with catalog and schema optional).public static String parse(String qualifiedTableName)
public String getCatalog()
public String getQualifiedName()
Catalog and schema are optional.
public void appendCatalogAndSchema(StringBuilder buffer)
public boolean isValid()
Copyright © 2019. All rights reserved.