Package edu.vt.rt.hyflow.core.tm.dtl2.field

Examples of edu.vt.rt.hyflow.core.tm.dtl2.field.ReadObjectAccess


    Character val = (Character)writeAccess.getValue(field);
    return val==null ? value : val;
  }
 
  public short onReadAccess(Object obj, short value, long field) {
    WriteObjectAccess writeAccess = onReadAccess0(obj, field);
    if( writeAccess == null)
      return value;
   
    Short val = (Short)writeAccess.getValue(field);   
    return val==null ? value : val;
  }
View Full Code Here


    Short val = (Short)writeAccess.getValue(field);   
    return val==null ? value : val;
  }
 
  public int onReadAccess(Object obj, int value, long field) {
    WriteObjectAccess writeAccess = onReadAccess0(obj, field);
    if( writeAccess == null)
      return value;
   
    Integer val = (Integer)writeAccess.getValue(field);
    return val==null ? value : val;
  }
View Full Code Here

    Integer val = (Integer)writeAccess.getValue(field);
    return val==null ? value : val;
  }
 
  public long onReadAccess(Object obj, long value, long field) {
    WriteObjectAccess writeAccess = onReadAccess0(obj, field);
    if( writeAccess == null)
      return value;
   
    Long val = (Long)writeAccess.getValue(field);
    return val==null ? value : val;
  }
View Full Code Here

    Long val = (Long)writeAccess.getValue(field);
    return val==null ? value : val;
  }
 
  public float onReadAccess(Object obj, float value, long field) {
    WriteObjectAccess writeAccess = onReadAccess0(obj, field);
    if( writeAccess == null)
      return value;
   
    Float val = (Float)writeAccess.getValue(field);
    return val==null ? value : val;
  }
View Full Code Here

    Float val = (Float)writeAccess.getValue(field);
    return val==null ? value : val;
  }
 
  public double onReadAccess(Object obj, double value, long field) {
    WriteObjectAccess writeAccess = onReadAccess0(obj, field);
    if( writeAccess == null)
      return value;
   
    Double val = (Double)writeAccess.getValue(field);
    return val==null ? value : val;
  }
View Full Code Here

 
  public void onWriteAccess( Object obj, Object value, long field){
    if(status.equals(STATUS.ABORTED))
      throw new TransactionException();

    WriteObjectAccess fieldAccess = writeSet.get(obj);
    fieldAccess.set(field, value);
  }
View Full Code Here

    LockTable.checkLock(obj, localClock, true);
  }
 
  public Object onReadAccess( Object obj, Object value, long field){
    Logger.debug("On read access " + obj);
    WriteObjectAccess writeAccess = onReadAccess0(obj, field);
    if( writeAccess == null){
      Logger.debug("On read access 2 " + writeAccess);
      return value;
    }
    Logger.debug("read new value " + obj);
    Object val = writeAccess.getValue(field);
    return val==null ? value : val;
  }
View Full Code Here

    Object val = writeAccess.getValue(field);
    return val==null ? value : val;
  }
   
  public boolean onReadAccess(Object obj, boolean value, long field) {
    WriteObjectAccess writeAccess = onReadAccess0(obj, field);
    if( writeAccess == null)
      return value;
   
    Boolean val = (Boolean)writeAccess.getValue(field);
    return val==null ? value : val;   
  }
View Full Code Here

    Boolean val = (Boolean)writeAccess.getValue(field);
    return val==null ? value : val;   
  }
 
  public byte onReadAccess(Object obj, byte value, long field) {
    WriteObjectAccess writeAccess = onReadAccess0(obj, field);
    if( writeAccess == null)
      return value;
   
    Byte val = (Byte)writeAccess.getValue(field);
    return val==null ? value : val;
  }
View Full Code Here

    Byte val = (Byte)writeAccess.getValue(field);
    return val==null ? value : val;
  }
 
  public char onReadAccess(Object obj, char value, long field) {
    WriteObjectAccess writeAccess = onReadAccess0(obj, field);
    if( writeAccess == null)
      return value;
   
    Character val = (Character)writeAccess.getValue(field);
    return val==null ? value : val;
  }
View Full Code Here

TOP

Related Classes of edu.vt.rt.hyflow.core.tm.dtl2.field.ReadObjectAccess

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.