jlibs.jdbc.annotations.processor
Class WhereMethod

java.lang.Object
  extended by jlibs.jdbc.annotations.processor.WhereMethod
Direct Known Subclasses:
DeleteMethod, SelectColumnMethod, SelectMethod, UpsertMethod

public class WhereMethod
extends Object

Author:
Santhosh Kumar T

Field Summary
protected  jlibs.jdbc.annotations.processor.Columns columns
           
protected static Map<String,String> HINTS
           
protected  String initialQuery
           
protected  ExecutableElement method
           
protected  AnnotationMirror mirror
           
protected  Printer printer
           
 
Constructor Summary
protected WhereMethod(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)
           
protected  CharSequence[] defaultSQL()
           
protected  CharSequence[] defaultSQL(Iterator<VariableElement> iter)
           
 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

initialQuery

protected String initialQuery

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

WhereMethod

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

defaultSQL

protected CharSequence[] defaultSQL()

defaultSQL

protected CharSequence[] defaultSQL(Iterator<VariableElement> iter)

create

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

methodName

protected String methodName()

userSQL

protected String userSQL()

generate

public void generate()

code

protected String[] code()

queryMethod

protected String queryMethod(CharSequence[] sequences)

queryMethod

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

validateParamCount

protected void validateParamCount()

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.