Package com.digitolio.jdbi.auto

Examples of com.digitolio.jdbi.auto.SqlSelectByPK.generate()


        method.type();
        method.annotate(StrategyAwareMapBean.class);
        method.annotate(SingleValueResult.class);
        JAnnotationUse selectAnnotation = method.annotate(SqlQuery.class);
        SqlSelectByPK sqlSelectById = new SqlSelectByPK(table);
        selectAnnotation.param("value", sqlSelectById.generate(new Binding()));
        for (Column column : table.getPrimaryKeyColumns()) {
            JVar param = method.param(column.getField().getType(), uncapitalize(column.getFieldName()));
            JAnnotationUse bind = param.annotate(Bind.class);
            bind.param("value", uncapitalize(column.getFieldName()));
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.