Class NullQueryMetadataResolver
java.lang.Object
org.mule.runtime.extension.api.metadata.NullQueryMetadataResolver
- All Implemented Interfaces:
org.mule.runtime.api.metadata.resolving.NamedTypeResolver,org.mule.runtime.api.metadata.resolving.OutputTypeResolver<String>,org.mule.runtime.api.metadata.resolving.QueryEntityResolver
public final class NullQueryMetadataResolver
extends Object
implements org.mule.runtime.api.metadata.resolving.OutputTypeResolver<String>, org.mule.runtime.api.metadata.resolving.QueryEntityResolver
Null implementation of
OutputTypeResolver used to represent the absence of output resolver in a Query annotated
operation.- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet<org.mule.runtime.api.metadata.MetadataKey>getEntityKeys(org.mule.runtime.api.metadata.MetadataContext context) org.mule.metadata.api.model.MetadataTypegetEntityMetadata(org.mule.runtime.api.metadata.MetadataContext context, String key) org.mule.metadata.api.model.MetadataTypegetOutputType(org.mule.runtime.api.metadata.MetadataContext context, String key) Null implementation ofOutputTypeResolverforQueryoperations, used when no implementation is provided by the connector developer.
-
Constructor Details
-
NullQueryMetadataResolver
public NullQueryMetadataResolver()
-
-
Method Details
-
getCategoryName
- Specified by:
getCategoryNamein interfaceorg.mule.runtime.api.metadata.resolving.NamedTypeResolver
-
getResolverName
- Specified by:
getResolverNamein interfaceorg.mule.runtime.api.metadata.resolving.NamedTypeResolver- Specified by:
getResolverNamein interfaceorg.mule.runtime.api.metadata.resolving.OutputTypeResolver<String>- Specified by:
getResolverNamein interfaceorg.mule.runtime.api.metadata.resolving.QueryEntityResolver
-
getOutputType
public org.mule.metadata.api.model.MetadataType getOutputType(org.mule.runtime.api.metadata.MetadataContext context, String key) throws org.mule.runtime.api.metadata.MetadataResolvingException, org.mule.runtime.api.connection.ConnectionException Null implementation ofOutputTypeResolverforQueryoperations, used when no implementation is provided by the connector developer. Represents the absence of a customOutputTypeResolver, returning aVoidTypeinstead of resolving a dynamicMetadataTypefrom a nativeQueryfor the component's output.- Specified by:
getOutputTypein interfaceorg.mule.runtime.api.metadata.resolving.OutputTypeResolver<String>- Parameters:
context-MetadataContextof the MetaData resolutionkey-MetadataKeyof string type, representing the native query created by the user.- Returns:
- a
VoidTypeinstance. - Throws:
org.mule.runtime.api.metadata.MetadataResolvingExceptionorg.mule.runtime.api.connection.ConnectionException
-
getEntityKeys
public Set<org.mule.runtime.api.metadata.MetadataKey> getEntityKeys(org.mule.runtime.api.metadata.MetadataContext context) throws org.mule.runtime.api.metadata.MetadataResolvingException, org.mule.runtime.api.connection.ConnectionException - Specified by:
getEntityKeysin interfaceorg.mule.runtime.api.metadata.resolving.QueryEntityResolver- Throws:
org.mule.runtime.api.metadata.MetadataResolvingExceptionorg.mule.runtime.api.connection.ConnectionException
-
getEntityMetadata
public org.mule.metadata.api.model.MetadataType getEntityMetadata(org.mule.runtime.api.metadata.MetadataContext context, String key) throws org.mule.runtime.api.metadata.MetadataResolvingException, org.mule.runtime.api.connection.ConnectionException - Specified by:
getEntityMetadatain interfaceorg.mule.runtime.api.metadata.resolving.QueryEntityResolver- Throws:
org.mule.runtime.api.metadata.MetadataResolvingExceptionorg.mule.runtime.api.connection.ConnectionException
-