public abstract class AbstractDelegatingMetadata extends Object implements MetadataImplementor
MetadataImplementor
using delegation.Constructor and Description |
---|
AbstractDelegatingMetadata(MetadataImplementor delegate) |
public AbstractDelegatingMetadata(MetadataImplementor delegate)
public IdentifierGeneratorFactory getIdentifierGeneratorFactory()
Mapping
getIdentifierGeneratorFactory
in interface Mapping
public Type getIdentifierType(String className) throws MappingException
getIdentifierType
in interface Mapping
MappingException
public String getIdentifierPropertyName(String className) throws MappingException
getIdentifierPropertyName
in interface Mapping
MappingException
public Type getReferencedPropertyType(String className, String propertyName) throws MappingException
getReferencedPropertyType
in interface Mapping
MappingException
public SessionFactoryBuilder getSessionFactoryBuilder()
Metadata
SessionFactory
instances based on this metamodel,getSessionFactoryBuilder
in interface Metadata
SessionFactory
instances.public SessionFactory buildSessionFactory()
Metadata
SessionFactory
through the builder without any additional
option overrides.buildSessionFactory
in interface Metadata
public UUID getUUID()
Metadata
UUID
for this metamodel.public Database getDatabase()
Metadata
getDatabase
in interface Metadata
public Collection<PersistentClass> getEntityBindings()
Metadata
getEntityBindings
in interface Metadata
public PersistentClass getEntityBinding(String entityName)
Metadata
getEntityBinding
in interface Metadata
entityName
- The entity name for which to retrieve the metadata.null
if no matching entity found.public Collection<Collection> getCollectionBindings()
Metadata
getCollectionBindings
in interface Metadata
public Collection getCollectionBinding(String role)
Metadata
getCollectionBinding
in interface Metadata
role
- The collection role for which to retrieve the metadata.null
if no matching collection found.public Map<String,String> getImports()
Metadata
getImports
in interface Metadata
public NamedQueryDefinition getNamedQueryDefinition(String name)
Metadata
getNamedQueryDefinition
in interface Metadata
name
- The query namenull
.public Collection<NamedQueryDefinition> getNamedQueryDefinitions()
getNamedQueryDefinitions
in interface Metadata
public NamedSQLQueryDefinition getNamedNativeQueryDefinition(String name)
Metadata
getNamedNativeQueryDefinition
in interface Metadata
name
- The SQL query name.null
public Collection<NamedSQLQueryDefinition> getNamedNativeQueryDefinitions()
getNamedNativeQueryDefinitions
in interface Metadata
public Collection<NamedProcedureCallDefinition> getNamedProcedureCallDefinitions()
getNamedProcedureCallDefinitions
in interface Metadata
public ResultSetMappingDefinition getResultSetMapping(String name)
Metadata
getResultSetMapping
in interface Metadata
name
- The mapping name.null
if none found.public Map<String,ResultSetMappingDefinition> getResultSetMappingDefinitions()
getResultSetMappingDefinitions
in interface Metadata
public TypeDefinition getTypeDefinition(String typeName)
Metadata
getTypeDefinition
in interface Metadata
typeName
- The name of the type definition to retrieve.null
public Map<String,FilterDefinition> getFilterDefinitions()
Metadata
getFilterDefinitions
in interface Metadata
public FilterDefinition getFilterDefinition(String name)
Metadata
getFilterDefinition
in interface Metadata
name
- The name of the filter definition to retrieve
.null
.public FetchProfile getFetchProfile(String name)
getFetchProfile
in interface Metadata
public Collection<FetchProfile> getFetchProfiles()
getFetchProfiles
in interface Metadata
public NamedEntityGraphDefinition getNamedEntityGraph(String name)
getNamedEntityGraph
in interface Metadata
public Map<String,NamedEntityGraphDefinition> getNamedEntityGraphs()
getNamedEntityGraphs
in interface Metadata
public IdentifierGeneratorDefinition getIdentifierGenerator(String name)
getIdentifierGenerator
in interface Metadata
public Collection<Table> collectTableMappings()
collectTableMappings
in interface Metadata
public Map<String,SQLFunction> getSqlFunctionMap()
getSqlFunctionMap
in interface Metadata
public MetadataBuildingOptions getMetadataBuildingOptions()
MetadataImplementor
getMetadataBuildingOptions
in interface MetadataImplementor
public TypeResolver getTypeResolver()
getTypeResolver
in interface MetadataImplementor
public NamedQueryRepository buildNamedQueryRepository(SessionFactoryImpl sessionFactory)
buildNamedQueryRepository
in interface MetadataImplementor
public void validate() throws MappingException
validate
in interface MetadataImplementor
MappingException
public Set<MappedSuperclass> getMappedSuperclassMappingsCopy()
getMappedSuperclassMappingsCopy
in interface MetadataImplementor
Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.