public synchronized Integer updateAccess(DataCallback<Integer> callback,String unitId,boolean visited){
  ContentValues values=new ContentValues();
  values.put(DbStructure.Column.ASSESSMENT_TB_UNIT_WATCHED,visited);
  DbOperationUpdate op=new DbOperationUpdate(DbStructure.Table.ASSESSMENT,values,DbStructure.Column.ASSESSMENT_TB_UNIT_ID + "=? AND " + DbStructure.Column.ASSESSMENT_TB_USERNAME+ "=?",new String[]{unitId,username()});
  op.setCallback(callback);
  return enqueue(op);
}

public synchronized Integer updateAccess ( DataCallback < Integer > callback , String unitId , boolean visited ) { ContentValues values = new ContentValues ( ) ; values . put ( DbStructure . Column . ASSESSMENT_TB_UNIT_WATCHED , visited ) ; DbOperationUpdate op = new DbOperationUpdate ( DbStructure . Table . ASSESSMENT , values , DbStructure . Column . ASSESSMENT_TB_UNIT_ID + "=? AND " + DbStructure . Column . ASSESSMENT_TB_USERNAME + "=?" , new String [ ] { unitId , username ( ) } ) ; op . setCallback ( callback ) ; return enqueue ( op ) ; }
update assessment unit access record
