Package net.sf.joafip.store.service.objectio

Examples of net.sf.joafip.store.service.objectio.ObjectIOException


      final Object elementObject;
      try {
        elementObject = helperReflect.getArrayElement(array, index);
      } catch (ReflectException exception) {
        logger.fatal(REFLECT_ERROR, exception);
        throw new ObjectIOException(exception);
      }
      final ClassInfo elementClassInfo;
      if (elementObject == null) {
        elementClassInfo = ClassInfo.NULL;
      } else {
        try {
          elementClassInfo = proxyManager2
              .classInfoOfObject(elementObject);
        } catch (ProxyException exception) {
          throw new ObjectIOException(exception);
        }
      }
      final ObjectAndPersistInfo elementAndPersistInfo = objectIOManager
          .getOrCreateObjectPersistInfoOfObject(elementObject, null,
              elementClassInfo, true);
View Full Code Here


      final Object elementObject;
      try {
        elementObject = helperReflect.getArrayElement(array, index);
      } catch (ReflectException exception) {
        logger.fatal(REFLECT_ERROR, exception);
        throw new ObjectIOException(exception);
      }
      final ObjectAndPersistInfo elementAndPersistInfo = objectIOManager
          .getOrCreateObjectPersistInfoOfObject(elementObject,
              Boolean.FALSE, arrayComponentType, false);
      currentValue[index] = new ObjectClassInfoAndDeclared(// NOPMD
View Full Code Here

    int elementBeginOffset;
    try {
      elementBeginOffset = helperBinaryConversion.integerConverter
          .toBinary(binary, arrayLengthBeginOffset, true, arrayLength);
    } catch (BinaryConverterException exception) {
      throw new ObjectIOException(exception);
    }
    return writeCurrentValue(binary, elementBeginOffset,
        arrayAndItsClassInfo, updateOriginalValue);
  }
View Full Code Here

        offset = helperBinaryConversion.characterConverter.toBinary(
            binary, offset, true, charArray[index]);
      }
      return NO_SOONS;
    } catch (BinaryConverterException exception) {
      throw new ObjectIOException(exception);
    } catch (ClassCastException exception) {
      throw new ObjectIOException(exception);
    }
  }
View Full Code Here

      try {
        classInfo = classInfoFactory.getClassInfo(className);
      } catch (ClassNotFoundException exception) {
        throw new ObjectIOClassNotFoundException(exception);
      } catch (ClassInfoException exception) {
        throw new ObjectIOException(exception);
      }
      byIdentifierClassInfo.put(classNameIdentifier, classInfo);
    }
    return classInfo;
  }
View Full Code Here

  }

  private void checkLoaded() throws ObjectIOException,
      ObjectIOClassNotFoundException {
    if (!loaded) {
      throw new ObjectIOException("class name not loaded");
    }
  }
View Full Code Here

    DataRecordIdentifier dataRecordIdentifier;
    try {
      dataRecordIdentifier = storeHeader
          .getClassNameListRootDataRecordIdentifier();
    } catch (StoreException exception) {
      throw new ObjectIOException(exception);
    }
    if (dataRecordIdentifier != null) {
      rootClassNameRecord = new ClassNameRecord(heapRecordableManager,
          helperBinaryConversion);
      rootClassNameRecord.setDataRecordIdentifier(
      /**/dataRecordIdentifier,
      /**/true/* exist in file */);
      if (!heapRecordableManager.readAndSetState(rootClassNameRecord)) {
        throw new ObjectIOException("failed read and set state: "
            + heapRecordableManager.getReadAndSetStateStatus());
      }
      ClassNameRecord classNameRecord = rootClassNameRecord;

      while (dataRecordIdentifier != null) {
View Full Code Here

  }

  private void readAndSetState(final ClassNameRecord classNameRecord)
      throws HeapRecordableException, ObjectIOException {
    if (!heapRecordableManager.readAndSetState(classNameRecord)) {
      throw new ObjectIOException("failed read and set state, "
          + heapRecordableManager.getReadAndSetStateStatus());
    }
  }
View Full Code Here

            + " class name=" + classInfo.getName()
            + " data record id="
            + rootClassNameRecord.getDataRecordIdentifier());
      }
    } catch (HeapRecordableException exception) {
      throw new ObjectIOException(exception);
    } catch (StoreException exception) {
      throw new ObjectIOException(exception);
    }
    return identifier;
  }
View Full Code Here

    DataRecordIdentifier dataRecordIdentifier;
    try {
      dataRecordIdentifier = storeHeader
          .getClassNameListRootDataRecordIdentifier();
    } catch (StoreException exception) {
      throw new ObjectIOException(exception);
    }
    try {
      while (dataRecordIdentifier != null) {
        setToUpdate.add(dataRecordIdentifier);
        final ClassNameRecord classNameRecord = newClassNameRecord();
        classNameRecord.setDataRecordIdentifier(
        /**/dataRecordIdentifier,
        /**/true/* exist in file */);
        readAndSetState(classNameRecord);
        dataRecordIdentifier = classNameRecord
            .getNextClassNameRecordDataRecordIdentifier();
      }
    } catch (HeapRecordableException exception) {
      throw new ObjectIOException(exception);
    }
  }
View Full Code Here

TOP

Related Classes of net.sf.joafip.store.service.objectio.ObjectIOException

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.