Class Table
java.lang.Object
com.invirgance.convirgance.jdbc.schema.TabularStructure
com.invirgance.convirgance.jdbc.schema.Table
- All Implemented Interfaces:
NamedSchema
,Iterable<com.invirgance.convirgance.json.JSONObject>
public class Table
extends TabularStructure
implements Iterable<com.invirgance.convirgance.json.JSONObject>
For working with table metadata. Used when creating logic that involves
table metadata, such as comparing table equality, retrieving
primary keys/foreign keys.
To get a table object use
DatabaseSchemaLayout.getAllTables()
- Author:
- jbanes
-
Nested Class Summary
Nested Classes -
Method Summary
Methods inherited from class com.invirgance.convirgance.jdbc.schema.TabularStructure
equals, getColumn, getColumns, getName, getQuotedName, getSchema, getType, hashCode, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
getPrimaryKey
Returns the PrimaryKey of this table.- Returns:
- PrimaryKey
-
getForeignKeys
Returns all the ForeignKeys of this table.- Returns:
- an array of ForeignKeys.
-
select
Returns a SelectStatement based on this table.- Returns:
- A SelectStatement.
-
iterator
-