Package com.mckoi.database
Class TableName
java.lang.Object
com.mckoi.database.TableName
- All Implemented Interfaces:
Serializable,Comparable
A name of a table and any associated referencing information. This object
is immutable.
- Author:
- Tobias Downer
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintComparable.booleanEquality.booleanEquality but ignore the case.getName()Returns the table name.Returns the schema name or null if the schema name is unknown.inthashCode()Hash code.static TableNameResolves a [schema name].[table name] type syntax to a TableName object.static TableNameResolves a [schema name].[table name] type syntax to a TableName object.resolveSchema(String scheman) Resolves a schema reference in a table name.toString()To string.
-
Constructor Details
-
TableName
Constructs the name. -
TableName
-
-
Method Details
-
getSchema
Returns the schema name or null if the schema name is unknown. -
getName
Returns the table name. -
resolveSchema
Resolves a schema reference in a table name. If the schema in this table is 'null' (which means the schema is unknown) then it is set to the given schema argument. -
resolve
Resolves a [schema name].[table name] type syntax to a TableName object. Uses 'schemav' only if there is no schema name explicitely specified. -
resolve
Resolves a [schema name].[table name] type syntax to a TableName object. -
toString
To string. -
equals
Equality. -
equalsIgnoreCase
Equality but ignore the case. -
compareTo
Comparable.- Specified by:
compareToin interfaceComparable
-
hashCode
public int hashCode()Hash code.
-