Class TableName
java.lang.Object
io.ebean.config.TableName
TableName holds catalog, schema and table name.
- Author:
- emcgreal
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the catalog.getName()Gets the name.Returns the qualified name in the form catalog.schema.name.Gets the schema.booleanisValid()Checks if is table name is valid i.e. it has at least a name.static StringParse a qualifiedTableName that might include a catalog and schema and just return the table name.toString()withCatalogAndSchema(String name) Append a catalog and schema prefix if they exist to the string builder.
-
Constructor Details
-
TableName
-
TableName
Construct splitting the qualifiedTableName potentially into catalog, schema and name.The qualifiedTableName can take the form of catalog.schema.tableName and is split on the '.' period character. The catalog and schema are optional.
- Parameters:
qualifiedTableName- the fully qualified table name using '.' between schema and table name etc (with catalog and schema optional).
-
-
Method Details
-
parse
-
toString
-
getCatalog
-
getSchema
-
getName
-
getQualifiedName
Returns the qualified name in the form catalog.schema.name.Catalog and schema are optional.
- Returns:
- the qualified name
-
withCatalogAndSchema
-
isValid
public boolean isValid()Checks if is table name is valid i.e. it has at least a name.
-