Examples of Pojo


Examples of org.jboss.test.microcontainer.beans.POJO

      }
   }

   private void checkIntercepted1(Dependency dependency1)
   {
      POJO pojo1 = (POJO) getBean("Intercepted1");
      assertNotNull(pojo1);
      TestAspectWithDependency.invoked = null;
      TestInterceptorWithDependency.invoked = null;
      pojo1.method(2);
      assertNotNull(TestAspectWithDependency.invoked);
      assertTrue(dependency1 == TestAspectWithDependency.invoked);
      assertNull(TestInterceptorWithDependency.invoked);
   }
View Full Code Here

Examples of org.nutz.dao.sql.Pojo

    return opt.getUpdateCount();
  }

  public int delete(Class<?> classOfT, long id) {
    Entity<?> en = holder.getEntity(classOfT);
    Pojo pojo = pojoMaker.makeDelete(en).append(Pojos.Items.cndId(en, id));
    pojo.addParamsBy(id);
    _exec(pojo);
    return pojo.getUpdateCount();
  }
View Full Code Here

Examples of org.nutz.dao.sql.Pojo

    return pojo.getUpdateCount();
  }

  public int delete(Class<?> classOfT, String name) {
    Entity<?> en = holder.getEntity(classOfT);
    Pojo pojo = pojoMaker.makeDelete(en)
                .append(Pojos.Items.cndName(en, name))
                .addParamsBy(name);
    _exec(pojo);
    return pojo.getUpdateCount();
  }
View Full Code Here

Examples of org.nutz.dao.sql.Pojo

    return pojo.getUpdateCount();
  }

  public <T> int deletex(Class<T> classOfT, Object... pks) {
    Entity<T> en = holder.getEntity(classOfT);
    Pojo pojo = pojoMaker.makeDelete(en).append(Pojos.Items.cndPk(en, pks));
    _exec(pojo);
    return pojo.getUpdateCount();
  }
View Full Code Here

Examples of org.nutz.dao.sql.Pojo

    return opt.exec().getUpdateCount();
  }

  public <T> List<T> query(Class<T> classOfT, Condition cnd, Pager pager) {
    Pojo pojo = pojoMaker.makeQuery(holder.getEntity(classOfT))
                .append(Pojos.Items.cnd(cnd))
                .addParamsBy("*")
                .setPager(pager)
                .setAfter(_pojo_queryEntity);
    expert.formatQuery(pojo);
    _exec(pojo);
    return pojo.getList(classOfT);
  }
View Full Code Here

Examples of org.nutz.dao.sql.Pojo

    _exec(pojo);
    return pojo.getList(classOfT);
  }

  public List<Record> query(String tableName, Condition cnd, Pager pager) {
    Pojo pojo = pojoMaker.makeQuery(tableName)
                .addParamsBy("*")
                .setPager(pager)
                .append(Pojos.Items.cnd(cnd));
    expert.formatQuery(pojo);
    pojo.setAfter(_pojo_queryRecord);
    _exec(pojo);
    return pojo.getList(Record.class);
  }
View Full Code Here

Examples of org.nutz.dao.sql.Pojo

    return pojo.getList(Record.class);
  }

  public <T> T fetch(Class<T> classOfT, long id) {
    Entity<T> en = holder.getEntity(classOfT);
    Pojo pojo = pojoMaker.makeQuery(en)
                .append(Pojos.Items.cndId(en, id))
                .addParamsBy(id)
                .setAfter(_pojo_fetchEntity);
    _exec(pojo);
    return pojo.getObject(classOfT);
  }
View Full Code Here

Examples of org.nutz.dao.sql.Pojo

    return pojo.getObject(classOfT);
  }

  public <T> T fetch(Class<T> classOfT, String name) {
    Entity<T> en = holder.getEntity(classOfT);
    Pojo pojo = pojoMaker.makeQuery(en)
                .append(Pojos.Items.cndName(en, name))
                .addParamsBy(name)
                .setAfter(_pojo_fetchEntity);
    _exec(pojo);
    return pojo.getObject(classOfT);
  }
View Full Code Here

Examples of org.nutz.dao.sql.Pojo

    }
    return "";
  }

  public static Pojo pojo(JdbcExpert expert, Entity<?> en, SqlType type) {
    Pojo pojo = expert.createPojo(type);
    pojo.getContext().setFieldMatcher(FieldFilter.get(en.getType()));
    return pojo;
  }
View Full Code Here

Examples of org.nutz.dao.sql.Pojo

    return pojo.getObject(classOfT);
  }

  public <T> T fetchx(Class<T> classOfT, Object... pks) {
    Entity<T> en = holder.getEntity(classOfT);
    Pojo pojo = pojoMaker.makeQuery(en)
                .append(Pojos.Items.cndPk(en, pks))
                .setAfter(_pojo_fetchEntity);
    _exec(pojo);
    return pojo.getObject(classOfT);
  }
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.