예제 #1
0
 public final void exception(java.lang.String value) {
   org.objectfabric.TObject.Transaction outer = current_();
   org.objectfabric.TObject.Transaction inner = startWrite_(outer);
   Version v = (Version) getOrCreateVersion_(inner);
   v._exception = value;
   v.setBit(EXCEPTION_INDEX);
   endWrite_(outer, inner);
 }
예제 #2
0
 public final void isDone(boolean value) {
   org.objectfabric.TObject.Transaction outer = current_();
   org.objectfabric.TObject.Transaction inner = startWrite_(outer);
   Version v = (Version) getOrCreateVersion_(inner);
   v._isDone = value;
   v.setBit(IS_DONE_INDEX);
   endWrite_(outer, inner);
 }
예제 #3
0
  protected final void result_(java.lang.Object value) {
    if (value instanceof org.objectfabric.TObject
        && ((org.objectfabric.TObject) value).resource() != resource()) wrongResource_();

    org.objectfabric.TObject.Transaction outer = current_();
    org.objectfabric.TObject.Transaction inner = startWrite_(outer);
    Version v = (Version) getOrCreateVersion_(inner);
    v._result_ = value;
    v.setBit(RESULT__INDEX);
    endWrite_(outer, inner);
  }
예제 #4
0
  protected MethodCallBase(
      org.objectfabric.Resource resource,
      org.objectfabric.TObject.Version shared,
      int length,
      org.objectfabric.TGenerated target) {
    super(resource, shared, FIELD_COUNT);

    ((Version) shared)._target = target;

    if (target != null) ((Version) shared).setBit(TARGET_INDEX);
  }