jlibs.jdbc.annotations.processor
Class UpsertMethod

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

public class UpsertMethod
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 UpsertMethod(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()
           
 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
 
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

UpsertMethod

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

code

protected String[] code()

defaultSQL

protected CharSequence[] defaultSQL()
Overrides:
defaultSQL in class WhereMethod

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()

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.