public class DefaultMetadataResolver extends Object implements MetadataResolver, Serializable
| Constructor and Description |
|---|
DefaultMetadataResolver(Metadata metadata)
Constructs the metadata resolver with the given metadata implementation
|
| Modifier and Type | Method and Description |
|---|---|
CompositeMetadata |
getCompositeMetadata()
Returns the composite metadata for this operation
|
EntityMetadata |
getEntityMetadata(String entityName)
Returns the version of the entity metadata relevant in the current operation
|
Set<String> |
getMetadataRoles()
Return all roles referenced in metadata
|
CompositeMetadata |
getTopLevelEntityMetadata()
Returns the top level entity metadata
|
String |
getTopLevelEntityName()
Returns the top level entity name
|
String |
getTopLevelEntityVersion()
Returns the top level entity version
|
void |
initialize(String entityName,
String entityVersion,
QueryExpression query,
Projection projection)
This method builds the composite metadata for the given top
level entity name and entity version, for the given query and projections
|
public DefaultMetadataResolver(Metadata metadata)
public void initialize(String entityName, String entityVersion, QueryExpression query, Projection projection)
public String getTopLevelEntityName()
public String getTopLevelEntityVersion()
public CompositeMetadata getTopLevelEntityMetadata()
public EntityMetadata getEntityMetadata(String entityName)
getEntityMetadata in interface MetadataResolverpublic CompositeMetadata getCompositeMetadata()
Copyright © 2015. All rights reserved.