예제 #1
0
 @Override
 public void setAssociationValue(QualifiedName stateName, EntityReference newEntity) {
   try {
     cloneStateIfGlobalStateLoaded();
     state
         .getJSONObject(JSONKeys.ASSOCIATIONS)
         .put(stateName.name(), newEntity == null ? null : newEntity.identity());
     markUpdated();
   } catch (JSONException e) {
     throw new EntityStoreException(e);
   }
 }
예제 #2
0
 private File getDataFile(EntityReference ref) {
   return getDataFile(ref.identity());
 }