Package com.manticore.h2
Class Table
- java.lang.Object
-
- com.manticore.h2.Table
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.logging.LoggerLOGGER
-
Constructor Summary
Constructors Constructor Description Table(java.lang.String tableCatalog, java.lang.String tableSchema, java.lang.String tableName, java.lang.String tableType, java.lang.String remarks, java.lang.String typeCatalog, java.lang.String typeSchema, java.lang.String typeName, java.lang.String selfReferenceColName, java.lang.String referenceGeneration)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(Column column)intcompareTo(Table o)booleancontains(Column column)booleancontainsIndexKey(java.lang.String indexName)booleanequals(java.lang.Object o)Indexget(java.lang.String indexName)voidgetColumns(java.sql.DatabaseMetaData metaData)voidgetIndices(java.sql.DatabaseMetaData metaData, boolean approximate)voidgetPrimaryKey(java.sql.DatabaseMetaData metaData)static java.util.Collection<Table>getTables(java.sql.DatabaseMetaData metaData)inthashCode()Indexput(Index index)
-
-
-
Constructor Detail
-
Table
public Table(java.lang.String tableCatalog, java.lang.String tableSchema, java.lang.String tableName, java.lang.String tableType, java.lang.String remarks, java.lang.String typeCatalog, java.lang.String typeSchema, java.lang.String typeName, java.lang.String selfReferenceColName, java.lang.String referenceGeneration)
-
-
Method Detail
-
getTables
public static java.util.Collection<Table> getTables(java.sql.DatabaseMetaData metaData) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getColumns
public void getColumns(java.sql.DatabaseMetaData metaData) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getIndices
public void getIndices(java.sql.DatabaseMetaData metaData, boolean approximate) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getPrimaryKey
public void getPrimaryKey(java.sql.DatabaseMetaData metaData) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
compareTo
public int compareTo(Table o)
- Specified by:
compareToin interfacejava.lang.Comparable<Table>
-
add
public boolean add(Column column)
-
contains
public boolean contains(Column column)
-
containsIndexKey
public boolean containsIndexKey(java.lang.String indexName)
-
get
public Index get(java.lang.String indexName)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-