Package net.sf.joafip.store.entity.objectio

Examples of net.sf.joafip.store.entity.objectio.ObjectAndItsClassInfo


  public ObjectAndItsClassInfo createGenericObjectReadingInStoreNotLazy(
      final DataRecordIdentifier dataRecordIdentifier)
      throws StoreException, StoreClassNotFoundException,
      StoreInvalidClassException, StoreDataCorruptedException,
      StoreNotSerializableException {
    ObjectAndItsClassInfo objectAndItsClassInfo;
    try {
      objectAndItsClassInfo = objectIOManager
          .createReadingInStoreGenericObjectNotLazy(dataRecordIdentifier);
    } catch (ObjectIOException exception) {
      throw new StoreException(FOR_DATA_RECORD + dataRecordIdentifier,
View Full Code Here


      } else {
        batchSize = listener.getBatchSize();
      }
      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);

      beginExportVisit(Version.JOAFIP_RELEASE, dataModelIdentifier,
          dataRecordIdentifier.value);

      exportStoreQue.initialize();
      exportRoot(storeRoot);
      storeAccessForExport.clearMemory();

      int batchCount = 0;
      numberExported = 0;
      dataRecordIdentifier = exportStoreQue.pollFirst();
      while (dataRecordIdentifier != null) {

        // if (dataRecordIdOfpersistedStaticSet != null
        // && dataRecordIdOfpersistedStaticSet
        // .contains(dataRecordIdentifier.value)) {
        // final ClassInfo classInfo = storeAccessForExport
        // .getClassInfo(dataRecordIdentifier);
        // storeAccessForExport.setStaticState(dataRecordIdentifier);
        // exportStatic(classInfo, dataRecordIdentifier);
        // } else {
        objectAndItsClassInfo =
        /**/storeAccessForExport
            .createGenericObjectReadingInStoreNotLazy(dataRecordIdentifier);
        final ClassInfo objectClassInfo = objectAndItsClassInfo.objectClassInfo;
        if (exportPersistedClassByteCode) {
          exportClass(objectClassInfo);
        }
        final Object object = objectAndItsClassInfo.getObject();
        if (objectClassInfo.isStringType()) {
          exportString(dataRecordIdentifier, (String) object);
        } else if (objectClassInfo.isArrayType()) {
          exportArray(dataRecordIdentifier, object, objectClassInfo);
        } else if (objectClassInfo.isEnumType()) {
View Full Code Here

TOP

Related Classes of net.sf.joafip.store.entity.objectio.ObjectAndItsClassInfo

Copyright © 2018 www.massapicom. 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.