Q - R - public abstract class DataProvider<Q,R>
extends java.lang.Object
implements com.ibm.ia.extension.spi.DataProviderService
The abstract class for data provider implementations.
| Modifier and Type | Field and Description |
|---|---|
protected com.ibm.ia.common.spi.IModelFactory |
modelFactory |
| Modifier and Type | Method and Description |
|---|---|
<T extends com.ibm.ia.model.Entity> |
createRelationship(java.lang.Class<T> entity,
java.lang.String key)
Creates Relationship instance.
|
<T extends com.ibm.ia.model.Entity> |
createRelationship(T t)
Creates Relationship instance.
|
org.osgi.framework.Bundle |
getBundle() |
<T> T |
getConceptFactory(java.lang.Class<T> conceptFactoryClass)
Returns an instance of the concept factory.
|
ModelSerializer |
getModelSerializer()
Returns the model serializer instance.
|
SolutionDescriptor |
getSolutionDescriptor()
Get solution-specific information.
|
java.util.Map<java.lang.String,java.lang.String> |
getSolutionProperties(java.util.Collection<java.lang.String> propertyNames)
Reads the values of multiple solution properties for the solution to.
|
java.lang.String |
getSolutionProperty(java.lang.String propertyName)
Retrieves the value of a solution property for the solution.
|
java.lang.String |
getSolutionProperty(java.lang.String propertyName,
java.lang.String defaultValue)
Retrieves the value of a solution property for the solution.
|
abstract R |
processRequest(Q request)
Data provider entry point.
|
void |
setModelFactory(com.ibm.ia.common.spi.IModelFactory f) |
public org.osgi.framework.Bundle getBundle()
public abstract R processRequest(Q request) throws ComponentException
Data provider entry point.
ComponentExceptionrequest - the request object.public final java.lang.String getSolutionProperty(java.lang.String propertyName)
java.lang.UnsupportedOperationException - if called outside a valid execution context.propertyName - the name of the property.public final java.lang.String getSolutionProperty(java.lang.String propertyName,
java.lang.String defaultValue)
java.lang.UnsupportedOperationException - if called outside a valid execution context.propertyName - the name of the property.defaultValue - the value to use if the property is undefined.public final java.util.Map<java.lang.String,java.lang.String> getSolutionProperties(java.util.Collection<java.lang.String> propertyNames)
java.lang.UnsupportedOperationException - if called outside a valid execution context.propertyNames - The names of the properties to retrieve.public ModelSerializer getModelSerializer()
Extensionpublic <T> T getConceptFactory(java.lang.Class<T> conceptFactoryClass)
Extensionpublic <T extends com.ibm.ia.model.Entity> com.ibm.ia.model.Relationship<T> createRelationship(java.lang.Class<T> entity,
java.lang.String key)
Extensionentity - type of entity in this relationshipkey - entity Id for this relationshippublic <T extends com.ibm.ia.model.Entity> com.ibm.ia.model.Relationship<T> createRelationship(T t)
Extensiont - entity instance for this relationshippublic void setModelFactory(com.ibm.ia.common.spi.IModelFactory f)
public final SolutionDescriptor getSolutionDescriptor()
© Copyright IBM 2017