org.neo4j.kernel.impl.core
Class LockReleaser
java.lang.Object
org.neo4j.kernel.impl.core.LockReleaser
public class LockReleaser
- extends Object
Manages object version diffs and locks for each transaction.
|
Method Summary |
void |
addLockToTransaction(Object resource,
LockType type)
Invoking this method with no transaction running will cause the lock to
be released right away. |
void |
addPropertyIndex(PropertyIndexData index)
|
void |
addRelationshipType(RelationshipTypeData type)
|
void |
clearCache()
|
void |
commit()
|
void |
commitCows()
|
void |
deletePrimitive(org.neo4j.kernel.impl.core.Primitive primitive)
|
void |
dumpLocks()
|
ArrayMap<Integer,PropertyData> |
getCowPropertyAddMap(org.neo4j.kernel.impl.core.Primitive primitive)
|
ArrayMap<Integer,PropertyData> |
getCowPropertyAddMap(org.neo4j.kernel.impl.core.Primitive primitive,
boolean create)
|
ArrayMap<Integer,PropertyData> |
getCowPropertyRemoveMap(org.neo4j.kernel.impl.core.Primitive primitive)
|
ArrayMap<Integer,PropertyData> |
getCowPropertyRemoveMap(org.neo4j.kernel.impl.core.Primitive primitive,
boolean create)
|
ArrayMap<String,RelIdArray> |
getCowRelationshipAddMap(org.neo4j.kernel.impl.core.NodeImpl node)
|
RelIdArray |
getCowRelationshipAddMap(org.neo4j.kernel.impl.core.NodeImpl node,
String type)
|
RelIdArray |
getCowRelationshipAddMap(org.neo4j.kernel.impl.core.NodeImpl node,
String type,
boolean create)
|
Collection<Long> |
getCowRelationshipRemoveMap(org.neo4j.kernel.impl.core.NodeImpl node,
String type)
|
Collection<Long> |
getCowRelationshipRemoveMap(org.neo4j.kernel.impl.core.NodeImpl node,
String type,
boolean create)
|
TransactionData |
getTransactionData()
|
boolean |
hasLocks(Transaction tx)
|
void |
removeNodeFromCache(long nodeId)
|
void |
removeRelationshipFromCache(long id)
|
void |
removeRelationshipTypeFromCache(int id)
|
void |
rollback()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LockReleaser
public LockReleaser(LockManager lockManager,
TransactionManager transactionManager)
addLockToTransaction
public void addLockToTransaction(Object resource,
LockType type)
throws NotInTransactionException
- Invoking this method with no transaction running will cause the lock to
be released right away.
- Parameters:
resource - the resource on which the lock is takentype - type of lock (READ or WRITE)
- Throws:
NotInTransactionException
getCowRelationshipRemoveMap
public Collection<Long> getCowRelationshipRemoveMap(org.neo4j.kernel.impl.core.NodeImpl node,
String type)
getCowRelationshipRemoveMap
public Collection<Long> getCowRelationshipRemoveMap(org.neo4j.kernel.impl.core.NodeImpl node,
String type,
boolean create)
getCowRelationshipAddMap
public ArrayMap<String,RelIdArray> getCowRelationshipAddMap(org.neo4j.kernel.impl.core.NodeImpl node)
getCowRelationshipAddMap
public RelIdArray getCowRelationshipAddMap(org.neo4j.kernel.impl.core.NodeImpl node,
String type)
getCowRelationshipAddMap
public RelIdArray getCowRelationshipAddMap(org.neo4j.kernel.impl.core.NodeImpl node,
String type,
boolean create)
commit
public void commit()
commitCows
public void commitCows()
rollback
public void rollback()
hasLocks
public boolean hasLocks(Transaction tx)
dumpLocks
public void dumpLocks()
getCowPropertyRemoveMap
public ArrayMap<Integer,PropertyData> getCowPropertyRemoveMap(org.neo4j.kernel.impl.core.Primitive primitive)
getCowPropertyAddMap
public ArrayMap<Integer,PropertyData> getCowPropertyAddMap(org.neo4j.kernel.impl.core.Primitive primitive)
getCowPropertyAddMap
public ArrayMap<Integer,PropertyData> getCowPropertyAddMap(org.neo4j.kernel.impl.core.Primitive primitive,
boolean create)
getCowPropertyRemoveMap
public ArrayMap<Integer,PropertyData> getCowPropertyRemoveMap(org.neo4j.kernel.impl.core.Primitive primitive,
boolean create)
deletePrimitive
public void deletePrimitive(org.neo4j.kernel.impl.core.Primitive primitive)
removeNodeFromCache
public void removeNodeFromCache(long nodeId)
addRelationshipType
public void addRelationshipType(RelationshipTypeData type)
addPropertyIndex
public void addPropertyIndex(PropertyIndexData index)
removeRelationshipFromCache
public void removeRelationshipFromCache(long id)
removeRelationshipTypeFromCache
public void removeRelationshipTypeFromCache(int id)
clearCache
public void clearCache()
getTransactionData
public TransactionData getTransactionData()
Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.