Examples of StoreRoot4


Examples of net.sf.joafip.store.entity.StoreRoot4

      DataRecordIdentifier dataRecordIdentifier = storeAccessForExport
          .getNextFreeDataRecordIdentifier();
      ObjectAndItsClassInfo objectAndItsClassInfo =
      /**/storeAccessForExport
          .createGenericObjectReadingInStoreNotLazy(Store.IDENTIFIER_FOR_ROOT);
      final StoreRoot4 storeRoot = (StoreRoot4) objectAndItsClassInfo
          .getObject();

      final int dataModelIdentifier = dataModelIdentifier(storeRoot);
      // final Set<Long> dataRecordIdOfpersistedStaticSet =
      // dataRecordIdOfpersistedStaticSet(storeRoot);
View Full Code Here

Examples of net.sf.joafip.store.entity.StoreRoot4

          fieldsInfo = currentObject
              .getAllDeclaredTransientOrNotFields();
        }
        currentObject.setFields(fieldsInfo);
        if (inRootObject) {
          final StoreRoot4 storeRoot = (StoreRoot4) currentObject
              .getObject();

          FieldInfo fieldInfo;

          final ClassInfo currentObjectClassInfo = currentObject
              .getClassInfo();
          fieldInfo = currentObjectClassInfo.getFieldInfo(
              StoreRoot4.class.getName(), "dataModelIdentifier");
          // fieldInfo = new FieldInfo(currentObjectClassInfo,
          // "dataModelIdentifier",
          // classInfoFactory.getClassInfo(int.class),
          // false, false);
          currentObject.setValue(
              2,
              fieldInfo,
              new ObjectAndPersistInfo(storeRoot
                  .getDataModelIdentifier(), false,
                  classInfoFactory
                      .getNoProxyClassInfo(int.class)));

          fieldInfo = currentObjectClassInfo.getFieldInfo(
              StoreRoot4.class.getName(),
              "dataRecordIdOfpersistedStaticSet");
          // fieldInfo = new FieldInfo(currentObjectClassInfo,
          // "dataRecordIdOfpersistedStaticSet",
          // classInfoFactory.getClassInfo(Set.class),
          // false, false);

          Set<Long> dataRecordIdOfpersistedStaticSet = storeRoot
              .getDataRecordIdOfpersistedStaticSet();
          if (dataRecordIdOfpersistedStaticSet == null) {
            // use PTreeSet for persistence
            dataRecordIdOfpersistedStaticSet = new PTreeSet<Long>();
            storeRoot
                .setDataRecordIdOfpersistedStaticSet(dataRecordIdOfpersistedStaticSet);
          }
          currentObject
              .setValue(
                  3,
View Full Code Here

Examples of net.sf.joafip.store.entity.StoreRoot4

  }

  @SuppressWarnings("unchecked")
  private void endStaticFieldElement(final Object data) throws SAXException {
    final Set<DataRecordIdentifier> dataRecordIdentifierSet = (Set<DataRecordIdentifier>) data;
    final StoreRoot4 storeRoot = (StoreRoot4) currentObject.getObject();
    Set<Long> dataRecordIdOfpersistedStaticSet = storeRoot
        .getDataRecordIdOfpersistedStaticSet();
    if (dataRecordIdOfpersistedStaticSet == null) {
      dataRecordIdOfpersistedStaticSet = new TreeSet<Long>();
      storeRoot
          .setDataRecordIdOfpersistedStaticSet(dataRecordIdOfpersistedStaticSet);
    }
    for (DataRecordIdentifier dataRecordIdentifier : dataRecordIdentifierSet) {
      dataRecordIdOfpersistedStaticSet.add(dataRecordIdentifier.value);
    }
View Full Code Here

Examples of net.sf.joafip.store.entity.StoreRoot4

            storeRoot = (StoreRoot4) proxyManager2
                .newInstanceConstruct(storeRootClassInfo,
                    new StorageInfo(), objectIOManager,
                    dataRecordIdentifier, true);
          } else {
            storeRoot = new StoreRoot4();
            /*
             * force creation of store root persist information for
             * storage in data record #1
             */
            /**/objectIOManager.createObjectPersistInfoOfObject(
 
View Full Code Here

Examples of net.sf.joafip.store.entity.StoreRoot4

        + "\") of object \"" + object.getClass()
        + "\" can not be set to \"" + value.getClass() + "\"";
  }

  public ObjectModelForImport createRootObject() throws ImportException {
    final StoreRoot4 storeRoot = new StoreRoot4();
    storeRoot.setDataModelIdentifier(currentDataModelIdentifier);
    setDataRecordIdentifierAssociatedToObject(storeRoot,
        Store.IDENTIFIER_FOR_ROOT);
    final ClassDef classDef = getClassReplacementDef(storeRoot.getClass());
    return new ObjectModelForImport(Store.IDENTIFIER_FOR_ROOT,
        classDef.getReplacementDef(), storeRoot,
        classDef.getReplacementClass(), false);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.