|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.cfg.Configuration org.hibernate.cfg.AnnotationConfiguration
public class AnnotationConfiguration
Add JSR 175 configuration capability. For now, only programmatic configuration is available.
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, sqlResultSetMappings, tableNameBinding, tables, typeDefs |
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). |
AnnotationConfiguration |
addPackage(String packageName)
Read package level metadata |
ExtendedMappings |
createExtendedMappings()
|
protected List<XClass> |
orderAndFillHierarchy(List<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, addInputStream, addJar, addProperties, addResource, addResource, addURL, addXML, buildMapping, buildMappings, buildSessionFactory, buildSettings, buildSettings, configure, configure, configure, configure, configure, createMappings, doConfigure, doConfigure, findPossibleExtends, generateDropSchemaScript, generateSchemaCreationScript, generateSchemaUpdateScript, getClassMapping, getClassMappings, getCollectionMapping, getCollectionMappings, getConfigurationInputStream, getEntityResolver, getEventListeners, getFilterDefinitions, getImports, getInterceptor, getNamedQueries, getNamedSQLQueries, getNamingStrategy, getProperties, getProperty, getSqlResultSetMappings, getTableMappings, mergeProperties, secondPassCompileForeignKeys, setCacheConcurrencyStrategy, setCacheConcurrencyStrategy, setCollectionCacheConcurrencyStrategy, 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<XClass> orderAndFillHierarchy(List<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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |