public interface QueryEntityResolver extends NamedTypeResolver
MetadataKey
s when building a DSQL query
and the dynamic MetadataType
resolution each of those entities.Modifier and Type | Method and Description |
---|---|
Set<MetadataKey> |
getEntityKeys(MetadataContext context)
Resolves the
Set of entities that can be queried in the DSQL operation that uses this resolver,
representing them as a Set of MetadataKey . |
MetadataType |
getEntityMetadata(MetadataContext context,
String key)
Given a
String representing the id of one of the entities, resolves the corresponding entity MetadataType , |
default String |
getResolverName()
This is the name of the TypeResolver.
|
getCategoryName
default String getResolverName()
InputTypeResolver
and
OutputTypeResolver
which are used together.getResolverName
in interface NamedTypeResolver
Set<MetadataKey> getEntityKeys(MetadataContext context) throws MetadataResolvingException, ConnectionException
Set
of entities that can be queried in the DSQL operation that uses this
resolver,
representing them as a Set
of MetadataKey
.context
- MetadataContext
of the Metadata resolutionMetadataKey
representing all the available entities that can be queried.MetadataResolvingException
- if an error occurs during the MetadataKey
building. See
FailureCode
for possible MetadataResolvingException
reasonsConnectionException
- if an error occurs when using the connection provided by the MetadataContext
MetadataType getEntityMetadata(MetadataContext context, String key) throws MetadataResolvingException, ConnectionException
String
representing the id of one of the entities, resolves the corresponding entity MetadataType
,context
- MetadataContext
of the Metadata resolutionkey
- a String
representing the type which's structure has to be resolvedMetadataType
from the given MetadataResolvingException
- if an error occurs during the MetadataType
building. See
FailureCode
for possible MetadataResolvingException
reasonsConnectionException
- if an error occurs when using the connection provided by the MetadataContext
Copyright © 2018. All rights reserved.