|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.ui.service.instance.internal.AbstractInstanceService
eu.esdihumboldt.hale.ui.service.instance.internal.orient.OrientInstanceService
public class OrientInstanceService
InstanceService
implementation based on OrientDB. This must be a
singleton as the references to the databases may only exist once.
Field Summary |
---|
Fields inherited from interface eu.esdihumboldt.hale.ui.service.instance.InstanceService |
---|
ACTION_READ_SOURCEDATA |
Method Summary | |
---|---|
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 |
Methods inherited from class eu.esdihumboldt.hale.ui.service.instance.internal.AbstractInstanceService |
---|
addListener, getAlignmentService, getProjectService, getTransformationService, isTransformationEnabled, notifyDatasetAboutToChange, notifyDatasetChanged, notifyTransformationToggled, removeListener, retransform, setTransformationEnabled |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final OrientInstanceService getInstance(SchemaService schemaService, ProjectService projectService, AlignmentService alignmentService)
schemaService
- the schema serviceprojectService
- the project servicealignmentService
- the alignment service
public static OrientInstanceService getExistingInstance()
null
if none was
createdpublic InstanceCollection getInstances(DataSet dataset)
InstanceService
dataset
- the data set
InstanceService.getInstances(DataSet)
public Set<TypeDefinition> getInstanceTypes(DataSet dataset)
InstanceService
dataset
- the data set
InstanceService.getInstanceTypes(DataSet)
public void addSourceInstances(InstanceCollection sourceInstances)
InstanceService
DataSet.SOURCE
data set
sourceInstances
- 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 resolver
InstanceResolver.getReference(Instance)
public Instance getInstance(InstanceReference reference)
InstanceResolver
reference
- the instance reference
null
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()
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |