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

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


  public ClassInfo getObjectClassInfo(final int classNameIdentifier)
      throws ObjectIOException, ObjectIOClassNotFoundException {
    final ClassInfo classInfo = classInfoByIdentifierMap
        .get(classNameIdentifier);
    if (classInfo == null) {
      throw new ObjectIOException("no class definition for identifier "
          + classNameIdentifier);
    }
    return classInfo;
  }
View Full Code Here


    ObjectAndPersistInfo objectAndPersistInfo;
    try {
      objectAndPersistInfo = new ObjectAndPersistInfo(object, false,
          objectClassInfo);
    } catch (ClassInfoException exception) {
      throw new ObjectIOException(exception);
    }
    if (stateMap.put(objectAndPersistInfo, objectAndPersistInfo) != null) {
      throw new ObjectIOException(
          "object persistent state already exists");
    }
    return objectAndPersistInfo;
  }
View Full Code Here

    try {
      final DataRecordIdentifier[] referenceList = readDataRecord(dataRecordIdentifier);
      return new ObjectLinkTreeNode(dataRecordIdentifier, null,
          referenceList);
    } catch (HeapException exception) {
      throw new ObjectIOException(exception);
    } catch (IOException exception) {
      throw new ObjectIOException(exception);
    } catch (ClassNotFoundException exception) {
      throw new ObjectIOException(exception);
    }
  }
View Full Code Here

    AbstractConverter binaryConverter;
    try {
      binaryConverter = helperBinaryConversion.characterConverter;
      binaryConverter.fromBinary(binary, bodyBeginOffset);
    } catch (BinaryConverterException exception) {
      throw new ObjectIOException(exception);
    }
    if (!binaryConverter.valueDefinedFromBinary) {
      throw new ObjectIOException("value must be defined");
    }
    final Character charValue = (Character) binaryConverter.objectFromBinary;
    binaryConverter.objectFromBinary = null;// NOPMD
    read.setCharValue(charValue);
    return objectIOManager.getOrCreateObjectPersistInfoOfObject(read,
View Full Code Here

      final ObjectAndPersistInfo objectAndItsClassInfo)
      throws ObjectIOException, ObjectIODataRecordNotFoundException,
      ObjectIOInvalidClassException, ObjectIOClassNotFoundException,
      ObjectIODataCorruptedException, ObjectIONotSerializableException {
    if (inConstruction) {
      throw new ObjectIOException("in construction");
    }
    super.setProxyObjectState(objectAndItsClassInfo);
  }
View Full Code Here

          proxyInstance, objectClassInfo);
      final ProxyCallBack proxyCallBack = new ProxyCallBack(this);
      ProxyManager2.setProxyCallBack(objectAndPersistInfo, proxyCallBack,
          isExclusiveAccessSession());
    } catch (ClassInfoException exception) {
      throw new ObjectIOException(exception);
    } catch (ProxyException exception) {
      throw new ObjectIOException(exception);
    }
    objectAndPersistInfo.setDataRecordIdentifier(dataRecordIdentifier);
    return objectAndPersistInfo;
  }
View Full Code Here

    final ClassInfo objectClassInfo;
    try {
      objectClassInfo = classInfoFactory.getNoProxyClassInfo(object
          .getClass());
    } catch (ClassInfoException exception) {
      throw new ObjectIOException(exception);
    }
    return getOrCreateObjectPersistInfoOfObject(object, proxyInstance,
        objectClassInfo, persisted);
  }
View Full Code Here

          proxyInstance, objectClassInfo);
      final ProxyCallBack proxyCallBack = new ProxyCallBack(this);
      ProxyManager2.setProxyCallBack(objectAndPersistInfo, proxyCallBack,
          isExclusiveAccessSession());
    } catch (ClassInfoException exception) {
      throw new ObjectIOException(exception);
    } catch (ProxyException exception) {
      throw new ObjectIOException(exception);
    }
    return objectAndPersistInfo;
  }
View Full Code Here

    }
    try {
      objectAndPersistInfo = new ObjectAndPersistInfo(object,
          objectIsProxyInstance, objectClassInfo);
    } catch (ClassInfoException exception) {
      throw new ObjectIOException(exception);
    }
    if (persisted) {
      objectAndPersistInfoMap.put(objectAndPersistInfo,
          objectAndPersistInfo);
    }
View Full Code Here

    } else {
      try {
        objectAndPersistInfo = new ObjectAndPersistInfo(object,
            proxyInstance, objectClassInfo);
      } catch (ClassInfoException exception) {
        throw new ObjectIOException(exception);
      }
      objectAndPersistInfo.setDataRecordIdentifier(dataRecordIdentifier);
      objectAndPersistInfoMap.put(objectAndPersistInfo,
          objectAndPersistInfo);
    }
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.