Class BasicSourceCapabilities
- java.lang.Object
-
- org.teiid.query.optimizer.capabilities.BasicSourceCapabilities
-
- All Implemented Interfaces:
Serializable
,SourceCapabilities
public class BasicSourceCapabilities extends Object implements SourceCapabilities, Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.teiid.query.optimizer.capabilities.SourceCapabilities
SourceCapabilities.Capability
-
-
Constructor Summary
Constructors Constructor Description BasicSourceCapabilities()
Construct a basic capabilities object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getSourceProperty(SourceCapabilities.Capability propertyName)
This method returns an Object corresponding to the Source Propertyvoid
setCapabilitySupport(SourceCapabilities.Capability capability, boolean supports)
void
setFunctionSupport(String function, boolean supports)
void
setSourceProperty(SourceCapabilities.Capability propertyName, Object value)
This method adds the Source Property to the Property Mapvoid
setTranslator(ExecutionFactory<?,?> translator)
boolean
supportsCapability(SourceCapabilities.Capability capability)
Returns true if the capability is supported.boolean
supportsConvert(int sourceType, int targetType)
boolean
supportsFormatLiteral(String literal, ExecutionFactory.Format format)
boolean
supportsFunction(String functionName)
This method can be used to check whether a particular function is supported by this connector.String
toString()
-
-
-
Method Detail
-
supportsCapability
public boolean supportsCapability(SourceCapabilities.Capability capability)
Description copied from interface:SourceCapabilities
Returns true if the capability is supported. The capability constants are all defined in this interface with the meaning of supporting that capability.- Specified by:
supportsCapability
in interfaceSourceCapabilities
- Parameters:
capability
- Name of capability- Returns:
- True if supported, false otherwise
-
supportsFunction
public boolean supportsFunction(String functionName)
Description copied from interface:SourceCapabilities
This method can be used to check whether a particular function is supported by this connector. This method should only be used if the capability FUNCTION is true.- Specified by:
supportsFunction
in interfaceSourceCapabilities
- Parameters:
functionName
- The function that may be supported- Returns:
- True if function is supported.
-
setCapabilitySupport
public void setCapabilitySupport(SourceCapabilities.Capability capability, boolean supports)
-
setFunctionSupport
public void setFunctionSupport(String function, boolean supports)
-
setSourceProperty
public void setSourceProperty(SourceCapabilities.Capability propertyName, Object value)
This method adds the Source Property to the Property Map- Parameters:
propertyName
-value
-- Since:
- 4.4
-
getSourceProperty
public Object getSourceProperty(SourceCapabilities.Capability propertyName)
Description copied from interface:SourceCapabilities
This method returns an Object corresponding to the Source Property- Specified by:
getSourceProperty
in interfaceSourceCapabilities
-
supportsConvert
public boolean supportsConvert(int sourceType, int targetType)
- Specified by:
supportsConvert
in interfaceSourceCapabilities
- Returns:
-
setTranslator
public void setTranslator(ExecutionFactory<?,?> translator)
-
supportsFormatLiteral
public boolean supportsFormatLiteral(String literal, ExecutionFactory.Format format)
- Specified by:
supportsFormatLiteral
in interfaceSourceCapabilities
-
-