ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles_Magid" <Charles_Ma...@comcast.net>
Subject Newbie question: execution, invocation, doit, getResults ...
Date Tue, 31 Jul 2007 19:32:26 GMT
I am an Abator & IBatis newbie.  I'm trying to figure out how to invoke my
query given the criteria I have established.  In other words, what goes in
the area labeled  "Fill in the blank" below?



		Reader reader =
Resources.getResourceAsReader("com/rbm/db/SqlMapConfig.xml");
		SqlMapClient sqlMap =
SqlMapClientBuilder.buildSqlMapClient(reader);
		try {
			sqlMap.startTransaction();
			PromotionitemtextExample pite = new
PromotionitemtextExample();
	
pite.createCriteria().andPromonetPromotionIdEqualTo(4);
			Promotionitemtext pit = [Fill in the blank]
			System.out.println(pit.toString());
			sqlMap.commitTransaction();
		} finally {
			sqlMap.endTransaction();

		}

Mime
View raw message