public class OrientInstanceService extends AbstractInstanceService
InstanceService
implementation based on OrientDB. This must be a
singleton as the references to the databases may only exist once.ACTION_READ_SOURCEDATA
Modifier and Type | Method and Description |
---|---|
void |
addSourceInstances(InstanceCollection sourceInstances)
Add instances to the
DataSet.SOURCE data set |
void |
clearInstances()
This will remove all instances from the service.
|
protected void |
clearTransformedInstances()
Clear the transformed instances
|
void |
dispose()
Delete the databases.
|
protected void |
doRetransform()
Retransform all instances.
|
static OrientInstanceService |
getExistingInstance()
Get the existing service instance.
|
Instance |
getInstance(InstanceReference reference)
Get the instance referenced by the given reference.
|
static OrientInstanceService |
getInstance(SchemaService schemaService,
ProjectService projectService,
AlignmentService alignmentService)
Get the service instance
|
InstanceCollection |
getInstances(DataSet dataset)
Get the instances from the given data set
|
Set<TypeDefinition> |
getInstanceTypes(DataSet dataset)
Get the types for which instances are present in the given data set
|
InstanceReference |
getReference(Instance instance)
Get a reference to an instance that can be used to retrieve the given
instance using
InstanceResolver.getInstance(InstanceReference) . |
protected boolean |
performTransformation()
Perform the transformation
|
addListener, getAlignmentService, getProjectService, getTransformationService, isTransformationEnabled, notifyDatasetAboutToChange, notifyDatasetChanged, notifyTransformationToggled, removeListener, retransform, setTransformationEnabled
public static final OrientInstanceService getInstance(SchemaService schemaService, ProjectService projectService, AlignmentService alignmentService)
schemaService
- the schema serviceprojectService
- the project servicealignmentService
- the alignment servicepublic static OrientInstanceService getExistingInstance()
null
if none was
createdpublic InstanceCollection getInstances(DataSet dataset)
InstanceService
dataset
- the data setInstanceService.getInstances(DataSet)
public Set<TypeDefinition> getInstanceTypes(DataSet dataset)
InstanceService
dataset
- the data setInstanceService.getInstanceTypes(DataSet)
public void addSourceInstances(InstanceCollection sourceInstances)
InstanceService
DataSet.SOURCE
data setsourceInstances
- the instances to addInstanceService.addSourceInstances(InstanceCollection)
public void clearInstances()
InstanceService
InstanceService.clearInstances()
public void dispose()
public InstanceReference getReference(Instance instance)
InstanceResolver
InstanceResolver.getInstance(InstanceReference)
.instance
- the instance, must have originated from this resolverInstanceResolver.getReference(Instance)
public Instance getInstance(InstanceReference reference)
InstanceResolver
reference
- the instance referencenull
if it does not exist
or the reference is invalidInstanceResolver.getInstance(InstanceReference)
protected void doRetransform()
AbstractInstanceService
doRetransform
in class AbstractInstanceService
AbstractInstanceService.doRetransform()
protected boolean performTransformation()
protected void clearTransformedInstances()
AbstractInstanceService
clearTransformedInstances
in class AbstractInstanceService
AbstractInstanceService.clearTransformedInstances()
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a