站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.4 正式版 API 英文文档

Uses of Class org.hibernate.cfg.Configuration (Hibernate API Documentation) - Hibernate 3.2.4 正式版 API 英文文档


Uses of Class
org.hibernate.cfg.Configuration

Packages that use Configuration
org.hibernate.cfg This package defines APIs for configuring Hibernate, and classes for building the Hibernate configuration-time metamodel. 
org.hibernate.event This package defines an event framework for Hibernate. 
org.hibernate.impl This package contains implementations of the central Hibernate APIs, especially the Hibernate session. 
org.hibernate.persister A persister defines a mapping strategy for a collection or entity. 
org.hibernate.persister.collection This package abstracts the persistence mechanism for collections. 
org.hibernate.secure Declarative security for CRUD operations on entities. 
org.hibernate.tool.hbm2ddl The hbm2ddl tool. 
org.hibernate.util Utility classes. 
 

Uses of Configuration in org.hibernate.cfg
 

Methods in org.hibernate.cfg that return Configuration
 Configuration Configuration.addFile(String xmlFile)
          Read mappings from a particular XML file
 Configuration Configuration.addFile(File xmlFile)
          Read mappings from a particular XML file
 Configuration Configuration.addCacheableFile(File xmlFile)
          Add a cached mapping file.
 Configuration Configuration.addCacheableFile(String xmlFile)
          Add a cacheable mapping file.
 Configuration Configuration.addXML(String xml)
          Read mappings from a String
 Configuration Configuration.addURL(URL url)
          Read mappings from a URL
 Configuration Configuration.addDocument(org.w3c.dom.Document doc)
          Read mappings from a DOM Document
 Configuration Configuration.addInputStream(InputStream xmlInputStream)
          Read mappings from an InputStream.
 Configuration Configuration.addResource(String resourceName, ClassLoader classLoader)
          Read mappings as a application resource (i.e.
 Configuration Configuration.addResource(String resourceName)
          Read mappings as a application resourceName (i.e.
 Configuration Configuration.addClass(Class persistentClass)
          Read a mapping as an application resouurce using the convention that a class named foo.bar.Foo is mapped by a file foo/bar/Foo.hbm.xml which can be resolved as a classpath resource.
 Configuration Configuration.addJar(File jar)
          Read all mappings from a jar file

Assumes that any file named *.hbm.xml is a mapping document.

 Configuration Configuration.addDirectory(File dir)
          Read all mapping documents from a directory tree.
 Configuration Configuration.setInterceptor(Interceptor interceptor)
          Configure an Interceptor
 Configuration Configuration.setProperties(Properties properties)
          Specify a completely new set of properties
 Configuration Configuration.addProperties(Properties extraProperties)
          Set the given properties
 Configuration Configuration.mergeProperties(Properties properties)
          Adds the incoming properties to the internap properties structure, as long as the internal structure does not already contain an entry for the given key.
 Configuration Configuration.setProperty(String propertyName, String value)
          Set a property
 Configuration Configuration.configure()
          Use the mappings and properties specified in an application resource named hibernate.cfg.xml.
 Configuration Configuration.configure(String resource)
          Use the mappings and properties specified in the given application resource.
 Configuration Configuration.configure(URL url)
          Use the mappings and properties specified in the given document.
 Configuration Configuration.configure(File configFile)
          Use the mappings and properties specified in the given application file.
protected  Configuration Configuration.doConfigure(InputStream stream, String resourceName)
          Use the mappings and properties specified in the given application resource.
 Configuration Configuration.configure(org.w3c.dom.Document document)
          Use the mappings and properties specified in the given XML document.
protected  Configuration Configuration.doConfigure(org.dom4j.Document doc)
           
 Configuration Configuration.setCacheConcurrencyStrategy(String clazz, String concurrencyStrategy)
          Set up a cache for an entity class
 Configuration Configuration.setCollectionCacheConcurrencyStrategy(String collectionRole, String concurrencyStrategy)
          Set up a cache for a collection role
 Configuration Configuration.setNamingStrategy(NamingStrategy namingStrategy)
          Set a custom naming strategy
 

Uses of Configuration in org.hibernate.event
 

Methods in org.hibernate.event with parameters of type Configuration
 void Initializable.initialize(Configuration cfg)
           
 void EventListeners.initializeListeners(Configuration cfg)
          Call initialize() on any listeners that implement Initializable.
 

Uses of Configuration in org.hibernate.impl
 

Constructors in org.hibernate.impl with parameters of type Configuration
SessionFactoryImpl(Configuration cfg, Mapping mapping, Settings settings, EventListeners listeners)
           
 

Uses of Configuration in org.hibernate.persister
 

Methods in org.hibernate.persister with parameters of type Configuration
static CollectionPersister PersisterFactory.createCollectionPersister(Configuration cfg, Collection model, CacheConcurrencyStrategy cache, SessionFactoryImplementor factory)
           
 

Uses of Configuration in org.hibernate.persister.collection
 

Constructors in org.hibernate.persister.collection with parameters of type Configuration
OneToManyPersister(Collection collection, CacheConcurrencyStrategy cache, Configuration cfg, SessionFactoryImplementor factory)
           
BasicCollectionPersister(Collection collection, CacheConcurrencyStrategy cache, Configuration cfg, SessionFactoryImplementor factory)
           
AbstractCollectionPersister(Collection collection, CacheConcurrencyStrategy cache, Configuration cfg, SessionFactoryImplementor factory)
           
 

Uses of Configuration in org.hibernate.secure
 

Methods in org.hibernate.secure with parameters of type Configuration
 void JACCPreUpdateEventListener.initialize(Configuration cfg)
           
 void JACCPreLoadEventListener.initialize(Configuration cfg)
           
 void JACCPreInsertEventListener.initialize(Configuration cfg)
           
 void JACCPreDeleteEventListener.initialize(Configuration cfg)
           
 

Uses of Configuration in org.hibernate.tool.hbm2ddl
 

Constructors in org.hibernate.tool.hbm2ddl with parameters of type Configuration
SchemaValidator(Configuration cfg)
           
SchemaValidator(Configuration cfg, Properties connectionProperties)
           
SchemaValidator(Configuration cfg, Settings settings)
           
SchemaUpdate(Configuration cfg)
           
SchemaUpdate(Configuration cfg, Properties connectionProperties)
           
SchemaUpdate(Configuration cfg, Settings settings)
           
SchemaExport(Configuration cfg)
          Create a schema exporter for the given Configuration
SchemaExport(Configuration cfg, Settings settings)
          Create a schema exporter for the given Configuration and given settings
SchemaExport(Configuration cfg, Properties properties)
          Deprecated. properties may be specified via the Configuration object
SchemaExport(Configuration cfg, Connection connection)
           
 

Uses of Configuration in org.hibernate.util
 

Methods in org.hibernate.util that return Configuration
protected  Configuration ExternalSessionFactoryConfig.buildConfiguration()