Exemplo n.º 1
0
 private CreateTreeNodeData(final CacheHolder parent, final CacheHolder child) {
   this.define = child.ownGroup.define;
   this.defineIdentifier = this.define.GUIDIdentifier;
   this.spaceIdentifier = child.ownGroup.ownSpace.identifier;
   KeyDefine holderKeyDefine = child.ownGroup.define.keyDefines[0];
   if (parent == null) {
     this.parentValue = null;
     this.parentNull = true;
     this.parentKey1Value = null;
     this.parentKey2Value = null;
     this.parentKey3Value = null;
   } else {
     this.parentValue =
         OBJAContext.clone(parent.tryGetValue(), false, parent.ownGroup.define.implementStruct);
     this.parentNull = false;
     this.parentKey1Value = holderKeyDefine.getKeyValue1(parent.forceGetKeysHolder());
     this.parentKey2Value = holderKeyDefine.getKeyValue2(parent.forceGetKeysHolder());
     this.parentKey3Value = holderKeyDefine.getKeyValue3(parent.forceGetKeysHolder());
   }
   this.childValue =
       OBJAContext.clone(child.tryGetValue(), false, child.ownGroup.define.implementStruct);
   this.childKey1Value = holderKeyDefine.getKeyValue1(child.forceGetKeysHolder());
   this.childKey2Value = holderKeyDefine.getKeyValue2(child.forceGetKeysHolder());
   this.childKey3Value = holderKeyDefine.getKeyValue3(child.forceGetKeysHolder());
 }
Exemplo n.º 2
0
 private RemoveReferenceData(final CacheHolder holder, final CacheHolder reference) {
   this.holderSpaceIdentifier = holder.ownGroup.ownSpace.identifier;
   this.holderDefine = holder.ownGroup.define;
   this.holderDefineIdentifier = this.holderDefine.GUIDIdentifier;
   this.holderValue =
       OBJAContext.clone(holder.tryGetValue(), false, this.holderDefine.implementStruct);
   KeyDefine holderKeyDefine = holder.ownGroup.define.keyDefines[0];
   this.holderKey1Value = holderKeyDefine.getKeyValue1(holder.forceGetKeysHolder());
   this.holderKey2Value = holderKeyDefine.getKeyValue2(holder.forceGetKeysHolder());
   this.holderKey3Value = holderKeyDefine.getKeyValue3(holder.forceGetKeysHolder());
   this.referenceSpaceIdentifier = reference.ownGroup.ownSpace.identifier;
   this.referenceDefine = reference.ownGroup.define;
   this.referenceDefineIdentifier = this.referenceDefine.GUIDIdentifier;
   this.referenceValue =
       OBJAContext.clone(reference.tryGetValue(), false, this.referenceDefine.implementStruct);
   KeyDefine referentKeyDefine = reference.ownGroup.define.keyDefines[0];
   this.referenceKey1Value = referentKeyDefine.getKeyValue1(reference.forceGetKeysHolder());
   this.referenceKey2Value = referentKeyDefine.getKeyValue2(reference.forceGetKeysHolder());
   this.referenceKey3Value = referentKeyDefine.getKeyValue3(reference.forceGetKeysHolder());
 }
Exemplo n.º 3
0
 private <TFacade, TImpl extends TFacade, TKeysHolder> RemoveHolderData(
     final CacheHolder<TFacade, TImpl, TKeysHolder> item) {
   this.spaceIdentifier = item.ownGroup.ownSpace.identifier;
   this.define = item.ownGroup.define;
   this.defineIdentifier = item.ownGroup.define.GUIDIdentifier;
   this.value =
       OBJAContext.clone(item.unsafeGetValue(), false, item.ownGroup.define.implementStruct);
   KeyDefine<TFacade, TImpl, TKeysHolder> keyDefine = item.ownGroup.define.keyDefines[0];
   this.key1Value = keyDefine.getKeyValue1(item.forceGetKeysHolder());
   this.key2Value = keyDefine.getKeyValue2(item.forceGetKeysHolder());
   this.key3Value = keyDefine.getKeyValue3(item.forceGetKeysHolder());
 }
Exemplo n.º 4
0
 private ModifyHolderData(
     final CacheHolder item, final Object newValue, final Object newKeysHolder) {
   this.spaceIdentifier = item.ownGroup.ownSpace.identifier;
   this.define = item.ownGroup.define;
   this.defineIdentifier = item.ownGroup.define.GUIDIdentifier;
   this.value =
       OBJAContext.clone(item.tryGetValue(), false, item.ownGroup.define.implementStruct);
   KeyDefine keyDefine = item.ownGroup.define.keyDefines[0];
   this.key1Value = keyDefine.getKeyValue1(item.forceGetKeysHolder());
   this.key2Value = keyDefine.getKeyValue2(item.forceGetKeysHolder());
   this.key3Value = keyDefine.getKeyValue3(item.forceGetKeysHolder());
   this.newValue = OBJAContext.clone(newValue, false, item.ownGroup.define.implementStruct);
   this.newKeysHolder =
       newValue == newKeysHolder ? this.newValue : OBJAContext.clone(newKeysHolder);
   this.userData =
       item.ownGroup.define.resourceService.internalExtractSerialUserData(
           newValue, newKeysHolder);
 }