org.hibernate.cfg
Class JDBCBinder

java.lang.Object
  extended by org.hibernate.cfg.JDBCBinder

public class JDBCBinder
extends Object

Author:
max

Constructor Summary
JDBCBinder(JDBCMetaDataConfiguration cfg, org.hibernate.cfg.Settings settings, org.hibernate.cfg.Mappings mappings, ReverseEngineeringStrategy revengStrategy)
           
 
Method Summary
static void bindCollectionSecondPass(org.hibernate.mapping.Collection collection, Map persistentClasses, org.hibernate.cfg.Mappings mappings, Map inheritedMetas)
           
 DatabaseCollector readDatabaseSchema(String catalog, String schema)
          Read JDBC Metadata from the database.
 void readFromDatabase(String catalog, String schema, org.hibernate.engine.Mapping mapping)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCBinder

public JDBCBinder(JDBCMetaDataConfiguration cfg,
                  org.hibernate.cfg.Settings settings,
                  org.hibernate.cfg.Mappings mappings,
                  ReverseEngineeringStrategy revengStrategy)
Parameters:
mappings -
configuration -
Method Detail

readFromDatabase

public void readFromDatabase(String catalog,
                             String schema,
                             org.hibernate.engine.Mapping mapping)

readDatabaseSchema

public DatabaseCollector readDatabaseSchema(String catalog,
                                            String schema)
                                     throws SQLException
Read JDBC Metadata from the database. Does not create any classes or other ORM releated structures.

Parameters:
catalog -
schema -
Returns:
Throws:
SQLException

bindCollectionSecondPass

public static void bindCollectionSecondPass(org.hibernate.mapping.Collection collection,
                                            Map persistentClasses,
                                            org.hibernate.cfg.Mappings mappings,
                                            Map inheritedMetas)
                                     throws org.hibernate.MappingException
Throws:
org.hibernate.MappingException