|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.cfg.Configuration
org.hibernate.cfg.AnnotationConfiguration
public class AnnotationConfiguration
Similar to the Configuration
object but handles EJB3 and Hibernate
specific annotations as a metadata facility
Field Summary | |
---|---|
static String |
ARTEFACT
|
static String |
DEFAULT_PRECEDENCE
|
Fields inherited from class org.hibernate.cfg.Configuration |
---|
auxiliaryDatabaseObjects, classes, collections, columnNameBindingPerTable, extendsQueue, filterDefinitions, imports, namedQueries, namedSqlQueries, namingStrategy, propertyReferences, secondPasses, settingsFactory, sqlFunctions, sqlResultSetMappings, tableNameBinding, tables, typeDefs, xmlHelper |
Constructor Summary | |
---|---|
AnnotationConfiguration()
|
|
AnnotationConfiguration(org.hibernate.cfg.SettingsFactory sf)
|
Method Summary | |
---|---|
protected void |
add(org.dom4j.Document doc)
|
AnnotationConfiguration |
addAnnotatedClass(Class persistentClass)
Read a mapping from the class annotation metadata (JSR 175). |
org.hibernate.cfg.Configuration |
addInputStream(InputStream xmlInputStream)
|
AnnotationConfiguration |
addPackage(String packageName)
Read package level metadata |
org.hibernate.SessionFactory |
buildSessionFactory()
|
ExtendedMappings |
createExtendedMappings()
|
org.hibernate.annotations.common.reflection.ReflectionManager |
getReflectionManager()
|
protected List<org.hibernate.annotations.common.reflection.XClass> |
orderAndFillHierarchy(List<org.hibernate.annotations.common.reflection.XClass> original)
|
protected void |
parseMappingElement(org.dom4j.Element subelement,
String name)
|
protected void |
reset()
|
protected void |
secondPassCompile()
|
void |
setCacheConcurrencyStrategy(String clazz,
String concurrencyStrategy,
String region,
boolean cacheLazyProperty)
|
void |
setCollectionCacheConcurrencyStrategy(String collectionRole,
String concurrencyStrategy,
String region)
|
void |
setPrecedence(String precedence)
|
Methods inherited from class org.hibernate.cfg.Configuration |
---|
addAuxiliaryDatabaseObject, addCacheableFile, addCacheableFile, addClass, addDirectory, addDocument, addFile, addFile, addFilterDefinition, addJar, addProperties, addResource, addResource, addSqlFunction, addURL, addXML, buildMapping, buildMappings, buildSettings, buildSettings, configure, configure, configure, configure, configure, createMappings, doConfigure, doConfigure, findPossibleExtends, generateDropSchemaScript, generateSchemaCreationScript, generateSchemaUpdateScript, getClassMapping, getClassMappings, getCollectionMapping, getCollectionMappings, getConfigurationInputStream, getEntityNotFoundDelegate, getEntityResolver, getEventListeners, getFilterDefinitions, getImports, getInterceptor, getNamedQueries, getNamedSQLQueries, getNamingStrategy, getProperties, getProperty, getSqlFunctions, getSqlResultSetMappings, getTableMappings, mergeProperties, secondPassCompileForeignKeys, setCacheConcurrencyStrategy, setCacheConcurrencyStrategy, setCollectionCacheConcurrencyStrategy, setEntityNotFoundDelegate, setEntityResolver, setInterceptor, setListener, setListeners, setListeners, setNamingStrategy, setProperties, setProperty, validateSchema |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ARTEFACT
public static final String DEFAULT_PRECEDENCE
Constructor Detail |
---|
public AnnotationConfiguration()
public AnnotationConfiguration(org.hibernate.cfg.SettingsFactory sf)
Method Detail |
---|
protected List<org.hibernate.annotations.common.reflection.XClass> orderAndFillHierarchy(List<org.hibernate.annotations.common.reflection.XClass> original)
public AnnotationConfiguration addAnnotatedClass(Class persistentClass) throws org.hibernate.MappingException
persistentClass
- the mapped class
org.hibernate.MappingException
public AnnotationConfiguration addPackage(String packageName) throws org.hibernate.MappingException
packageName
- java package name
org.hibernate.MappingException
public ExtendedMappings createExtendedMappings()
public void setCacheConcurrencyStrategy(String clazz, String concurrencyStrategy, String region, boolean cacheLazyProperty) throws org.hibernate.MappingException
setCacheConcurrencyStrategy
in class org.hibernate.cfg.Configuration
org.hibernate.MappingException
public void setCollectionCacheConcurrencyStrategy(String collectionRole, String concurrencyStrategy, String region) throws org.hibernate.MappingException
setCollectionCacheConcurrencyStrategy
in class org.hibernate.cfg.Configuration
org.hibernate.MappingException
protected void reset()
reset
in class org.hibernate.cfg.Configuration
protected void secondPassCompile() throws org.hibernate.MappingException
secondPassCompile
in class org.hibernate.cfg.Configuration
org.hibernate.MappingException
protected void parseMappingElement(org.dom4j.Element subelement, String name)
parseMappingElement
in class org.hibernate.cfg.Configuration
protected void add(org.dom4j.Document doc) throws org.hibernate.MappingException
add
in class org.hibernate.cfg.Configuration
org.hibernate.MappingException
public void setPrecedence(String precedence)
public org.hibernate.cfg.Configuration addInputStream(InputStream xmlInputStream) throws org.hibernate.MappingException
addInputStream
in class org.hibernate.cfg.Configuration
org.hibernate.MappingException
public org.hibernate.SessionFactory buildSessionFactory() throws org.hibernate.HibernateException
buildSessionFactory
in class org.hibernate.cfg.Configuration
org.hibernate.HibernateException
public org.hibernate.annotations.common.reflection.ReflectionManager getReflectionManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |