public class Schema extends Object
| Constructor and Description |
|---|
Schema(Map<String,Relation> relations,
Map<String,PrimaryKey> primaryKeys,
com.google.common.collect.Multimap<String,ForeignKey> foreignKeys,
com.google.common.collect.Multimap<String,Index> indexes) |
| Modifier and Type | Method and Description |
|---|---|
static Schema |
create(Connection conn) |
static Schema |
create(DatabaseMetaData meta,
String catalog) |
com.google.common.collect.Multimap<String,ForeignKey> |
getForeignKeys() |
com.google.common.collect.Multimap<String,Index> |
getIndexes() |
Map<String,PrimaryKey> |
getPrimaryKeys() |
Map<String,Relation> |
getRelations() |
public Schema(Map<String,Relation> relations, Map<String,PrimaryKey> primaryKeys, com.google.common.collect.Multimap<String,ForeignKey> foreignKeys, com.google.common.collect.Multimap<String,Index> indexes)
public Map<String,Relation> getRelations()
public Map<String,PrimaryKey> getPrimaryKeys()
public com.google.common.collect.Multimap<String,ForeignKey> getForeignKeys()
public static Schema create(Connection conn) throws SQLException
SQLExceptionpublic static Schema create(DatabaseMetaData meta, String catalog) throws SQLException
SQLExceptionCopyright © 2013. All Rights Reserved.