public class ChronoSphereTransactionImpl extends java.lang.Object implements ChronoSphereTransactionInternal
| Constructor and Description |
|---|
ChronoSphereTransactionImpl(ChronoSphereInternal owningSphere,
org.chronos.chronograph.api.structure.ChronoGraph txGraph) |
| Modifier and Type | Method and Description |
|---|---|
void |
attach(org.eclipse.emf.ecore.EObject eObject) |
void |
attach(java.lang.Iterable<? extends org.eclipse.emf.ecore.EObject> eObjects) |
void |
attach(java.util.Iterator<? extends org.eclipse.emf.ecore.EObject> eObjects) |
void |
batchInsert(java.util.Iterator<org.eclipse.emf.ecore.EObject> model) |
void |
close() |
void |
commit() |
void |
commit(java.lang.Object commitMetadata) |
void |
commitIncremental() |
org.eclipse.emf.ecore.EObject |
createAndAttach(org.eclipse.emf.ecore.EClass eClass) |
org.eclipse.emf.ecore.EObject |
createAndAttach(org.eclipse.emf.ecore.EClass eClass,
java.lang.String eObjectID) |
void |
delete(org.eclipse.emf.ecore.EObject eObject) |
void |
delete(java.util.Iterator<? extends org.eclipse.emf.ecore.EObject> eObjects,
boolean cascadeDeletionToEContents) |
QueryStepBuilderStarter |
find() |
SphereBranch |
getBranch() |
org.eclipse.emf.ecore.EAttribute |
getEAttributeByQualifiedName(java.lang.String qualifiedName) |
org.eclipse.emf.ecore.EClass |
getEClassByQualifiedName(java.lang.String qualifiedName) |
org.eclipse.emf.ecore.EClass |
getEClassBySimpleName(java.lang.String simpleName) |
org.eclipse.emf.ecore.EClassifier |
getEClassifierByQualifiedName(java.lang.String qualifiedName) |
org.eclipse.emf.ecore.EClassifier |
getEClassifierBySimpleName(java.lang.String simpleName) |
java.util.Map<java.lang.String,ChronoEObject> |
getEObjectById(java.lang.Iterable<java.lang.String> eObjectIDs)
Retrieves the
ChronoEObjects for the given unique identifiers. |
java.util.Map<java.lang.String,ChronoEObject> |
getEObjectById(java.util.Iterator<java.lang.String> eObjectIDs)
Retrieves the
ChronoEObjects for the given unique identifiers. |
ChronoEObject |
getEObjectById(java.lang.String eObjectID)
Retrieves a single
ChronoEObject by its unique identifier. |
java.util.Iterator<java.lang.Long> |
getEObjectHistory(org.eclipse.emf.ecore.EObject eObject)
Returns an iterator over the change timestamps in the history of the given
EObject. |
java.util.Iterator<org.apache.commons.lang3.tuple.Pair<java.lang.Long,java.lang.String>> |
getEObjectModificationsBetween(long timestampLowerBound,
long timestampUpperBound)
Returns an iterator over all EObject modifications that have taken place in the given time range.
|
org.eclipse.emf.ecore.EPackage |
getEPackageByNsURI(java.lang.String namespaceURI) |
org.eclipse.emf.ecore.EPackage |
getEPackageByQualifiedName(java.lang.String qualifiedName) |
org.eclipse.emf.ecore.EPackage |
getEPackageBySimpleName(java.lang.String simpleName) |
ChronoEPackageRegistry |
getEPackageRegistry() |
java.util.Set<org.eclipse.emf.ecore.EPackage> |
getEPackages() |
org.eclipse.emf.ecore.EReference |
getEReferenceByQualifiedName(java.lang.String qualifiedName) |
org.eclipse.emf.ecore.EStructuralFeature |
getFeatureByQualifiedName(java.lang.String qualifiedName) |
org.chronos.chronograph.api.structure.ChronoGraph |
getGraph() |
ChronoGraphEStore |
getGraphEStore() |
ChronoSphereInternal |
getOwningSphere() |
long |
getTimestamp() |
boolean |
isClosed() |
boolean |
isOpen() |
void |
reloadEPackageRegistryFromGraph() |
void |
rollback() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelete, delete, delete, deletepublic ChronoSphereTransactionImpl(ChronoSphereInternal owningSphere, org.chronos.chronograph.api.structure.ChronoGraph txGraph)
public long getTimestamp()
getTimestamp in interface ChronoSphereTransactionpublic SphereBranch getBranch()
getBranch in interface ChronoSphereTransactionpublic org.eclipse.emf.ecore.EObject createAndAttach(org.eclipse.emf.ecore.EClass eClass)
createAndAttach in interface ChronoSphereTransactionpublic org.eclipse.emf.ecore.EObject createAndAttach(org.eclipse.emf.ecore.EClass eClass,
java.lang.String eObjectID)
createAndAttach in interface ChronoSphereTransactionInternalpublic void attach(org.eclipse.emf.ecore.EObject eObject)
attach in interface ChronoSphereTransactionpublic void attach(java.lang.Iterable<? extends org.eclipse.emf.ecore.EObject> eObjects)
attach in interface ChronoSphereTransactionpublic void attach(java.util.Iterator<? extends org.eclipse.emf.ecore.EObject> eObjects)
attach in interface ChronoSphereTransactionpublic void delete(org.eclipse.emf.ecore.EObject eObject)
delete in interface ChronoSphereTransactionpublic void delete(java.util.Iterator<? extends org.eclipse.emf.ecore.EObject> eObjects,
boolean cascadeDeletionToEContents)
delete in interface ChronoSphereTransactionpublic org.eclipse.emf.ecore.EPackage getEPackageByNsURI(java.lang.String namespaceURI)
getEPackageByNsURI in interface ChronoSphereTransactionpublic java.util.Set<org.eclipse.emf.ecore.EPackage> getEPackages()
getEPackages in interface ChronoSphereTransactionpublic org.eclipse.emf.ecore.EPackage getEPackageByQualifiedName(java.lang.String qualifiedName)
getEPackageByQualifiedName in interface ChronoSphereTransactionpublic org.eclipse.emf.ecore.EClassifier getEClassifierByQualifiedName(java.lang.String qualifiedName)
getEClassifierByQualifiedName in interface ChronoSphereTransactionpublic org.eclipse.emf.ecore.EClass getEClassByQualifiedName(java.lang.String qualifiedName)
getEClassByQualifiedName in interface ChronoSphereTransactionpublic org.eclipse.emf.ecore.EStructuralFeature getFeatureByQualifiedName(java.lang.String qualifiedName)
getFeatureByQualifiedName in interface ChronoSphereTransactionpublic org.eclipse.emf.ecore.EAttribute getEAttributeByQualifiedName(java.lang.String qualifiedName)
getEAttributeByQualifiedName in interface ChronoSphereTransactionpublic org.eclipse.emf.ecore.EReference getEReferenceByQualifiedName(java.lang.String qualifiedName)
getEReferenceByQualifiedName in interface ChronoSphereTransactionpublic org.eclipse.emf.ecore.EPackage getEPackageBySimpleName(java.lang.String simpleName)
getEPackageBySimpleName in interface ChronoSphereTransactionpublic org.eclipse.emf.ecore.EClassifier getEClassifierBySimpleName(java.lang.String simpleName)
getEClassifierBySimpleName in interface ChronoSphereTransactionpublic org.eclipse.emf.ecore.EClass getEClassBySimpleName(java.lang.String simpleName)
getEClassBySimpleName in interface ChronoSphereTransactionpublic ChronoEObject getEObjectById(java.lang.String eObjectID)
ChronoSphereTransactionChronoEObject by its unique identifier.getEObjectById in interface ChronoSphereTransactioneObjectID - The ID of the EObject to retrieve. Must not be null.null if there is no EObject for the given ID.public java.util.Map<java.lang.String,ChronoEObject> getEObjectById(java.lang.Iterable<java.lang.String> eObjectIDs)
ChronoSphereTransactionChronoEObjects for the given unique identifiers.getEObjectById in interface ChronoSphereTransactioneObjectIDs - The IDs of the EObjects to retrieve. May be empty, but must not be null.null. Is guaranteed
to include every given ID as a key. The IDs that did not have a matching EObject have null
values assigned in the map.public java.util.Map<java.lang.String,ChronoEObject> getEObjectById(java.util.Iterator<java.lang.String> eObjectIDs)
ChronoSphereTransactionChronoEObjects for the given unique identifiers.getEObjectById in interface ChronoSphereTransactioneObjectIDs - The IDs of the EObjects to retrieve. May be empty, but must not be null.null. Is guaranteed
to include every given ID as a key. The IDs that did not have a matching EObject have null
values assigned in the map.public QueryStepBuilderStarter find()
find in interface ChronoSphereTransactionpublic java.util.Iterator<java.lang.Long> getEObjectHistory(org.eclipse.emf.ecore.EObject eObject)
ChronoSphereTransactionEObject.getEObjectHistory in interface ChronoSphereTransactioneObject - The eObject in question. Must not be null.public java.util.Iterator<org.apache.commons.lang3.tuple.Pair<java.lang.Long,java.lang.String>> getEObjectModificationsBetween(long timestampLowerBound,
long timestampUpperBound)
ChronoSphereTransactiongetEObjectModificationsBetween in interface ChronoSphereTransactiontimestampLowerBound - The lower bound of the time range to search in. Must not be negative. Must be less than or equal to
timestampUpperBound. Must be less than or equal to the transaction timestamp.timestampUpperBound - The upper bound of the time range to search in. Must not be negative. Must be greater than or equal to
timestampLowerBound. Must be less than or equal to the transaction timestamp.null.public void commit()
commit in interface ChronoSphereTransactionpublic void commit(java.lang.Object commitMetadata)
commit in interface ChronoSphereTransactionpublic void commitIncremental()
commitIncremental in interface ChronoSphereTransactionpublic void rollback()
rollback in interface ChronoSphereTransactionpublic boolean isClosed()
isClosed in interface ChronoSphereTransactionpublic boolean isOpen()
isOpen in interface ChronoSphereTransactionpublic void close()
close in interface java.lang.AutoCloseableclose in interface ChronoSphereTransactionpublic ChronoSphereInternal getOwningSphere()
getOwningSphere in interface ChronoSphereTransactionInternalpublic org.chronos.chronograph.api.structure.ChronoGraph getGraph()
getGraph in interface ChronoSphereTransactionInternalpublic ChronoGraphEStore getGraphEStore()
getGraphEStore in interface ChronoSphereTransactionInternalpublic ChronoEPackageRegistry getEPackageRegistry()
getEPackageRegistry in interface ChronoSphereTransactionInternalpublic void batchInsert(java.util.Iterator<org.eclipse.emf.ecore.EObject> model)
batchInsert in interface ChronoSphereTransactionInternalpublic void reloadEPackageRegistryFromGraph()
reloadEPackageRegistryFromGraph in interface ChronoSphereTransactionInternal