Examples of BadIdAnnotatedClassException


Examples of com.dooapp.gaedo.finders.id.BadIdAnnotatedClassException

            logger.fine("found id field of "
                + containedClass.getName() + "\nIt is "
                + f.toGenericString());
          }
          if (returned != null)
            throw new BadIdAnnotatedClassException(containedClass);
          if (logger.isLoggable(Level.CONFIG))
            logger.config("the field " + f.toGenericString()
                + " seems to be an id field");
          if (Long.class.equals(f.getType())
              || Long.TYPE.equals(f.getType())) {
            returned = new LongIdManager(containedClass, datastore, provider, repository, hierarchyManager);
            logger.config("using standard LongIdManager");
          } else if (String.class.equals(f.getType())) {
            logger.config("using standard StringIdManager");
          } else {
            throw new NoSuchIdManagerException(f);
          }
          if (logger.isLoggable(Level.FINE)) {
            logger.fine("As a consequence, id manager is a "
                + returned.getClass().getName());
          }
        }
        // Side effect : access to the field !
        f.setAccessible(true);
      }
    }
    if (returned == null)
      throw new BadIdAnnotatedClassException(containedClass);
    return returned;
  }
View Full Code Here

Examples of com.dooapp.gaedo.finders.id.BadIdAnnotatedClassException

    if (Long.class.equals(id.getType())
            || Long.TYPE.equals(id.getType())) {
      returned = new LongIdManager(containedClass, datastore, provider, repository, hierarchyManager);
    }
    if (returned == null)
      throw new BadIdAnnotatedClassException(containedClass);
    return returned;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.