org.hibernate.cfg.reveng
Class JDBCReader

java.lang.Object
  extended by org.hibernate.cfg.reveng.JDBCReader

public class JDBCReader
extends Object


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

Constructor Detail

JDBCReader

public JDBCReader(MetaDataDialect dialect,
                  org.hibernate.connection.ConnectionProvider provider,
                  org.hibernate.exception.SQLExceptionConverter sec,
                  String defaultCatalog,
                  String defaultSchema,
                  ReverseEngineeringStrategy reveng)
Method Detail

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)