Beispiel #1
0
 private bool IsLabelOrRelationshipType(ActiveLock activeLock)
 {
     return((activeLock.ResourceType() == ResourceTypes.LABEL) || (activeLock.ResourceType() == ResourceTypes.RELATIONSHIP_TYPE));
 }
Beispiel #2
0
        public override bool Equals(object o)
        {
            if (this == o)
            {
                return(true);
            }
            if (!(o is ActiveLock))
            {
                return(false);
            }
            ActiveLock that = ( ActiveLock )o;

            return(ResourceIdConflict == that.ResourceId() && Objects.Equals(Mode(), that.Mode()) && Objects.Equals(ResourceTypeConflict, that.ResourceType()));
        }
Beispiel #3
0
 private bool IsBlocked(ActiveLock activeLock, IList <ActiveLock> activeLocks)
 {
     return(Org.Neo4j.Kernel.impl.locking.ActiveLock_Fields.EXCLUSIVE_MODE.Equals(activeLock.Mode()) ? HaveAnyLocking(activeLocks, activeLock.ResourceType(), activeLock.ResourceId()) : HaveExclusiveLocking(activeLocks, activeLock.ResourceType(), activeLock.ResourceId()));
 }