Search in sources :

Example 1 with OrientInstanceReference

use of eu.esdihumboldt.hale.common.instance.orient.storage.OrientInstanceReference in project hale by halestudio.

the class OrientInstanceService method getInstance.

/**
 * @see InstanceService#getInstance(InstanceReference)
 */
@Override
public Instance getInstance(InstanceReference reference) {
    OrientInstanceReference ref = (OrientInstanceReference) reference;
    LocalOrientDB lodb = (ref.getDataSet().equals(DataSet.SOURCE)) ? (source) : (transformed);
    return ref.load(lodb, this);
}
Also used : OrientInstanceReference(eu.esdihumboldt.hale.common.instance.orient.storage.OrientInstanceReference) LocalOrientDB(eu.esdihumboldt.hale.common.instance.orient.storage.LocalOrientDB)

Aggregations

LocalOrientDB (eu.esdihumboldt.hale.common.instance.orient.storage.LocalOrientDB)1 OrientInstanceReference (eu.esdihumboldt.hale.common.instance.orient.storage.OrientInstanceReference)1