Release Notes: com.altuure.yagdao-0.3.jar

Dec 9, 2010 · 1 min read

Append Method handler
Another dynamic query builder. But this one , use simple StringBuilder instead of trying to parse the argument. So more fast and adjustable dynamic query builder

For more see test cases and example dao

@YMethod(type = YMethodType.APPEND,select = "pbyte,count(id)",groupBy = "pbyte")
List<SimpleBean> append2(@YParameter("pint>=?") int i);
@YMethod(type = YMethodType.APPEND,select = "pbyte,count(id)",groupBy = "pbyte",having = "count(id)>10")
List<SimpleBean> append3(@YParameter("pint>=?") int i);
group and having support with aggregation supportAppend and JPA criteria methods now support Projections

Execute Method handler

bulk method support@YMethod(type = YMethodType.EXECUTE,query = "update SimpleBean set pint=:newInt where id=:id ")
int execute1(@YParameter(value = "newInt") int newInt,@YParameter(value = "id") long id);

experimental criteria query parser for JPA

Criteria method is now support more sophisticated queries . please see test cases and example dao@YMethod(type = YMethodType.CRITERIA)
SearchResultList<SimpleBean> criteria2(@YParameter("pint >=") Integer arg1,@YParameter("pint <=") Integer arg2);
@YMethod(type = YMethodType.CRITERIA)
SearchResultList<SimpleBean> criteria3(@YParameter("pstring is null") boolean apply);
@YMethod(type = YMethodType.CRITERIA)
SearchResultList<Object> criteria2CheckApplied(@YParameter("pint>=20000") boolean apply1,@YParameter( "pint<=50000") boolean apply2);


Continous Developer Blog

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store