java.lang.Object
de.grogra.graph.GraphState
de.grogra.graph.impl.State
- All Implemented Interfaces:
GraphTransaction.Consumer
,Transaction.Consumer
,XAListener
public final class State
extends GraphState
implements Transaction.Consumer, GraphTransaction.Consumer, XAListener
-
Nested Class Summary
Nested classes/interfaces inherited from class de.grogra.graph.GraphState
GraphState.ObjectContext
Nested classes/interfaces inherited from interface de.grogra.graph.impl.GraphTransaction.Consumer
GraphTransaction.Consumer.Adapter, GraphTransaction.Consumer.Multicaster
Nested classes/interfaces inherited from interface de.grogra.persistence.Transaction.Consumer
Transaction.Consumer.Adapter, Transaction.Consumer.Multicaster
Nested classes/interfaces inherited from interface de.grogra.persistence.XAListener
XAListener.WeakDelegate
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEdgeBits
(Node source, Node target, int mask) void
begin()
boolean
containsInTree
(Object object, boolean asNode) Tests whether an object is contained in the tree of the graph.void
end()
void
fireAttributeChanged
(Object object, boolean asNode, Attribute a, FieldChain field, int[] indices) protected void
fireEdgeChanged
(Object source, Object target, Object edge) void
insertComponent
(PersistenceCapable o, PersistenceField field, int[] indices, Transaction.Reader reader) void
makePersistent
(long id, ManageableType type) void
void
readData
(PersistenceCapable o, Transaction.Reader reader) void
removeComponent
(PersistenceCapable o, PersistenceField field, int[] indices, Transaction.Reader reader) void
removeEdgeBits
(Node source, Node target, int mask) void
setEdgeBits
(Object edge, int bits) void
setField
(PersistenceCapable o, PersistenceField field, int[] indices, Transaction.Reader reader) void
transactionApplied
(Transaction.Data xa, boolean rollback) Methods inherited from class de.grogra.graph.GraphState
allocatePropertyId, beginInstancing, checkBoolean, checkByte, checkChar, checkDouble, checkFloat, checkInt, checkLong, checkObject, checkShort, createObjectState, current, deinstantiate, dispose, endInstancing, finalize, forContext, get, getBoolean, getBooleanDefault, getByte, getByteDefault, getChar, getCharDefault, getContext, getDouble, getDoubleDefault, getFloat, getFloatDefault, getGraph, getInstancingPath, getInstancingPathIndex, getInt, getIntDefault, getLong, getLongDefault, getObject, getObject, getObjectContext, getObjectDefault, getShort, getShortDefault, getUserProperty, initialize, instantiate, instantiateEdge, moveToInstance, moveToNextInstance, moveToPreviousInstance, setInstanceAttribute, setObjectContext, setObjectContext, setUserProperty
-
Method Details
-
getActiveTransaction
-
fireAttributeChanged
public void fireAttributeChanged(Object object, boolean asNode, Attribute a, FieldChain field, int[] indices) - Specified by:
fireAttributeChanged
in classGraphState
-
fireEdgeChanged
- Specified by:
fireEdgeChanged
in classGraphState
-
containsInTree
Description copied from class:GraphState
Tests whether an object is contained in the tree of the graph. The tree is defined byGraph.getTreePattern()
.- Specified by:
containsInTree
in classGraphState
- Parameters:
object
- the objectasNode
-true
ifobject
is a node,false
ifobject
is an edge- Returns:
true
iff the object is part of the tree
-
setField
public void setField(PersistenceCapable o, PersistenceField field, int[] indices, Transaction.Reader reader) - Specified by:
setField
in interfaceTransaction.Consumer
-
insertComponent
public void insertComponent(PersistenceCapable o, PersistenceField field, int[] indices, Transaction.Reader reader) - Specified by:
insertComponent
in interfaceTransaction.Consumer
-
removeComponent
public void removeComponent(PersistenceCapable o, PersistenceField field, int[] indices, Transaction.Reader reader) - Specified by:
removeComponent
in interfaceTransaction.Consumer
-
makePersistent
- Specified by:
makePersistent
in interfaceTransaction.Consumer
-
makeTransient
- Specified by:
makeTransient
in interfaceTransaction.Consumer
-
readData
- Specified by:
readData
in interfaceTransaction.Consumer
-
begin
public void begin()- Specified by:
begin
in interfaceTransaction.Consumer
-
end
public void end()- Specified by:
end
in interfaceTransaction.Consumer
-
addEdgeBits
- Specified by:
addEdgeBits
in interfaceGraphTransaction.Consumer
-
removeEdgeBits
- Specified by:
removeEdgeBits
in interfaceGraphTransaction.Consumer
-
transactionApplied
- Specified by:
transactionApplied
in interfaceXAListener
-
createDelegate
- Specified by:
createDelegate
in classGraphState
-
setEdgeBits
- Specified by:
setEdgeBits
in classGraphState
-