protected class Configuration.MappingsImpl extends Object implements ExtendedMappings, Serializable
Configuration.classes, Configuration.tables, etc).Mappings.PropertyReference| Modifier | Constructor and Description |
|---|---|
protected |
Configuration.MappingsImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAnyMetaDef(AnyMetaDef defAnn) |
void |
addAuxiliaryDatabaseObject(AuxiliaryDatabaseObject auxiliaryDatabaseObject)
Add metadata pertaining to an auxiliary database object to this repository.
|
void |
addClass(PersistentClass persistentClass)
Add entity mapping metadata.
|
AnnotatedClassType |
addClassType(org.hibernate.annotations.common.reflection.XClass clazz)
FIXME should be private but will this break things?
Add a class type.
|
void |
addCollection(Collection collection)
Add collection mapping metadata to this repository.
|
void |
addColumnBinding(String logicalName,
Column physicalColumn,
Table table)
Binds the given 'physicalColumn' to the give 'logicalName' within the given 'table'.
|
void |
addDefaultGenerator(IdGenerator generator)
Adds a default id generator.
|
void |
addDefaultNamedProcedureCallDefinition(NamedProcedureCallDefinition definition)
Adds metadata for a named stored procedure call to this repository.
|
void |
addDefaultQuery(String name,
NamedQueryDefinition query) |
void |
addDefaultResultSetMapping(ResultSetMappingDefinition definition) |
void |
addDefaultSQLQuery(String name,
NamedSQLQueryDefinition query) |
Table |
addDenormalizedTable(String schema,
String catalog,
String name,
boolean isAbstract,
String subselect,
Table includedTable)
Adds a 'denormalized table' to this repository.
|
void |
addFilterDefinition(FilterDefinition definition)
Adds a filter definition to this repository.
|
void |
addGenerator(IdGenerator generator)
Add a generator.
|
void |
addGeneratorTable(String name,
Properties params)
Add a generator table properties.
|
void |
addImport(String entityName,
String rename)
Adds an import (HQL entity rename) to the repository.
|
void |
addJoins(PersistentClass persistentClass,
Map<String,Join> joins)
Add join metadata for a persistent entity.
|
void |
addJpaIndexHolders(Table table,
List<JPAIndexHolder> holders) |
void |
addMappedBy(String entityName,
String propertyName,
String inversePropertyName) |
void |
addMappedSuperclass(Class type,
MappedSuperclass mappedSuperclass)
add a new MappedSuperclass
This should not be called if the MappedSuperclass already exists
(it would be erased)
|
void |
addNamedEntityGraphDefintion(NamedEntityGraphDefinition definition)
Adds metadata for a named entity graph to this repository
|
void |
addNamedProcedureCallDefinition(NamedProcedureCallDefinition definition)
Adds metadata for a named stored procedure call to this repository.
|
void |
addPropertyAnnotatedWithMapsId(org.hibernate.annotations.common.reflection.XClass entityType,
PropertyData property) |
void |
addPropertyAnnotatedWithMapsIdSpecj(org.hibernate.annotations.common.reflection.XClass entityType,
PropertyData property,
String mapsIdValue) |
void |
addPropertyReference(String referencedClass,
String propertyName)
Adds a property reference binding to this repository.
|
void |
addPropertyReferencedAssociation(String entityName,
String propertyName,
String propertyRef) |
void |
addQuery(String name,
NamedQueryDefinition query)
Adds metadata for a named query to this repository.
|
void |
addResultSetMapping(ResultSetMappingDefinition sqlResultSetMapping)
Adds the metadata for a named SQL result set mapping to this repository.
|
void |
addSecondPass(SecondPass sp)
Adds a second-pass to the end of the current queue.
|
void |
addSecondPass(SecondPass sp,
boolean onTopOfTheQueue)
Adds a second pass.
|
void |
addSQLQuery(String name,
NamedSQLQueryDefinition query)
Adds metadata for a named SQL query to this repository.
|
Table |
addTable(String schema,
String catalog,
String name,
String subselect,
boolean isAbstract)
Adds table metadata to this repository returning the created
metadata instance.
|
void |
addTableBinding(String schema,
String catalog,
String logicalName,
String physicalName,
Table denormalizedSuperTable)
Adds a table binding to this repository.
|
void |
addToExtendsQueue(ExtendsQueueEntry entry)
Adds an entry to the extends queue queue.
|
void |
addToOneAndIdProperty(org.hibernate.annotations.common.reflection.XClass entityType,
PropertyData property) |
void |
addTypeDef(String typeName,
String typeClass,
Properties paramMap)
Adds a type definition to this metadata repository.
|
void |
addUniqueConstraintHolders(Table table,
List<UniqueConstraintHolder> uniqueConstraintHolders) |
void |
addUniqueConstraints(Table table,
List uniqueConstraints) |
void |
addUniquePropertyReference(String referencedClass,
String propertyName)
Adds a property reference binding to this repository where said proeprty reference is marked as unique.
|
void |
applyResultSetMapping(ResultSetMappingDefinition sqlResultSetMapping) |
FetchProfile |
findOrCreateFetchProfile(String name,
MetadataSource source)
Retrieves a fetch profile by either finding one currently in this repository matching the given name
or by creating one (and adding it).
|
boolean |
forceDiscriminatorInSelectsByDefault() |
AnyMetaDef |
getAnyMetaDef(String name) |
Collection<AttributeConverterDefinition> |
getAttributeConverters()
All all AttributeConverter definitions
|
String |
getCatalogName()
Returns the currently bound default catalog name.
|
PersistentClass |
getClass(String entityName)
Retrieves the entity mapping metadata for the given entity name.
|
Map |
getClasses() |
AnnotatedClassType |
getClassType(org.hibernate.annotations.common.reflection.XClass clazz)
Get and maintain a cache of class type.
|
Collection |
getCollection(String role)
Retrieves the collection mapping metadata for the given collection role.
|
Properties |
getConfigurationProperties()
Retrieve the configuration properties currently in effect.
|
String |
getDefaultAccess()
Get the current default property access style.
|
String |
getDefaultCascade()
Get the current default cascade style.
|
String |
getDefaultPackage()
Get the currently bound default package name.
|
FilterDefinition |
getFilterDefinition(String name)
Retrieves a filter definition by name.
|
Map |
getFilterDefinitions()
Retrieves the copmplete map of filter definitions.
|
String |
getFromMappedBy(String entityName,
String propertyName) |
IdGenerator |
getGenerator(String name)
Retrieve the id-generator by name.
|
IdGenerator |
getGenerator(String name,
Map<String,IdGenerator> localGenerators)
Try to find the generator from the localGenerators
and then from the global generator list
|
Properties |
getGeneratorTableProperties(String name,
Map<String,Properties> localGeneratorTables)
Retrieve the properties related to a generator table.
|
MutableIdentifierGeneratorFactory |
getIdentifierGeneratorFactory()
Retrieve the IdentifierGeneratorFactory in effect for this mapping.
|
Map<String,Join> |
getJoins(String entityName)
Retrieve join metadata for a particular persistent entity.
|
String |
getLogicalColumnName(String physicalName,
Table table)
Find the logical column name against whcih the given physical column name was bound within the given table.
|
String |
getLogicalTableName(Table table)
Get the logical table name mapped for the given physical table.
|
MappedSuperclass |
getMappedSuperclass(Class type)
Get a MappedSuperclass or null if not mapped
|
NamingStrategy |
getNamingStrategy()
Get the current naming strategy.
|
NamingStrategyDelegator |
getNamingStrategyDelegator()
Get the current naming strategy delegate.
|
ObjectNameNormalizer |
getObjectNameNormalizer()
Retrieve the database identifier normalizer for this context.
|
String |
getPhysicalColumnName(String logicalName,
Table table)
Find the physical column name for the given logical column name within the given table.
|
PropertyData |
getPropertyAnnotatedWithIdAndToOne(org.hibernate.annotations.common.reflection.XClass entityType,
String propertyName)
Return the property annotated with @ToOne and @Id if any.
|
PropertyData |
getPropertyAnnotatedWithMapsId(org.hibernate.annotations.common.reflection.XClass entityType,
String propertyName)
Return the property annotated with @MapsId("propertyName") if any.
|
String |
getPropertyReferencedAssociation(String entityName,
String propertyName) |
NamedQueryDefinition |
getQuery(String name)
Get named query metadata by name.
|
org.hibernate.annotations.common.reflection.ReflectionManager |
getReflectionManager() |
ResultSetMappingDefinition |
getResultSetMapping(String name)
Get the metadata for a named SQL result set mapping.
|
String |
getSchemaName()
Returns the currently bound default schema name.
|
NamedSQLQueryDefinition |
getSQLQuery(String name)
Get named SQL query metadata.
|
Table |
getTable(String schema,
String catalog,
String name)
Returns the named table metadata.
|
Map<Table,List<String[]>> |
getTableUniqueConstraints() |
TypeDef |
getTypeDef(String typeName)
Retrieve a type definition by name.
|
TypeResolver |
getTypeResolver()
Retrieve the type resolver in effect.
|
Map<Table,List<UniqueConstraintHolder>> |
getUniqueConstraintHoldersByTable() |
boolean |
ignoreExplicitDiscriminatorColumnForJoinedInheritance()
Should we ignore explicit DiscriminatorColumn annotations when combined with joined inheritance?
|
boolean |
isAutoImport()
Determine whether auto importing of entity names is currently enabled.
|
boolean |
isDefaultLazy()
Determine whether default laziness is currently enabled.
|
boolean |
isInSecondPass() |
boolean |
isSpecjProprietarySyntaxEnabled() |
Iterator<AuxiliaryDatabaseObject> |
iterateAuxiliaryDatabaseObjects()
Retrieves an iterator over the metadata pertaining to all auxiliary database objects int this repository.
|
ListIterator<AuxiliaryDatabaseObject> |
iterateAuxiliaryDatabaseObjectsInReverse()
Same as
Mappings.iterateAuxiliaryDatabaseObjects() except that here the iterator is reversed. |
Iterator<AuxiliaryDatabaseObject> |
iterateAuxliaryDatabaseObjects() |
ListIterator<AuxiliaryDatabaseObject> |
iterateAuxliaryDatabaseObjectsInReverse() |
Iterator<PersistentClass> |
iterateClasses()
Retrieves an iterator over the entity metadata present in this repository.
|
Iterator<Collection> |
iterateCollections()
Returns an iterator over collection metadata.
|
Iterator<Table> |
iterateTables()
Returns an iterator over table metadata.
|
AttributeConverterDefinition |
locateAttributeConverter(Class converterClass)
Locate the AttributeConverterDefinition corresponding to the given AttributeConverter Class.
|
PersistentClass |
locatePersistentClassByEntityName(String entityName)
Retrieves the entity mapping metadata for the given entity name, potentially accounting
for imports.
|
protected void |
removeResultSetMapping(String name) |
void |
setAutoImport(boolean autoImport)
Set whether to enable auto importing of entity names.
|
void |
setCatalogName(String catalogName)
Sets the currently bound default catalog name.
|
void |
setDefaultAccess(String defaultAccess)
Sets the current default property access style.
|
void |
setDefaultCascade(String defaultCascade)
Sets the current default cascade style.
|
void |
setDefaultLazy(boolean defaultLazy)
Set whether to enable default laziness.
|
void |
setDefaultPackage(String defaultPackage)
Set the current default package name.
|
void |
setNamingStrategy(NamingStrategy namingStrategy)
Set the current naming strategy.
|
void |
setNamingStrategyDelegator(NamingStrategyDelegator namingStrategyDelegator)
Set a current naming strategy delegator.
|
void |
setSchemaName(String schemaName)
Sets the currently bound default schema name.
|
boolean |
useImplicitDiscriminatorColumnForJoinedInheritance()
Should we handle absent DiscriminatorColumn mappings for joined inheritance by implicitly mapping a
discriminator column?
|
boolean |
useNationalizedCharacterData()
Should we use nationalized variants of character data by default? This is controlled by the
AvailableSettings.USE_NATIONALIZED_CHARACTER_DATA setting. |
boolean |
useNewGeneratorMappings()
Should we use the new generator strategy mappings.
|
public String getSchemaName()
MappingsgetSchemaName in interface Mappingspublic void setSchemaName(String schemaName)
MappingssetSchemaName in interface MappingsschemaName - The schema name to bind as the current default.public String getCatalogName()
MappingsgetCatalogName in interface Mappingspublic void setCatalogName(String catalogName)
MappingssetCatalogName in interface MappingscatalogName - The catalog name to use as the current default.public String getDefaultPackage()
MappingsgetDefaultPackage in interface Mappingspublic void setDefaultPackage(String defaultPackage)
MappingssetDefaultPackage in interface MappingsdefaultPackage - The package name to set as the current default.public boolean isAutoImport()
MappingsisAutoImport in interface Mappingspublic void setAutoImport(boolean autoImport)
MappingssetAutoImport in interface MappingsautoImport - True to enable; false to diasable.Mappings.addImport(java.lang.String, java.lang.String)public boolean isDefaultLazy()
MappingsisDefaultLazy in interface Mappingspublic void setDefaultLazy(boolean defaultLazy)
MappingssetDefaultLazy in interface MappingsdefaultLazy - True to enable, false to disable.public String getDefaultCascade()
MappingsgetDefaultCascade in interface Mappingspublic void setDefaultCascade(String defaultCascade)
MappingssetDefaultCascade in interface MappingsdefaultCascade - The cascade style to set as the current default.public String getDefaultAccess()
MappingsgetDefaultAccess in interface Mappingspublic void setDefaultAccess(String defaultAccess)
MappingssetDefaultAccess in interface MappingsdefaultAccess - The access style to use as the current default.public NamingStrategy getNamingStrategy()
MappingsgetNamingStrategy in interface Mappingspublic void setNamingStrategy(NamingStrategy namingStrategy)
MappingsLegacyNamingStrategyDelegator
will be constructed with the specified naming strategy.setNamingStrategy in interface MappingsnamingStrategy - the NamingStrategy to set; must be non-null.LegacyNamingStrategyDelegator.LegacyNamingStrategyDelegator(NamingStrategy)public NamingStrategyDelegator getNamingStrategyDelegator()
MappingsgetNamingStrategyDelegator in interface Mappingspublic void setNamingStrategyDelegator(NamingStrategyDelegator namingStrategyDelegator)
MappingssetNamingStrategyDelegator in interface MappingsnamingStrategyDelegator - the NamingStrategyDelegator to set;
must be non-null; if namingStrategyDelegator is an instance
of LegacyNamingStrategyDelegator, then
LegacyNamingStrategyDelegator.getNamingStrategy()
must be non-null.public TypeResolver getTypeResolver()
MappingsgetTypeResolver in interface Mappingspublic Iterator<PersistentClass> iterateClasses()
MappingsiterateClasses in interface Mappingspublic PersistentClass getClass(String entityName)
Mappingspublic PersistentClass locatePersistentClassByEntityName(String entityName)
MappingslocatePersistentClassByEntityName in interface MappingsentityName - The entity name for which to retrieve the metadata.public void addClass(PersistentClass persistentClass) throws DuplicateMappingException
MappingsaddClass in interface MappingspersistentClass - The entity metadataDuplicateMappingException - Indicates there4 was already an extry
corresponding to the given entity name.public void addImport(String entityName, String rename) throws DuplicateMappingException
MappingsaddImport in interface MappingsentityName - The entity name being renamed.rename - The renameDuplicateMappingException - If rename already is mapped to another
entity name in this repository.public Collection getCollection(String role)
MappingsgetCollection in interface Mappingsrole - The collection role for which to retrieve the metadata.public Iterator<Collection> iterateCollections()
MappingsiterateCollections in interface Mappingspublic void addCollection(Collection collection) throws DuplicateMappingException
MappingsaddCollection in interface Mappingscollection - The collection metadataDuplicateMappingException - Indicates there was already an entry
corresponding to the given collection rolepublic Table getTable(String schema, String catalog, String name)
Mappingspublic Iterator<Table> iterateTables()
MappingsiterateTables in interface Mappingspublic Table addTable(String schema, String catalog, String name, String subselect, boolean isAbstract)
MappingsaddTable in interface Mappingsschema - The named schema in which the table belongs (or null).catalog - The named catalog in which the table belongs (or null).name - The table namesubselect - A select statement which defines a logical table, much
like a DB view.isAbstract - Is the table abstract (i.e. not really existing in the DB)?public Table addDenormalizedTable(String schema, String catalog, String name, boolean isAbstract, String subselect, Table includedTable) throws DuplicateMappingException
MappingsaddDenormalizedTable in interface Mappingsschema - The named schema in which the table belongs (or null).catalog - The named catalog in which the table belongs (or null).name - The table nameisAbstract - Is the table abstract (i.e. not really existing in the DB)?subselect - A select statement which defines a logical table, much
like a DB view.includedTable - ???DuplicateMappingException - If such a table mapping already exists.public NamedQueryDefinition getQuery(String name)
Mappingspublic void addQuery(String name, NamedQueryDefinition query) throws DuplicateMappingException
MappingsaddQuery in interface Mappingsname - The namequery - The metadataDuplicateMappingException - If a query already exists with that name.public void addDefaultQuery(String name, NamedQueryDefinition query)
addDefaultQuery in interface Mappingspublic NamedSQLQueryDefinition getSQLQuery(String name)
MappingsgetSQLQuery in interface Mappingsname - The named SQL query name.public void addSQLQuery(String name, NamedSQLQueryDefinition query) throws DuplicateMappingException
MappingsaddSQLQuery in interface Mappingsname - The namequery - The metadataDuplicateMappingException - If a query already exists with that name.public void addNamedProcedureCallDefinition(NamedProcedureCallDefinition definition) throws DuplicateMappingException
MappingsaddNamedProcedureCallDefinition in interface Mappingsdefinition - The procedure call informationDuplicateMappingException - If a query already exists with that name.public void addDefaultNamedProcedureCallDefinition(NamedProcedureCallDefinition definition) throws DuplicateMappingException
MappingsaddDefaultNamedProcedureCallDefinition in interface Mappingsdefinition - The procedure call informationDuplicateMappingException - If a query already exists with that name.public void addNamedEntityGraphDefintion(NamedEntityGraphDefinition definition) throws DuplicateMappingException
MappingsaddNamedEntityGraphDefintion in interface Mappingsdefinition - The procedure call informationDuplicateMappingException - If an entity graph already exists with that name.public void addDefaultSQLQuery(String name, NamedSQLQueryDefinition query)
addDefaultSQLQuery in interface Mappingspublic ResultSetMappingDefinition getResultSetMapping(String name)
MappingsgetResultSetMapping in interface Mappingsname - The mapping name.public void addResultSetMapping(ResultSetMappingDefinition sqlResultSetMapping) throws DuplicateMappingException
MappingsaddResultSetMapping in interface MappingssqlResultSetMapping - The metadataDuplicateMappingException - If metadata for another SQL result mapping was
already found under the given name.public void applyResultSetMapping(ResultSetMappingDefinition sqlResultSetMapping) throws DuplicateMappingException
DuplicateMappingExceptionpublic void addDefaultResultSetMapping(ResultSetMappingDefinition definition)
addDefaultResultSetMapping in interface Mappingsprotected void removeResultSetMapping(String name)
public TypeDef getTypeDef(String typeName)
MappingsgetTypeDef in interface MappingstypeName - The name of the type definition to retrieve.public void addTypeDef(String typeName, String typeClass, Properties paramMap)
MappingsaddTypeDef in interface MappingstypeName - The type name.typeClass - The class implementing the Type contract.paramMap - Map of parameters to be used to configure the type after instantiation.public Map getFilterDefinitions()
MappingsgetFilterDefinitions in interface Mappingspublic FilterDefinition getFilterDefinition(String name)
MappingsgetFilterDefinition in interface Mappingsname - The name of the filter definition to retrieve.public void addFilterDefinition(FilterDefinition definition)
MappingsaddFilterDefinition in interface Mappingsdefinition - The filter definition to add.public FetchProfile findOrCreateFetchProfile(String name, MetadataSource source)
MappingsfindOrCreateFetchProfile in interface Mappingsname - The name of the profile.source - The source from which this profile is named.public Iterator<AuxiliaryDatabaseObject> iterateAuxliaryDatabaseObjects()
iterateAuxliaryDatabaseObjects in interface Mappingspublic Iterator<AuxiliaryDatabaseObject> iterateAuxiliaryDatabaseObjects()
MappingsiterateAuxiliaryDatabaseObjects in interface Mappingspublic ListIterator<AuxiliaryDatabaseObject> iterateAuxliaryDatabaseObjectsInReverse()
iterateAuxliaryDatabaseObjectsInReverse in interface Mappingspublic ListIterator<AuxiliaryDatabaseObject> iterateAuxiliaryDatabaseObjectsInReverse()
MappingsMappings.iterateAuxiliaryDatabaseObjects() except that here the iterator is reversed.iterateAuxiliaryDatabaseObjectsInReverse in interface Mappingspublic void addAuxiliaryDatabaseObject(AuxiliaryDatabaseObject auxiliaryDatabaseObject)
MappingsaddAuxiliaryDatabaseObject in interface MappingsauxiliaryDatabaseObject - The metadata.public String getLogicalTableName(Table table) throws MappingException
MappingsgetLogicalTableName in interface Mappingstable - The table for which to determine the logical name.MappingException - Indicates that no logical name was bound for the given physical table.public void addTableBinding(String schema, String catalog, String logicalName, String physicalName, Table denormalizedSuperTable) throws DuplicateMappingException
MappingsaddTableBinding in interface Mappingsschema - The schema in which the table belongs (may be null).catalog - The catalog in which the table belongs (may be null).logicalName - The logical table name.physicalName - The physical table name.denormalizedSuperTable - ???DuplicateMappingException - Indicates physical table was already bound to another logical name.public void addColumnBinding(String logicalName, Column physicalColumn, Table table) throws DuplicateMappingException
MappingsaddColumnBinding in interface MappingslogicalName - The logical column name binding.physicalColumn - The physical column metadata.table - The table metadata.DuplicateMappingException - Indicates a duplicate binding for either the physical column name
or the logical column name.public String getPhysicalColumnName(String logicalName, Table table) throws MappingException
MappingsgetPhysicalColumnName in interface MappingslogicalName - The logical name binding.table - The table metatdata.MappingException - Indicates that no such binding was found.public String getLogicalColumnName(String physicalName, Table table) throws MappingException
MappingsgetLogicalColumnName in interface MappingsphysicalName - The physical column nametable - The table metadata.MappingException - Indicates that no such binding was found.public void addSecondPass(SecondPass sp)
MappingsaddSecondPass in interface Mappingssp - The second pass to add.public void addSecondPass(SecondPass sp, boolean onTopOfTheQueue)
MappingsaddSecondPass in interface Mappingssp - The second pass to add.onTopOfTheQueue - True to add to the beginning of the queue; false to add to the end.public AttributeConverterDefinition locateAttributeConverter(Class converterClass)
MappingslocateAttributeConverter in interface MappingsconverterClass - The AttributeConverter Class for which to get the definitionnull if no corresponding
definition found.public Collection<AttributeConverterDefinition> getAttributeConverters()
MappingsgetAttributeConverters in interface Mappingspublic void addPropertyReference(String referencedClass, String propertyName)
MappingsaddPropertyReference in interface MappingsreferencedClass - The referenced entity name.propertyName - The referenced property name.public void addUniquePropertyReference(String referencedClass, String propertyName)
MappingsaddUniquePropertyReference in interface MappingsreferencedClass - The referenced entity name.propertyName - The referenced property name.public void addToExtendsQueue(ExtendsQueueEntry entry)
MappingsaddToExtendsQueue in interface Mappingsentry - The entry to add.public MutableIdentifierGeneratorFactory getIdentifierGeneratorFactory()
MappingsgetIdentifierGeneratorFactory in interface Mappingspublic void addMappedSuperclass(Class type, MappedSuperclass mappedSuperclass)
MappingsaddMappedSuperclass in interface Mappingstype - type corresponding to the MappedsuperclassmappedSuperclass - MappedSuperclasspublic MappedSuperclass getMappedSuperclass(Class type)
MappingsgetMappedSuperclass in interface Mappingstype - class corresponding to the MappedSuperclasspublic ObjectNameNormalizer getObjectNameNormalizer()
MappingsgetObjectNameNormalizer in interface Mappingspublic Properties getConfigurationProperties()
MappingsgetConfigurationProperties in interface Mappingspublic void addDefaultGenerator(IdGenerator generator)
MappingsaddDefaultGenerator in interface Mappingsgenerator - The id generatorpublic boolean isInSecondPass()
isInSecondPass in interface Mappingspublic PropertyData getPropertyAnnotatedWithMapsId(org.hibernate.annotations.common.reflection.XClass entityType, String propertyName)
MappingsgetPropertyAnnotatedWithMapsId in interface Mappingspublic void addPropertyAnnotatedWithMapsId(org.hibernate.annotations.common.reflection.XClass entityType,
PropertyData property)
addPropertyAnnotatedWithMapsId in interface Mappingspublic boolean isSpecjProprietarySyntaxEnabled()
isSpecjProprietarySyntaxEnabled in interface Mappingspublic void addPropertyAnnotatedWithMapsIdSpecj(org.hibernate.annotations.common.reflection.XClass entityType,
PropertyData property,
String mapsIdValue)
addPropertyAnnotatedWithMapsIdSpecj in interface Mappingspublic PropertyData getPropertyAnnotatedWithIdAndToOne(org.hibernate.annotations.common.reflection.XClass entityType, String propertyName)
MappingsgetPropertyAnnotatedWithIdAndToOne in interface Mappingspublic void addToOneAndIdProperty(org.hibernate.annotations.common.reflection.XClass entityType,
PropertyData property)
addToOneAndIdProperty in interface Mappingspublic boolean useNewGeneratorMappings()
MappingsAvailableSettings.USE_NEW_ID_GENERATOR_MAPPINGS setting.useNewGeneratorMappings in interface Mappingspublic boolean useImplicitDiscriminatorColumnForJoinedInheritance()
MappingsuseImplicitDiscriminatorColumnForJoinedInheritance in interface Mappingstrue indicates we should infer DiscriminatorColumn implicitly (aka, map to a discriminator
column even without a DiscriminatorColumn annotation); false (the default) indicates that we should not.AvailableSettings.IMPLICIT_DISCRIMINATOR_COLUMNS_FOR_JOINED_SUBCLASSpublic boolean ignoreExplicitDiscriminatorColumnForJoinedInheritance()
MappingsignoreExplicitDiscriminatorColumnForJoinedInheritance in interface Mappingstrue indicates we should ignore explicit DiscriminatorColumn annotations; false (the
default) indicates we should not ignore themAvailableSettings.IGNORE_EXPLICIT_DISCRIMINATOR_COLUMNS_FOR_JOINED_SUBCLASSpublic boolean useNationalizedCharacterData()
MappingsAvailableSettings.USE_NATIONALIZED_CHARACTER_DATA setting.useNationalizedCharacterData in interface Mappingstrue if nationalized character data should be used by default; false otherwise.public boolean forceDiscriminatorInSelectsByDefault()
forceDiscriminatorInSelectsByDefault in interface Mappingspublic IdGenerator getGenerator(String name)
MappingsgetGenerator in interface Mappingsname - The generator name.public IdGenerator getGenerator(String name, Map<String,IdGenerator> localGenerators)
MappingsgetGenerator in interface Mappingsname - generator namelocalGenerators - local generatorspublic void addGenerator(IdGenerator generator)
MappingsaddGenerator in interface Mappingsgenerator - The generator to add.public void addGeneratorTable(String name, Properties params)
MappingsaddGeneratorTable in interface Mappingsname - The generator nameparams - The generator table properties.public Properties getGeneratorTableProperties(String name, Map<String,Properties> localGeneratorTables)
MappingsgetGeneratorTableProperties in interface Mappingsname - generator namelocalGeneratorTables - local generator tablespublic Map<String,Join> getJoins(String entityName)
Mappingspublic void addJoins(PersistentClass persistentClass, Map<String,Join> joins)
Mappingspublic AnnotatedClassType getClassType(org.hibernate.annotations.common.reflection.XClass clazz)
MappingsgetClassType in interface Mappingsclazz - The XClass mappingpublic AnnotatedClassType addClassType(org.hibernate.annotations.common.reflection.XClass clazz)
MappingsaddClassType in interface Mappingsclazz - The XClass mapping.public Map<Table,List<String[]>> getTableUniqueConstraints()
getTableUniqueConstraints in interface Mappingspublic Map<Table,List<UniqueConstraintHolder>> getUniqueConstraintHoldersByTable()
getUniqueConstraintHoldersByTable in interface Mappingspublic void addUniqueConstraints(Table table, List uniqueConstraints)
addUniqueConstraints in interface Mappingspublic void addUniqueConstraintHolders(Table table, List<UniqueConstraintHolder> uniqueConstraintHolders)
addUniqueConstraintHolders in interface Mappingspublic void addJpaIndexHolders(Table table, List<JPAIndexHolder> holders)
addJpaIndexHolders in interface Mappingspublic void addMappedBy(String entityName, String propertyName, String inversePropertyName)
addMappedBy in interface Mappingspublic String getFromMappedBy(String entityName, String propertyName)
getFromMappedBy in interface Mappingspublic void addPropertyReferencedAssociation(String entityName, String propertyName, String propertyRef)
addPropertyReferencedAssociation in interface Mappingspublic String getPropertyReferencedAssociation(String entityName, String propertyName)
getPropertyReferencedAssociation in interface Mappingspublic org.hibernate.annotations.common.reflection.ReflectionManager getReflectionManager()
getReflectionManager in interface Mappingspublic Map getClasses()
getClasses in interface Mappingspublic void addAnyMetaDef(AnyMetaDef defAnn) throws AnnotationException
addAnyMetaDef in interface MappingsAnnotationExceptionpublic AnyMetaDef getAnyMetaDef(String name)
getAnyMetaDef in interface MappingsCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.