Package org.deuce.transaction.lsacm.field

Examples of org.deuce.transaction.lsacm.field.ReadFieldAccess


      System.arraycopy(entries, 0, e, 0, l);
      entries = e;
      initArray(l);
    }
    assert size < entries.length;
    ReadFieldAccess r = entries[size++];
    r.init(reference, field, hash, lock);
  }
View Full Code Here


  public boolean validate(Context context, int id) {
    try {
      for (int i = 0; i < size; i++) {
        // Throws an exception if validation fails
        ReadFieldAccess r = entries[i];
        long lock = LockTable.checkLock(context, r.getHash(), id);
        if (lock >= 0 && lock != r.getLock()) {
          // Other version: cannot validate
          return false;
        }
      }
    } catch (TransactionException e) {
View Full Code Here

    return true;
  }

  public boolean contains(Object obj, long field) {
    for (int i = 0; i < size; i++) {
      ReadFieldAccess r = entries[i];
      if (r.getReference() == obj && r.getField() == field)
        return true;
    }
    return false;
  }
View Full Code Here

    return false;
  }

  private void initArray(int fromIndex) {
    for (int i = fromIndex; i < entries.length; i++)
      entries[i] = new ReadFieldAccess();
  }
View Full Code Here

TOP

Related Classes of org.deuce.transaction.lsacm.field.ReadFieldAccess

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.