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.ObjectContextNested classes/interfaces inherited from interface de.grogra.graph.impl.GraphTransaction.Consumer
GraphTransaction.Consumer.Adapter, GraphTransaction.Consumer.MulticasterNested classes/interfaces inherited from interface de.grogra.persistence.Transaction.Consumer
Transaction.Consumer.Adapter, Transaction.Consumer.MulticasterNested classes/interfaces inherited from interface de.grogra.persistence.XAListener
XAListener.WeakDelegate -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEdgeBits(Node source, Node target, int mask) voidbegin()booleancontainsInTree(Object object, boolean asNode) Tests whether an object is contained in the tree of the graph.voidend()voidfireAttributeChanged(Object object, boolean asNode, Attribute a, FieldChain field, int[] indices) protected voidfireEdgeChanged(Object source, Object target, Object edge) voidinsertComponent(PersistenceCapable o, PersistenceField field, int[] indices, Transaction.Reader reader) voidmakePersistent(long id, ManageableType type) voidvoidreadData(PersistenceCapable o, Transaction.Reader reader) voidremoveComponent(PersistenceCapable o, PersistenceField field, int[] indices, Transaction.Reader reader) voidremoveEdgeBits(Node source, Node target, int mask) voidsetEdgeBits(Object edge, int bits) voidsetField(PersistenceCapable o, PersistenceField field, int[] indices, Transaction.Reader reader) voidtransactionApplied(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:
fireAttributeChangedin classGraphState
-
fireEdgeChanged
- Specified by:
fireEdgeChangedin classGraphState
-
containsInTree
Description copied from class:GraphStateTests whether an object is contained in the tree of the graph. The tree is defined byGraph.getTreePattern().- Specified by:
containsInTreein classGraphState- Parameters:
object- the objectasNode-trueifobjectis a node,falseifobjectis an edge- Returns:
trueiff the object is part of the tree
-
setField
public void setField(PersistenceCapable o, PersistenceField field, int[] indices, Transaction.Reader reader) - Specified by:
setFieldin interfaceTransaction.Consumer
-
insertComponent
public void insertComponent(PersistenceCapable o, PersistenceField field, int[] indices, Transaction.Reader reader) - Specified by:
insertComponentin interfaceTransaction.Consumer
-
removeComponent
public void removeComponent(PersistenceCapable o, PersistenceField field, int[] indices, Transaction.Reader reader) - Specified by:
removeComponentin interfaceTransaction.Consumer
-
makePersistent
- Specified by:
makePersistentin interfaceTransaction.Consumer
-
makeTransient
- Specified by:
makeTransientin interfaceTransaction.Consumer
-
readData
- Specified by:
readDatain interfaceTransaction.Consumer
-
begin
public void begin()- Specified by:
beginin interfaceTransaction.Consumer
-
end
public void end()- Specified by:
endin interfaceTransaction.Consumer
-
addEdgeBits
- Specified by:
addEdgeBitsin interfaceGraphTransaction.Consumer
-
removeEdgeBits
- Specified by:
removeEdgeBitsin interfaceGraphTransaction.Consumer
-
transactionApplied
- Specified by:
transactionAppliedin interfaceXAListener
-
createDelegate
- Specified by:
createDelegatein classGraphState
-
setEdgeBits
- Specified by:
setEdgeBitsin classGraphState
-