jlibs.jdbc.annotations.processor
Class SelectColumnMethod

java.lang.Object
  extended by jlibs.jdbc.annotations.processor.WhereMethod
      extended by jlibs.jdbc.annotations.processor.SelectColumnMethod

public class SelectColumnMethod
extends WhereMethod

Author:
Santhosh Kumar T

Field Summary
protected  jlibs.jdbc.annotations.processor.Columns columns
           
protected static Map<String,String> HINTS
           
protected  ExecutableElement method
           
protected  AnnotationMirror mirror
           
protected  Printer printer
           
 
Fields inherited from class jlibs.jdbc.annotations.processor.WhereMethod
initialQuery
 
Constructor Summary
protected SelectColumnMethod(Printer printer, ExecutableElement method, AnnotationMirror mirror, jlibs.jdbc.annotations.processor.Columns columns)
           
 
Method Summary
protected  String[] code()
           
static jlibs.jdbc.annotations.processor.DMLMethod create(Printer printer, ExecutableElement method, jlibs.jdbc.annotations.processor.Columns columns)
           
 void generate()
           
protected  jlibs.jdbc.annotations.processor.ColumnProperty getColumn(VariableElement param)
           
protected  jlibs.jdbc.annotations.processor.ColumnProperty getColumn(VariableElement param, String propertyName)
           
protected  String methodName()
           
protected  CharSequence[] preparedSQL(String value)
           
protected  String queryMethod(CharSequence[] sequences)
           
protected static String queryMethod(String methodName, CharSequence... sequences)
           
protected  String replacePropertiesWithColumns(String sql)
           
protected  CharSequence[] sql()
           
protected  String userSQL()
           
protected  void validateParamCount()
           
 
Methods inherited from class jlibs.jdbc.annotations.processor.WhereMethod
defaultSQL, defaultSQL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HINTS

protected static final Map<String,String> HINTS

printer

protected Printer printer

method

protected ExecutableElement method

mirror

protected AnnotationMirror mirror

columns

protected jlibs.jdbc.annotations.processor.Columns columns
Constructor Detail

SelectColumnMethod

protected SelectColumnMethod(Printer printer,
                             ExecutableElement method,
                             AnnotationMirror mirror,
                             jlibs.jdbc.annotations.processor.Columns columns)
Method Detail

validateParamCount

protected void validateParamCount()

code

protected String[] code()

methodName

protected String methodName()

create

public static jlibs.jdbc.annotations.processor.DMLMethod create(Printer printer,
                                                                ExecutableElement method,
                                                                jlibs.jdbc.annotations.processor.Columns columns)

userSQL

protected String userSQL()

generate

public void generate()

queryMethod

protected String queryMethod(CharSequence[] sequences)

queryMethod

protected static String queryMethod(String methodName,
                                    CharSequence... sequences)

sql

protected final CharSequence[] sql()

replacePropertiesWithColumns

protected String replacePropertiesWithColumns(String sql)

preparedSQL

protected CharSequence[] preparedSQL(String value)

getColumn

protected jlibs.jdbc.annotations.processor.ColumnProperty getColumn(VariableElement param)

getColumn

protected jlibs.jdbc.annotations.processor.ColumnProperty getColumn(VariableElement param,
                                                                    String propertyName)


Copyright © 2016. All rights reserved.