Package net.sf.joafip.store.entity.classinfo

Examples of net.sf.joafip.store.entity.classinfo.ClassInfo


              objectAndPersistInfo.getObject(), fieldInfo,
              checkAssertNotNull);
        } catch (NullFieldException exception) {
          throw new ObjectIOException(exception);
        }
        ClassInfo fieldType;
        try {
          fieldType = fieldInfo.getFieldTypeInfo();
        } catch (ClassInfoException exception) {
          throw new ObjectIOException(exception);
        }
        final ClassInfo fieldValuetype = getFieldValueType(fieldValue);
        final boolean persisted = true ^ fieldType
            .isBasicOrPrimitiveType();
        final ObjectAndPersistInfo fieldAndPersistInfo = objectIOManager
            .getOrCreateObjectPersistInfoOfObject(fieldValue, null,
                fieldValuetype, persisted);
View Full Code Here


              objectAndPersistInfo.getObject(), fieldInfo,
              checkAssertNotNull);
        } catch (NullFieldException exception) {
          throw new ObjectIOException(exception);
        }
        ClassInfo fieldType;
        try {
          fieldType = fieldInfo.getFieldTypeInfo();
        } catch (ClassInfoException exception) {
          throw new ObjectIOException(exception);
        }
        final ClassInfo fieldValuetype = getFieldValueType(fieldValue);
        final ObjectAndPersistInfo fieldAndPersistInfo = objectIOManager
            .getOrCreateObjectPersistInfoOfObject(fieldValue, null,
                fieldValuetype, true ^ fieldType.isBasicType());
        currentValue[index++] = new ObjectClassInfoAndDeclared(// NOPMD
            fieldAndPersistInfo, fieldType);
View Full Code Here

      final ObjectAndPersistInfo objectAndPersistInfo)
      throws ObjectIOException, ObjectIODataRecordNotFoundException,
      ObjectIOClassNotFoundException, ObjectIOInvalidClassException,
      ObjectIODataCorruptedException, ObjectIONotSerializableException {
    objectIOOutputStream.initialize(objectAndPersistInfo);
    final ClassInfo classInfo = objectAndPersistInfo.objectClassInfo;
    final Method method = classInfo.getWriteObjectMethod();
    if (method == null) {
      try {
        objectIOOutputStream.defaultWriteObject();
      } catch (IOException exception) {
        throwIOExceptionCause(exception);
View Full Code Here

      final ObjectAndPersistInfo objectAndPersistInfo)
      throws ObjectIOException, ObjectIODataRecordNotFoundException,
      ObjectIOClassNotFoundException, ObjectIOInvalidClassException,
      ObjectIODataCorruptedException, ObjectIONotSerializableException {
    objectIOOutputStream.initialize(objectAndPersistInfo);
    final ClassInfo classInfo = objectAndPersistInfo.objectClassInfo;
    final Method method = classInfo.getWriteExternalMethod();
    if (method == null) {
      throw new ObjectIOException(
          "missing writeExternal method for serialization");
    }
    try {
View Full Code Here

    return fieldValue;
  }

  private ClassInfo getFieldValueType(final Object fieldValue)
      throws ObjectIOException {
    final ClassInfo fieldValueType;
    if (fieldValue == null) {
      fieldValueType = ClassInfo.NULL;
    } else {
      try {
        fieldValueType = proxyManager2.classInfoOfObject(fieldValue);
View Full Code Here

    ObjectAndPersistInfo toWriteObjectAndItsClassInfo =
    /**/objectAndPersistInfo.getSubstituteObjectAndPersistInfo();
    if (toWriteObjectAndItsClassInfo == null) {
      toWriteObjectAndItsClassInfo = objectAndPersistInfo;
    }
    final ClassInfo classInfo = toWriteObjectAndItsClassInfo.objectClassInfo;
    final IObjectOutput objectOutput;
    objectOutput = getObjectOutput(classInfo);
    assert !toWriteObjectAndItsClassInfo.isSubstituted();
    return objectOutput.willNotBeWrote(toWriteObjectAndItsClassInfo);
  }
View Full Code Here

    /**/objectAndPersistInfo.getSubstituteObjectAndPersistInfo();
    if (toWriteObjectAndItsClassInfo == null) {
      toWriteObjectAndItsClassInfo = objectAndPersistInfo;
    }
    final boolean valueChanged;
    final ClassInfo classInfo = toWriteObjectAndItsClassInfo.objectClassInfo;
    final IObjectOutput objectOutput;
    objectOutput = getObjectOutput(classInfo);
    assert !toWriteObjectAndItsClassInfo.isSubstituted();
    if (toWriteObjectAndItsClassInfo.newObject) {
      if (garbageManagement) {
View Full Code Here

      throws ObjectIOException, ObjectIOInvalidClassException,
      ObjectIONotSerializableException, ObjectIOClassNotFoundException,
      ObjectIODataRecordNotFoundException,
      ObjectIODataCorruptedException,
      ObjectIOTooBigForSerializationException {
    final ClassInfo classInfo = objectAndPersistInfo.objectClassInfo;
    ObjectAndPersistInfo toWrite;
    toWrite = keptInMemorysubstituteObject(objectAndPersistInfo);
    if (toWrite == null) {
      toWrite = substituteObject(objectAndPersistInfo);
      if (toWrite == null) {
View Full Code Here

    ObjectOutputStream stream = null;
    try {
      final ZipOutputStream zip = new ZipOutputStream(output);
      zip.setMethod(ZipOutputStream.DEFLATED);
      final int compressionLevel;
      final ClassInfo classInfo = objectAndItsClassInfo.objectClassInfo;
      final int level = classInfo.getZipCompressionLevel();
      if (level < 0) {
        compressionLevel = objectIOManager.getZipCompressionLevel();
      } else {
        compressionLevel = level;
      }
View Full Code Here

      throws EnhanceException {
    try {
      final boolean forceEnhance = objectClassInfo.isForceEnhance();
      final Set<MethodKey> methodsSet = new HashSet<MethodKey>();
      final List<Method> methodsList = new LinkedList<Method>();
      ClassInfo currentClassInfo = objectClassInfo;
      Class<?> currentClass = currentClassInfo.getObjectClass();
      do {
        methodToOverrideUpdate(methodsSet, methodsList, currentClass,
            forceEnhance);
        final Class<?> superClass = currentClass.getSuperclass();
        if (superClass == null) {
View Full Code Here

TOP

Related Classes of net.sf.joafip.store.entity.classinfo.ClassInfo

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.