Class Schema
java.lang.Object
com.invirgance.convirgance.jdbc.schema.Schema
- All Implemented Interfaces:
NamedSchema
Used when creating logic based on database schema properties.
Example: Getting a specific table from a imaginary "unlicensed_users" schema.
Or comparing the tables between two different schemas.
- Author:
- jbanes
-
Method Summary
Modifier and TypeMethodDescriptionReturns the tableCatalog
.getName()
Returns the value Schema's name.Get the schema name of this database object quoted for use in a SQL statementGets theTable
with the provided name (case-insensitive).Table[]
Returns all theTable
s in the current Schema.Gets theView
with the provided name (case-insensitive).View[]
getViews()
Gets all theView
s of the current schema.boolean
Returns if this is the default schema.toString()
-
Method Details
-
getCatalog
Returns the tableCatalog
.- Returns:
- The Catalog.
-
getName
Returns the value Schema's name.- Specified by:
getName
in interfaceNamedSchema
- Returns:
- The name.
-
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
-
isDefault
public boolean isDefault()Returns if this is the default schema.- Returns:
- True if default, otherwise false.
-
getTable
Gets theTable
with the provided name (case-insensitive).- Parameters:
name
- Table name.- Returns:
- The requested table.
-
getTables
Returns all theTable
s in the current Schema.- Returns:
- An array of Tables.
-
getView
Gets theView
with the provided name (case-insensitive).- Parameters:
name
- The View's name.- Returns:
- The specified View.
-
getViews
Gets all theView
s of the current schema.- Returns:
- An array of Views.
-
toString
-