jlibs.jdbc.annotations.processor
Class DeleteMethod

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

public class DeleteMethod
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 DeleteMethod(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

DeleteMethod

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

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.