public interface Metadata extends Mapping
getIdentifierGeneratorFactory, getIdentifierPropertyName, getIdentifierType, getReferencedPropertyTypeSessionFactoryBuilder getSessionFactoryBuilder()
SessionFactory instances based on this metamodel,SessionFactory instances.SessionFactory buildSessionFactory()
SessionFactory through the builder without any additional
option overrides.Database getDatabase()
Collection<PersistentClass> getEntityBindings()
PersistentClass getEntityBinding(String entityName)
entityName - The entity name for which to retrieve the metadata.null if no matching entity found.Collection<Collection> getCollectionBindings()
Collection getCollectionBinding(String role)
role - The collection role for which to retrieve the metadata.null if no matching collection found.Map<String,String> getImports()
NamedQueryDefinition getNamedQueryDefinition(String name)
name - The query namenull.Collection<NamedQueryDefinition> getNamedQueryDefinitions()
NamedSQLQueryDefinition getNamedNativeQueryDefinition(String name)
name - The SQL query name.nullCollection<NamedSQLQueryDefinition> getNamedNativeQueryDefinitions()
Collection<NamedProcedureCallDefinition> getNamedProcedureCallDefinitions()
ResultSetMappingDefinition getResultSetMapping(String name)
name - The mapping name.null if none found.Map<String,ResultSetMappingDefinition> getResultSetMappingDefinitions()
TypeDefinition getTypeDefinition(String typeName)
typeName - The name of the type definition to retrieve.nullMap<String,FilterDefinition> getFilterDefinitions()
FilterDefinition getFilterDefinition(String name)
name - The name of the filter definition to retrieve
.null.FetchProfile getFetchProfile(String name)
Collection<FetchProfile> getFetchProfiles()
NamedEntityGraphDefinition getNamedEntityGraph(String name)
Map<String,NamedEntityGraphDefinition> getNamedEntityGraphs()
IdentifierGeneratorDefinition getIdentifierGenerator(String name)
Collection<Table> collectTableMappings()
Map<String,SQLFunction> getSqlFunctionMap()
Copyright © 2017 JBoss by Red Hat. All rights reserved.