|
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.common.instance.orient.storage.OrientInstanceReference
@Immutable public class OrientInstanceReference
Instance reference for an instance stored in a LocalOrientDB
.
Constructor Summary | |
---|---|
OrientInstanceReference(com.orientechnologies.orient.core.id.ORID id,
DataSet dataSet,
TypeDefinition typeDefinition)
Create a reference to an instance |
Method Summary | |
---|---|
static InstanceReference |
createReference(Instance instance)
Create a reference for an instance |
boolean |
equals(Object obj)
|
DataSet |
getDataSet()
Get the data set the instance is associated to. |
com.orientechnologies.orient.core.id.ORID |
getId()
|
TypeDefinition |
getTypeDefinition()
|
int |
hashCode()
|
Instance |
load(LocalOrientDB lodb)
Load the instance specified by the reference from the given database. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OrientInstanceReference(com.orientechnologies.orient.core.id.ORID id, DataSet dataSet, TypeDefinition typeDefinition)
id
- the record IDdataSet
- the data settypeDefinition
- the associated type definitionMethod Detail |
---|
public com.orientechnologies.orient.core.id.ORID getId()
public DataSet getDataSet()
InstanceReference
getDataSet
in interface InstanceReference
null
if not setpublic TypeDefinition getTypeDefinition()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public static InstanceReference createReference(Instance instance)
instance
- the instance, which must be an OInstance
IllegalArgumentException
- if the instance is no OInstance
public Instance load(LocalOrientDB lodb)
lodb
- the database
null
if no instance matching the
reference is present
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |