Package com.reflectiondao.annotation

Examples of com.reflectiondao.annotation.DatabaseField.type()


      List<Object> params = new ArrayList<Object>();

      for (Field f : this.type.getDeclaredFields()) {
        DatabaseField db = f.getAnnotation(DatabaseField.class);

        params.add(db.type().getValue(f, rs));

      }

      @SuppressWarnings("unchecked")
      Constructor<S> ctor = (Constructor<S>) this.type.getConstructors()[0];
View Full Code Here


    DatabaseFieldStrategy<T> strat = new DatabaseFieldStrategy<>();

    for (Field f : t.getClass().getDeclaredFields()) {
      DatabaseField db = f.getAnnotation(DatabaseField.class);
      if (strat.isNotKey(db) && !strat.hasDefault(db)) {
        DatabaseType type = db.type();

        f.setAccessible(true);

        strat.processFieldForStatement(type, f, t, ps, i);
        i++;
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.