Class TabularStructure
java.lang.Object
com.invirgance.convirgance.jdbc.schema.TabularStructure
- All Implemented Interfaces:
NamedSchema
A way to represent different database schema objects like Tables and Views.
- Author:
- jbanes
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the column with the provided name.Column[]
Returns all columns of this object.getName()
Get the schema name of this database objectGet the schema name of this database object quoted for use in a SQL statementReturns the schema this object is apart of.getType()
Returns the TABLE_TYPE this object is recognized as.int
hashCode()
Returns the hash code.toString()
-
Method Details
-
getName
Description copied from interface:NamedSchema
Get the schema name of this database object- Specified by:
getName
in interfaceNamedSchema
- Returns:
- name of the object with exact database capitalization
-
getQuotedName
Description copied from interface:NamedSchema
Get the schema name of this database object quoted for use in a SQL statement- Specified by:
getQuotedName
in interfaceNamedSchema
- Returns:
- name of the object quoted for use in a SQL statement
-
getSchema
Returns the schema this object is apart of.- Returns:
- The Schema
-
getType
Returns the TABLE_TYPE this object is recognized as.- Returns:
- A String of the objects table type.
-
getColumn
Returns the column with the provided name. For example getting the column for first_names.- Parameters:
name
- The name of a column.- Returns:
- The column.
-
getColumns
Returns all columns of this object.- Returns:
- Array of Columns.
-
hashCode
public int hashCode()Returns the hash code. Hash-code is retrieved from the record used to create this object. -
equals
-
toString
-