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 theTablewith the provided name (case-insensitive).Table[]Returns all theTables in the current Schema.Gets theViewwith the provided name (case-insensitive).View[]getViews()Gets all theViews of the current schema.booleanReturns 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:
getNamein interfaceNamedSchema- Returns:
- The name.
-
getQuotedName
Description copied from interface:NamedSchemaGet the schema name of this database object quoted for use in a SQL statement- Specified by:
getQuotedNamein 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 theTablewith the provided name (case-insensitive).- Parameters:
name- Table name.- Returns:
- The requested table.
-
getTables
Returns all theTables in the current Schema.- Returns:
- An array of Tables.
-
getView
Gets theViewwith the provided name (case-insensitive).- Parameters:
name- The View's name.- Returns:
- The specified View.
-
getViews
Gets all theViews of the current schema.- Returns:
- An array of Views.
-
toString
-