Package common.db.test.entity

Examples of common.db.test.entity.ProbaDva


  {
    TestAdvancedQueryRunner test = new TestAdvancedQueryRunner();

    test.testStringSelect();
    //-------------------------------
    ProbaDva pDva = new ProbaDva();
    pDva.setName("advanced_name");
    pDva.setDescription("advanced_desc");
    pDva.setNumberId(90);

    test.testInsert(pDva);
    test.testInsert(pDva);
    test.testInsert(pDva);
    test.testInsert(pDva);
    test.testInsert(pDva);
    test.testInsert(pDva);

    test.testGetAll();

    test.testSelectMulty(90);

    test.testSelectById(pDva.getId());

    test.testDelete(pDva.getId());

    test.testMultyDelete(pDva.getNumberId());

  }
View Full Code Here


    System.out.println("All " + all.toString());
  }

  private void testSelectById(Integer id)
  {
    ProbaDva p = getAdvancedQueryRunner().Query(
        Entity.probaDva,
        ProbaDvaProcessor.getOneRowHandler(),
        id);

    System.out.println("Default select One:" + p.toString());
  }
View Full Code Here

    return sqlGen;
  }

  public static void main(String[] varg)
  {
    ProbaDva pDva = new ProbaDva();
    pDva.setName("pera");
    pDva.setDescription("desc");
    pDva.setNumberId(12);

    TestSmartFildAdder tsf = new TestSmartFildAdder();

    pDva = tsf.testInsert(pDva);
    pDva = tsf.testInsert(pDva);
View Full Code Here

  }

  public ProbaDva processRow(ResultSet rs) throws SQLException
  {
    return new ProbaDva(
        rs.getInt("id"),
        rs.getString("name"),
        rs.getString("description"),
        DBUtilis.getInteger(rs, "number_Id")
    );
View Full Code Here

TOP

Related Classes of common.db.test.entity.ProbaDva

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.