org.hibernate.metamodel.source.internal
Class MetadataImpl
java.lang.Object
   org.hibernate.metamodel.source.internal.MetadataImpl
org.hibernate.metamodel.source.internal.MetadataImpl
- All Implemented Interfaces: 
- Serializable, Mapping, Metadata, BindingContext, MetadataImplementor
- public class MetadataImpl 
- extends Object- implements MetadataImplementor, Serializable
Container for configuration data collected during binding the metamodel.
- See Also:
- Serialized Form
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
MetadataImpl
public MetadataImpl(MetadataSources metadataSources,
                    Metadata.Options options)
addFetchProfile
public void addFetchProfile(FetchProfile profile)
- 
- Specified by:
- addFetchProfilein interface- MetadataImplementor
 
- 
 
addFilterDefinition
public void addFilterDefinition(FilterDefinition def)
- 
- Specified by:
- addFilterDefinitionin interface- MetadataImplementor
 
- 
 
getFilterDefinitions
public Iterable<FilterDefinition> getFilterDefinitions()
- 
- Specified by:
- getFilterDefinitionsin interface- Metadata
 
- 
 
addIdGenerator
public void addIdGenerator(IdGenerator generator)
- 
- Specified by:
- addIdGeneratorin interface- MetadataImplementor
 
- 
 
getIdGenerator
public IdGenerator getIdGenerator(String name)
- 
- Specified by:
- getIdGeneratorin interface- Metadata
 
- 
 
registerIdentifierGenerator
public void registerIdentifierGenerator(String name,
                                        String generatorClassName)
- 
- Specified by:
- registerIdentifierGeneratorin interface- MetadataImplementor
 
- 
 
addNamedNativeQuery
public void addNamedNativeQuery(NamedSQLQueryDefinition def)
- 
- Specified by:
- addNamedNativeQueryin interface- MetadataImplementor
 
- 
 
getNamedNativeQuery
public NamedSQLQueryDefinition getNamedNativeQuery(String name)
- 
 
- 
 
getNamedNativeQueryDefinitions
public Iterable<NamedSQLQueryDefinition> getNamedNativeQueryDefinitions()
- 
- Specified by:
- getNamedNativeQueryDefinitionsin interface- Metadata
 
- 
 
addNamedQuery
public void addNamedQuery(NamedQueryDefinition def)
- 
- Specified by:
- addNamedQueryin interface- MetadataImplementor
 
- 
 
getNamedQuery
public NamedQueryDefinition getNamedQuery(String name)
- 
 
- 
 
getNamedQueryDefinitions
public Iterable<NamedQueryDefinition> getNamedQueryDefinitions()
- 
- Specified by:
- getNamedQueryDefinitionsin interface- Metadata
 
- 
 
addResultSetMapping
public void addResultSetMapping(ResultSetMappingDefinition resultSetMappingDefinition)
- 
- Specified by:
- addResultSetMappingin interface- MetadataImplementor
 
- 
 
getResultSetMappingDefinitions
public Iterable<ResultSetMappingDefinition> getResultSetMappingDefinitions()
- 
- Specified by:
- getResultSetMappingDefinitionsin interface- Metadata
 
- 
 
addTypeDefinition
public void addTypeDefinition(TypeDef typeDef)
- 
- Specified by:
- addTypeDefinitionin interface- MetadataImplementor
 
- 
 
getTypeDefinitions
public Iterable<TypeDef> getTypeDefinitions()
- 
- Specified by:
- getTypeDefinitionsin interface- Metadata
 
- 
 
getTypeDefinition
public TypeDef getTypeDefinition(String name)
- 
- Specified by:
- getTypeDefinitionin interface- Metadata
 
- 
 
getOptions
public Metadata.Options getOptions()
- 
- Specified by:
- getOptionsin interface- Metadata
 
- 
 
buildSessionFactory
public SessionFactory buildSessionFactory()
- 
- Specified by:
- buildSessionFactoryin interface- Metadata
 
- 
 
getServiceRegistry
public ServiceRegistry getServiceRegistry()
- 
- Specified by:
- getServiceRegistryin interface- BindingContext
- Specified by:
- getServiceRegistryin interface- MetadataImplementor
 
- 
 
locateClassByName
public <T> Class<T> locateClassByName(String name)
- 
- Specified by:
- locateClassByNamein interface- BindingContext
 
- 
 
makeJavaType
public Type makeJavaType(String className)
- 
- Specified by:
- makeJavaTypein interface- BindingContext
 
- 
 
makeClassReference
public Value<Class<?>> makeClassReference(String className)
- 
- Specified by:
- makeClassReferencein interface- BindingContext
 
- 
 
qualifyClassName
public String qualifyClassName(String name)
- 
- Specified by:
- qualifyClassNamein interface- BindingContext
 
- 
 
getDatabase
public Database getDatabase()
- 
- Specified by:
- getDatabasein interface- MetadataImplementor
 
- 
 
getEntityBinding
public EntityBinding getEntityBinding(String entityName)
- 
- Specified by:
- getEntityBindingin interface- Metadata
 
- 
 
getRootEntityBinding
public EntityBinding getRootEntityBinding(String entityName)
- Description copied from interface: Metadata
- Get the "root" entity binding
 
- 
- Specified by:
- getRootEntityBindingin interface- Metadata
 
- 
- Returns:
- the "root entity binding; simply returns entityBinding if it is the root entity binding
 
getEntityBindings
public Iterable<EntityBinding> getEntityBindings()
- 
- Specified by:
- getEntityBindingsin interface- Metadata
 
- 
 
addEntity
public void addEntity(EntityBinding entityBinding)
- 
- Specified by:
- addEntityin interface- MetadataImplementor
 
- 
 
getCollection
public PluralAttributeBinding getCollection(String collectionRole)
- 
 
- 
 
getCollectionBindings
public Iterable<PluralAttributeBinding> getCollectionBindings()
- 
- Specified by:
- getCollectionBindingsin interface- Metadata
 
- 
 
addCollection
public void addCollection(PluralAttributeBinding pluralAttributeBinding)
- 
- Specified by:
- addCollectionin interface- MetadataImplementor
 
- 
 
addImport
public void addImport(String importName,
                      String entityName)
- 
- Specified by:
- addImportin interface- MetadataImplementor
 
- 
 
getImports
public Iterable<Map.Entry<String,String>> getImports()
- 
- Specified by:
- getImportsin interface- Metadata
 
- 
 
getFetchProfiles
public Iterable<FetchProfile> getFetchProfiles()
- 
- Specified by:
- getFetchProfilesin interface- Metadata
 
- 
 
getTypeResolver
public TypeResolver getTypeResolver()
- 
- Specified by:
- getTypeResolverin interface- MetadataImplementor
 
- 
 
getSessionFactoryBuilder
public SessionFactoryBuilder getSessionFactoryBuilder()
- 
- Specified by:
- getSessionFactoryBuilderin interface- Metadata
 
- 
 
getNamingStrategy
public NamingStrategy getNamingStrategy()
- 
- Specified by:
- getNamingStrategyin interface- BindingContext
 
- 
 
isGloballyQuotedIdentifiers
public boolean isGloballyQuotedIdentifiers()
- 
- Specified by:
- isGloballyQuotedIdentifiersin interface- BindingContext
 
- 
 
setGloballyQuotedIdentifiers
public void setGloballyQuotedIdentifiers(boolean globallyQuotedIdentifiers)
- 
- Specified by:
- setGloballyQuotedIdentifiersin interface- MetadataImplementor
 
- 
 
getMappingDefaults
public MappingDefaults getMappingDefaults()
- 
- Specified by:
- getMappingDefaultsin interface- BindingContext
 
- 
 
getGlobalMetaAttributeContext
public MetaAttributeContext getGlobalMetaAttributeContext()
- 
- Specified by:
- getGlobalMetaAttributeContextin interface- MetadataImplementor
 
- 
 
getMetadataImplementor
public MetadataImplementor getMetadataImplementor()
- 
- Specified by:
- getMetadataImplementorin interface- BindingContext
 
- 
 
getIdentifierGeneratorFactory
public IdentifierGeneratorFactory getIdentifierGeneratorFactory()
- Description copied from interface: Mapping
- Allow access to the id generator factory, though this is only needed/allowed from configuration.
 
- 
- Specified by:
- getIdentifierGeneratorFactoryin interface- Mapping
 
- 
- Returns:
 
getIdentifierType
public Type getIdentifierType(String entityName)
                       throws MappingException
- 
- Specified by:
- getIdentifierTypein interface- Mapping
 
- 
- Throws:
- MappingException
 
getIdentifierPropertyName
public String getIdentifierPropertyName(String entityName)
                                 throws MappingException
- 
- Specified by:
- getIdentifierPropertyNamein interface- Mapping
 
- 
- Throws:
- MappingException
 
getReferencedPropertyType
public Type getReferencedPropertyType(String entityName,
                                      String propertyName)
                               throws MappingException
- 
- Specified by:
- getReferencedPropertyTypein interface- Mapping
 
- 
- Throws:
- MappingException
 
Copyright © 2001-2012 Red Hat, Inc.  All Rights Reserved.