117118119120121122123124125126
public IObjectAssert queryAsPoJo(String query, Class objClazz) { IN_DB_OPERATOR.set(true); try { Object o = SqlRunner.query(query, objClazz); return new ObjectAssert(o); } finally { IN_DB_OPERATOR.set(false); } }
412413414415416417418
* @param value * a object argument * @return */ public IObjectAssert object(Object bean) { return new ObjectAssert(bean); }
159160161162163164165
* a parameter general object will be asserted * * @return */ public IObjectAssert object() { return new ObjectAssert(); }
148149150151152153154155156157
public IObjectAssert queryAs(Class pojo) { IN_DB_OPERATOR.set(true); try { String query = "select * from " + table; Object o = SqlRunner.query(query, pojo); return new ObjectAssert(o); } finally { IN_DB_OPERATOR.set(false); } }