Package org.eweb4j.orm.dao

Examples of org.eweb4j.orm.dao.DAO


    return t;
  }

  public Query find() {
    Class<?> clazz = getClass();
    DAO dao = DAOFactory.getDAO(clazz, dsName);
    dao.selectAll();
    Query _query = new QueryImpl(dao);

    return _query;
  }


    return _query;
  }

  public Query find(String query, Object... params) {
    Class<?> clazz = getClass();
    DAO dao = DAOFactory.getDAO(clazz, dsName);

    dao.selectAll().where().append(query).fillArgs(params);
    Query _query = new QueryImpl(dao);

    return _query;
  }

    // }
  }
 
  @Test
  public void testDAO(){
    DAO dao = DAOFactory.getDAO(Pet.class);
    List<Pet> pets = dao.clear().selectAll().query(1,4);
    System.out.println(pets);
  }

TOP

Related Classes of org.eweb4j.orm.dao.DAO

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.