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

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


    classInfoMap.clear();
  }

  private void setAttributes(final ClassInfo classInfo, final String className)
      throws ClassInfoException {
    final ClassInfoAttributes classInfoAttributes = classInfoAttributeMap
        .remove(className);
    if (classInfoAttributes != null) {
      if (classInfoAttributes.isStoreSerializeInOneRecord()) {
        classInfo.setStoreSerializeInOneRecord();
      }
      if (classInfoAttributes.isStoreSerializeAndZippedInOneRecord()) {
        classInfo.setStoreSerializeAndZippedInOneRecord();
      }
      if (classInfoAttributes.isStoreSerializeAndGZippedInOneRecord()) {
        classInfo.setStoreSerializeAndGZippedInOneRecord();
      }
      if (classInfoAttributes.isStoreNotUseStandardSerialization()) {
        classInfo.setStoreNotUseStandardSerialization();
      }
      if (classInfoAttributes.isStorable()) {
        classInfo.setStorable();
      }
      if (classInfoAttributes.isNotStorable()) {
        classInfo.setNotStorable();
      }
      if (classInfoAttributes.isDeprecatedInStore()) {
        classInfo.setDeprecatedInStore();
      }
      if (classInfoAttributes.isNoLazyLoad()) {
        classInfo.setNoLazyLoad();
      }
      if (classInfoAttributes.isForceEnhance()) {
        classInfo.setForceEnhance();
      }

      final Set<String> toNotCheckMethodSet = classInfoAttributes
          .getToNotCheckMethodSet();
      for (String absoluteMethodName : toNotCheckMethodSet) {
        classInfo.addToNotCheckMethod(absoluteMethodName);
      }

      if (classInfoAttributes.haveSubstituteObjectManager()) {
        final ClassInfo substituteClassInfo = getNoProxyClassInfo(classInfoAttributes
            .getSubstituteObjectClass());
        classInfo.setSubstituted(substituteClassInfo,
            classInfoAttributes.getSubstituteObjectManager());
      }
      if (classInfoAttributes.getWriteSubstition() != null) {
        final ClassInfo substituteClassInfo = getNoProxyClassInfo(classInfoAttributes
            .getWriteSubstition());
        classInfo.setWriteSubstituted(substituteClassInfo,
            classInfoAttributes.getSynchronizer());
      }
      if (classInfoAttributes.getObjectInput() != null
          || classInfoAttributes.getObjectOutput() != null) {
        objectIOManager.setSpecificObjectIO(classInfo,
            classInfoAttributes.getObjectInput(),
            classInfoAttributes.getObjectOutput());
      }

      final String[] notPersistedField = classInfoAttributes
          .getNotPersistedField();
      if (notPersistedField != null) {
        classInfo.setNotPersistedField(notPersistedField);
      }
    }
View Full Code Here


  @Override
  public void setForceEnhance(final String objectClassName) {
    final ClassInfo classInfo = classInfoMap.get(objectClassName);
    if (classInfo == null) {
      final ClassInfoAttributes classInfoAttributes = getOrCreateClassInfoAttribute(objectClassName);
      classInfoAttributes.setForceEnhance();
    } else {
      classInfo.setForceEnhance();
    }
  }
View Full Code Here

  @Override
  public void addToNotCheckMethod(final String objectClassName,
      final String absoluteMethodName) {
    final ClassInfo classInfo = classInfoMap.get(objectClassName);
    if (classInfo == null) {
      final ClassInfoAttributes classInfoAttributes = getOrCreateClassInfoAttribute(objectClassName);
      classInfoAttributes.addToNotCheckMethod(absoluteMethodName);
    } else {
      classInfo.addToNotCheckMethod(absoluteMethodName);
    }
  }
View Full Code Here

  @Override
  public void setNoLazyLoad(final String objectClassName) {
    final ClassInfo classInfo = classInfoMap.get(objectClassName);
    if (classInfo == null) {
      final ClassInfoAttributes classInfoAttributes = getOrCreateClassInfoAttribute(objectClassName);
      classInfoAttributes.setNoLazyLoad();
    } else {
      classInfo.setNoLazyLoad();
    }
  }
View Full Code Here

  @Override
  public void setStorable(final String objectClassName)
      throws ClassInfoException {
    final ClassInfo classInfo = classInfoMap.get(objectClassName);
    if (classInfo == null) {
      final ClassInfoAttributes classInfoAttributes = getOrCreateClassInfoAttribute(objectClassName);
      classInfoAttributes.setStorable();
    } else {
      classInfo.setStorable();
    }
  }
View Full Code Here

  @Override
  public void setDeprecatedInStore(final String objectClassName)
      throws ClassInfoException {
    final ClassInfo classInfo = classInfoMap.get(objectClassName);
    if (classInfo == null) {
      final ClassInfoAttributes classInfoAttributes = getOrCreateClassInfoAttribute(objectClassName);
      classInfoAttributes.setDeprecatedInStore();
    } else {
      classInfo.setDeprecatedInStore();
    }
  }
View Full Code Here

  @Override
  public void setNotStorable(final String objectClassName)
      throws ClassInfoException {
    final ClassInfo classInfo = classInfoMap.get(objectClassName);
    if (classInfo == null) {
      final ClassInfoAttributes classInfoAttributes = getOrCreateClassInfoAttribute(objectClassName);
      classInfoAttributes.setNotStorable();
    } else {
      classInfo.setNotStorable();
    }
  }
View Full Code Here

  @Override
  public void setStoreNotUseStandardSerialization(final String objectClassName)
      throws ClassInfoException {
    final ClassInfo classInfo = classInfoMap.get(objectClassName);
    if (classInfo == null) {
      final ClassInfoAttributes classInfoAttributes = getOrCreateClassInfoAttribute(objectClassName);
      classInfoAttributes.setStoreNotUseStandardSerialization();
    } else {
      classInfo.setStoreNotUseStandardSerialization();
    }
  }
View Full Code Here

  @Override
  public void setStoreSerializeAndGZippedInOneRecord(
      final String objectClassName) throws ClassInfoException {
    final ClassInfo classInfo = classInfoMap.get(objectClassName);
    if (classInfo == null) {
      final ClassInfoAttributes classInfoAttributes = getOrCreateClassInfoAttribute(objectClassName);
      classInfoAttributes.setStoreSerializeAndGZippedInOneRecord();
    } else {
      classInfo.setStoreSerializeAndGZippedInOneRecord();
    }
  }
View Full Code Here

  @Override
  public void setStoreSerializeAndZippedInOneRecord(
      final String objectClassName) throws ClassInfoException {
    final ClassInfo classInfo = classInfoMap.get(objectClassName);
    if (classInfo == null) {
      final ClassInfoAttributes classInfoAttributes = getOrCreateClassInfoAttribute(objectClassName);
      classInfoAttributes.setStoreSerializeAndZippedInOneRecord();
    } else {
      classInfo.setStoreSerializeAndZippedInOneRecord();
    }
  }
View Full Code Here

TOP

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

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.