org.hibernate.cfg.reveng
Class JDBCReader
java.lang.Object
org.hibernate.cfg.reveng.JDBCReader
public class JDBCReader
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDBCReader
public JDBCReader(MetaDataDialect dialect,
org.hibernate.connection.ConnectionProvider provider,
org.hibernate.exception.SQLExceptionConverter sec,
String defaultCatalog,
String defaultSchema,
ReverseEngineeringStrategy reveng)
readDatabaseSchema
public List readDatabaseSchema(DatabaseCollector dbs,
String catalog,
String schema,
ProgressListener progress)
processForeignKeys
protected org.hibernate.cfg.reveng.JDBCReader.ForeignKeysInfo processForeignKeys(DatabaseCollector dbs,
org.hibernate.mapping.Table referencedTable,
ProgressListener progress)
throws JDBCBinderException
- Throws:
JDBCBinderException
readDatabaseSchema
public List readDatabaseSchema(DatabaseCollector dbs,
String catalog,
String schema)
getCatalogForModel
protected String getCatalogForModel(String catalog)
- If catalog is equal to defaultCatalog then we return null so it will be null in the generated code.
getSchemaForModel
protected String getSchemaForModel(String schema)
- If catalog is equal to defaultSchema then we return null so it will be null in the generated code.
getCatalogForDBLookup
protected String getCatalogForDBLookup(String catalog)
getSchemaForDBLookup
protected String getSchemaForDBLookup(String schema)
readSequences
public Set readSequences(String sql)