Class MetamodelImpl
- All Implemented Interfaces:
- Metamodel,- MetamodelProvider
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds the specified URI to the module extraction signature.voidbuild(PersistenceUnitClassFinder classFinder) Builds the metamodel for classes (entity classes, attribute converters etc.) discovered by the specifiedPersistenceUnitClassFinder.voidBuilds a reduced metamodel for the specified set of entity classes.<X> IdentifiableEntityType<X>Return the metamodel entity type representing the entity.Set<EntityType<?>>Return the metamodel entity types.<X> Class<? extends X>getEntityReferenceProxy(Class<X> cls) Gets aEntityReferenceProxytype for the specified class.Get the set of classes that contain inferred attributes.<X> Class<? extends X>getLazyLoadingProxy(Class<X> cls) Gets aLazyLoadingProxytype for the specified class.Set<ManagedType<?>>Return the metamodel managed types.Set<EntityType<?>>getMappedEntities(String classIri) Returns the metamodel entity types representing the specified ontological class.Gets the metamodelGets a set of URIs that should be added to module extraction signature.GetsNamedQueryManagerfor this persistence unit.Gets namespace resolver containing namespaces detected for this persistence unit.getReferringTypes(Class<?> cls) Gets types which contain an attribute of the specified type.Gets the SPARQL result set mapping manager (ResultSetMappingManager) for this persistence unit.booleanisEntityType(Class<?> cls) Checks whether the specified class is an entity type.
- 
Constructor Details- 
MetamodelImplprotected MetamodelImpl()
- 
MetamodelImpl
 
- 
- 
Method Details- 
buildBuilds the metamodel for classes (entity classes, attribute converters etc.) discovered by the specifiedPersistenceUnitClassFinder.- Parameters:
- classFinder- Finder of PU classes
 
- 
buildBuilds a reduced metamodel for the specified set of entity classes.The result of calling this method is not equivalent to build(PersistenceUnitClassFinder)as it does not process result set mappings, attribute converters, named queries, etc. It only builds metamodel for the specified entity classes.Also, no additional processing (like initializing static metamodel) is done. - Parameters:
- entityClasses- Entity classes to initialize the metamodel with
 
- 
entityDescription copied from interface:MetamodelReturn the metamodel entity type representing the entity.
- 
getMappedEntitiesDescription copied from interface:MetamodelReturns the metamodel entity types representing the specified ontological class.Note that since multiple entity types can be mapped to the same ontological class, this method returns a set of entity types instead of just one. - Specified by:
- getMappedEntitiesin interface- Metamodel
- Parameters:
- classIri- Identifier of the ontological class
- Returns:
- A set of entity types mapped to the specified class IRI, possibly empty
 
- 
getEntitiesDescription copied from interface:MetamodelReturn the metamodel entity types.- Specified by:
- getEntitiesin interface- Metamodel
- Returns:
- the metamodel entity types
 
- 
getManagedTypesDescription copied from interface:MetamodelReturn the metamodel managed types.- Specified by:
- getManagedTypesin interface- Metamodel
- Returns:
- the metamodel managed types
 
- 
getInferredClassesDescription copied from interface:MetamodelGet the set of classes that contain inferred attributes. These classes are handled specially since inferred attributes can be influenced by changes to any other attributes in any other entity.- Specified by:
- getInferredClassesin interface- Metamodel
- Returns:
- The set of classes with inferred attributes.
 
- 
getNamedQueryManagerDescription copied from interface:MetamodelProviderGetsNamedQueryManagerfor this persistence unit.- Specified by:
- getNamedQueryManagerin interface- MetamodelProvider
- Returns:
- NamedQueryManager
 
- 
getResultSetMappingManagerDescription copied from interface:MetamodelProviderGets the SPARQL result set mapping manager (ResultSetMappingManager) for this persistence unit.- Specified by:
- getResultSetMappingManagerin interface- MetamodelProvider
- Returns:
- ResultSetMappingManager
 
- 
getModuleExtractionExtraSignatureDescription copied from interface:MetamodelGets a set of URIs that should be added to module extraction signature.The returned collection is not modifiable. - Specified by:
- getModuleExtractionExtraSignaturein interface- Metamodel
- Returns:
- A set of URIs
 
- 
addUriToModuleExtractionSignatureDescription copied from interface:MetamodelAdds the specified URI to the module extraction signature.Note that a module including the specified URI will be created when a new resource level transaction is started. When that will be is implementation dependent. However it must be guaranteed that all subsequent connections provided by OntoDriver will include the URI in extracted modules. - Specified by:
- addUriToModuleExtractionSignaturein interface- Metamodel
- Parameters:
- uri- The URI to add
 
- 
getMetamodelDescription copied from interface:MetamodelProviderGets the metamodel- Specified by:
- getMetamodelin interface- MetamodelProvider
- Returns:
- Metamodel
 
- 
isEntityTypeDescription copied from interface:MetamodelProviderChecks whether the specified class is an entity type.- Specified by:
- isEntityTypein interface- MetamodelProvider
- Parameters:
- cls- The class to check
- Returns:
- Whether type is managed
 
- 
getReferringTypesGets types which contain an attribute of the specified type.- Parameters:
- cls- Type referred to
- Returns:
- Set of referring types, possibly empty
 
- 
getLazyLoadingProxyGets aLazyLoadingProxytype for the specified class.- Type Parameters:
- X- Type to proxy
- Parameters:
- cls- Class to get lazy loading proxy for, should be an entity class
- Returns:
- Lazy loading proxy class
 
- 
getEntityReferenceProxyGets aEntityReferenceProxytype for the specified class.- Type Parameters:
- X- Type to proxy
- Parameters:
- cls- Class to get reference proxy for, should be an entity class
- Returns:
- Entity proxy class
 
- 
getNamespaceResolverGets namespace resolver containing namespaces detected for this persistence unit.- Returns:
- NamespaceResolver
 
 
-