@Target(value=METHOD)
@Retention(value=RUNTIME)
@Documented
public @interface MyCount
abstract methods of ineterface can have parameter type pattens as blow:
1, no parameter
2, array or list or a common value
@MyCount("select count(1) from users where name in ?1")
public long count(List names);
3, javabean
@MyCount("select count(1) from users (where name=?name)?name")
public long count(User user);
4, Map<String, Object>
@MyCount("select count(1) from users (where name=?name)?name")
public long count(Map<String, Object> map);
return type is long.