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

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


        classInfoFactory);
  }

  private void add(final Map<ClassInfo, Set<ObjectNode>> objectNodeByClass,
      final ObjectNode objectNode) {
    final ClassInfo ownedOjectClassInfo = objectNode
        .getOwnedObjectClassInfo();
    Set<ObjectNode> set = objectNodeByClass.get(ownedOjectClassInfo);
    if (set == null) {
      set = new HashSet<ObjectNode>();
      objectNodeByClass.put(ownedOjectClassInfo, set);
View Full Code Here


      throw new GraphException(exception);
    }
  }

  private void createSonOfArray() throws GraphException {
    final ClassInfo componentType = ownedObjectClassInfo.getComponentType();
    if (!componentType.isPrimitiveType()) {
      final int arrayLength = Array.getLength(ownedObject);
      for (int index = 0; index < arrayLength; index++) {
        Object elementObject;
        try {
          elementObject = helperReflect.getArrayElement(ownedObject,
View Full Code Here

    return rootObjectNode;
  }

  public Set<ObjectNode> objectNodeForClass(final Class<?> clazz)
      throws GraphException {
    ClassInfo classInfo;
    try {
      classInfo = classInfoFactory.getNoProxyClassInfo(clazz);
    } catch (ClassInfoException exception) {
      throw new GraphException(exception);
    }
View Full Code Here

      ObjectIOClassNotFoundException, ObjectIODataCorruptedException,
      ObjectIONotSerializableException, ProxyException {
    if (!excludedObjectSet.containsKey(object)) {
      ProxyManager2.forceLoad(object);
      excludedObjectSet.put(object, object);
      final ClassInfo classInfo = classInfoFactory
          .getNoProxyClassInfo(object.getClass());
      final FieldInfo[] fieldInfos = classInfo
          .getAllDeclaredFieldsForGenericIO();
      if (!classInfo.isBasicOrPrimitiveType()
          && !classInfo.isStringType()) {
        for (final FieldInfo fieldInfo : fieldInfos) {
          final Object referenced = helperReflect.getFieldValue(
              object, fieldInfo, true);
          if (referenced != null) {// NOPMD
            excludeObject(referenced, excludedObjectSet);
View Full Code Here

  }

  public FieldInfo createFieldInfo(final IClassInfoFactory classInfoFactory,
      final Field field) throws ReflectException {
    try {
      final ClassInfo declaringClass = classInfoFactory
          .getNoProxyClassInfo(field.getDeclaringClass());
      final ClassInfo fieldType = classInfoFactory
          .getNoProxyClassInfo(field.getType());
      final FieldInfo fieldInfo = new FieldInfo(field, declaringClass,
          fieldType);
      return fieldInfo;
    } catch (ClassInfoException exception) {
View Full Code Here

  @Override
  public Object newInstance(final Class<?> objectClass) {
    synchronized (mutex) {
      try {
        final ClassInfo objectClassInfo = classInfoFactory
            .getNoProxyClassInfo(objectClass);
        final Object newInstance;
        if (proxyMode) {
          final StorageInfo storageInfo = new StorageInfo();
          newInstance = proxyManager2.newInstanceConstruct(
View Full Code Here

  }

  @Override
  public ClassInfo classInfoOfObject(final Object object)
      throws ProxyException {
    final ClassInfo classInfo;
    if (object == null) {
      classInfo = ClassInfo.NULL;
    } else {
      try {
        classInfo = classInfoFactory.getNoProxyClassInfo(object
View Full Code Here

   * @throws ProxyException
   */
  @Override
  public ClassInfo classInfoOfObject(final Object object)
      throws ProxyException {
    ClassInfo classInfo;
    if (object == null) {
      classInfo = ClassInfo.NULL;
    } else {
      try {
        classInfo = classInfoFactory.getNoProxyClassInfo(object
View Full Code Here

  public ObjectAndPersistInfo getObjectAndPersistInfo() {
    return objectAndPersistInfo;
  }

  public ClassInfo getToWriteObjectClassInfo() {
    final ClassInfo toWriteObjectClassInfo;
    if (declaredClassInfo.isBasicOrPrimitiveType()) {
      toWriteObjectClassInfo = declaredClassInfo;
    } else {
      toWriteObjectClassInfo = objectAndPersistInfo.objectClassInfo;
    }
View Full Code Here

  @Override
  public int getClassIdentifier(final Class<?> clazz) throws StoreException,
      StoreClassNotFoundException {
    try {
      final ClassInfo classInfo = classInfoFactory
          .getNoProxyClassInfo(clazz);
      return classNameManager.getIdentifier(classInfo);
    } catch (final ObjectIOException exception) {
      throw new StoreException(exception);
    } catch (final ObjectIOClassNotFoundException exception) {
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.