Package cronapp.reports.j4c.dataset.jdbc
Class Schema
- java.lang.Object
-
- cronapp.reports.j4c.dataset.jdbc.Schema
-
public class Schema extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Schemacreate(Connection conn, String table)static Schemacreate(DatabaseMetaData meta, String catalog, String table)static SchemacreateSchema(DataSource dataSource, String table)booleanequals(Object o)Map<String,ForeignKey>getForeignKeys()Map<String,Index>getIndexes()Map<String,PrimaryKey>getPrimaryKeys()Map<String,Relation>getRelations()inthashCode()StringtoString()
-
-
-
Method Detail
-
getPrimaryKeys
public Map<String,PrimaryKey> getPrimaryKeys()
-
getForeignKeys
public Map<String,ForeignKey> getForeignKeys()
-
create
public static Schema create(Connection conn, String table) throws SQLException
- Throws:
SQLException
-
create
public static Schema create(DatabaseMetaData meta, String catalog, String table) throws SQLException
- Throws:
SQLException
-
createSchema
public static Schema createSchema(DataSource dataSource, String table) throws SQLException
- Throws:
SQLException
-
-