public abstract class AbstractDelegatingMetadata extends Object implements MetadataImplementor
Convenience base class for custom implementors of MetadataImplementor using delegation.
| Constructor and Description |
|---|
AbstractDelegatingMetadata(MetadataImplementor delegate) |
public AbstractDelegatingMetadata(MetadataImplementor delegate)
protected MetadataImplementor delegate()
public IdentifierGeneratorFactory getIdentifierGeneratorFactory()
MappingAllow access to the id generator factory, though this is only needed/allowed from configuration.
getIdentifierGeneratorFactory in interface Mappingpublic Type getIdentifierType(String className) throws MappingException
getIdentifierType in interface MappingMappingExceptionpublic String getIdentifierPropertyName(String className) throws MappingException
getIdentifierPropertyName in interface MappingMappingExceptionpublic Type getReferencedPropertyType(String className, String propertyName) throws MappingException
getReferencedPropertyType in interface MappingMappingExceptionpublic SessionFactoryBuilder getSessionFactoryBuilder()
MetadataGet the builder for SessionFactory instances based on this metamodel,
getSessionFactoryBuilder in interface MetadataSessionFactory instances.public SessionFactory buildSessionFactory()
MetadataShort-hand form of building a SessionFactory through the builder without any additional
option overrides.
buildSessionFactory in interface Metadatapublic UUID getUUID()
MetadataGets the UUID for this metamodel.
public Database getDatabase()
MetadataRetrieve the database model.
getDatabase in interface Metadatapublic Collection<PersistentClass> getEntityBindings()
MetadataRetrieves the PersistentClass entity metadata representation for known all entities.
Returned collection is immutable
getEntityBindings in interface Metadatapublic PersistentClass getEntityBinding(String entityName)
MetadataRetrieves the PersistentClass entity mapping metadata representation for the given entity name.
getEntityBinding in interface MetadataentityName - The entity name for which to retrieve the metadata.null if no matching entity found.public Collection<Collection> getCollectionBindings()
MetadataRetrieves the Collection metadata representation for known all collections.
Returned collection is immutable
getCollectionBindings in interface Metadatapublic Collection getCollectionBinding(String role)
MetadataRetrieves the collection mapping metadata for the given collection role.
getCollectionBinding in interface Metadatarole - The collection role for which to retrieve the metadata.null if no matching collection found.public Map<String,String> getImports()
MetadataRetrieves all defined imports (class renames).
getImports in interface Metadatapublic NamedQueryDefinition getNamedQueryDefinition(String name)
MetadataRetrieve named query metadata by name.
getNamedQueryDefinition in interface Metadataname - The query namenull.public Collection<NamedQueryDefinition> getNamedQueryDefinitions()
getNamedQueryDefinitions in interface Metadatapublic NamedSQLQueryDefinition getNamedNativeQueryDefinition(String name)
MetadataRetrieve named SQL query metadata.
getNamedNativeQueryDefinition in interface Metadataname - The SQL query name.nullpublic Collection<NamedSQLQueryDefinition> getNamedNativeQueryDefinitions()
getNamedNativeQueryDefinitions in interface Metadatapublic Collection<NamedProcedureCallDefinition> getNamedProcedureCallDefinitions()
getNamedProcedureCallDefinitions in interface Metadatapublic ResultSetMappingDefinition getResultSetMapping(String name)
MetadataRetrieve the metadata for a named SQL result set mapping.
getResultSetMapping in interface Metadataname - The mapping name.null if none found.public Map<String,ResultSetMappingDefinition> getResultSetMappingDefinitions()
getResultSetMappingDefinitions in interface Metadatapublic TypeDefinition getTypeDefinition(String typeName)
MetadataRetrieve a type definition by name.
getTypeDefinition in interface MetadatatypeName - The name of the type definition to retrieve.nullpublic Map<String,FilterDefinition> getFilterDefinitions()
MetadataRetrieves the complete map of filter definitions.
Returned map is immutable
getFilterDefinitions in interface Metadatapublic FilterDefinition getFilterDefinition(String name)
MetadataRetrieves a filter definition by name.
getFilterDefinition in interface Metadataname - The name of the filter definition to retrieve
.null.public FetchProfile getFetchProfile(String name)
getFetchProfile in interface Metadatapublic Collection<FetchProfile> getFetchProfiles()
getFetchProfiles in interface Metadatapublic NamedEntityGraphDefinition getNamedEntityGraph(String name)
getNamedEntityGraph in interface Metadatapublic Map<String,NamedEntityGraphDefinition> getNamedEntityGraphs()
getNamedEntityGraphs in interface Metadatapublic IdentifierGeneratorDefinition getIdentifierGenerator(String name)
getIdentifierGenerator in interface Metadatapublic Collection<Table> collectTableMappings()
collectTableMappings in interface Metadatapublic Map<String,SQLFunction> getSqlFunctionMap()
getSqlFunctionMap in interface Metadatapublic MetadataBuildingOptions getMetadataBuildingOptions()
MetadataImplementorAccess to the options used to build this Metadata
getMetadataBuildingOptions in interface MetadataImplementorpublic TypeResolver getTypeResolver()
getTypeResolver in interface MetadataImplementorpublic NamedQueryRepository buildNamedQueryRepository(org.hibernate.internal.SessionFactoryImpl sessionFactory)
buildNamedQueryRepository in interface MetadataImplementorpublic void validate()
throws MappingException
validate in interface MetadataImplementorMappingExceptionpublic Set<MappedSuperclass> getMappedSuperclassMappingsCopy()
getMappedSuperclassMappingsCopy in interface MetadataImplementorCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.