com.github.drinkjava2.jsqlbox
Class SqlMapperUtils

java.lang.Object
  extended by com.github.drinkjava2.jsqlbox.SqlMapperUtils

public abstract class SqlMapperUtils
extends Object

Store some public static methods of Guesser

Since:
1.0.8
Author:
Yong Zhu

Field Summary
static String CHILD_SUFFIX
           
 
Constructor Summary
SqlMapperUtils()
           
 
Method Summary
static Map<String,Object> buildParamMap(String callerClassName, String callerMethodName, Object... params)
           
static Class<?> createChildClass(Class<?> abstractClass)
          This is the method body to build an instance based on abstract class which extended from ActiveRecord or implemented ActiveRecordSupport
static void dealNewIocModelAliasAnnotation(List<Object> realParamList, Method callerMethod)
          Deal @New @Ioc @Model @Alias Annotations
static String[] getMethodParamNames(String classFullName, String callerMethodName)
          Get method name String[], this method only works for Text support case, i.e., put java in resouce folder
static String getSqlOfMethod(String callerClassName, Method callerMethod)
          Get the sql from @Sql annotation or text
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHILD_SUFFIX

public static final String CHILD_SUFFIX
See Also:
Constant Field Values
Constructor Detail

SqlMapperUtils

public SqlMapperUtils()
Method Detail

createChildClass

public static Class<?> createChildClass(Class<?> abstractClass)
This is the method body to build an instance based on abstract class which extended from ActiveRecord or implemented ActiveRecordSupport

Parameters:
activeClass -
Returns:
Object instance

buildParamMap

public static Map<String,Object> buildParamMap(String callerClassName,
                                               String callerMethodName,
                                               Object... params)

getMethodParamNames

public static String[] getMethodParamNames(String classFullName,
                                           String callerMethodName)
Get method name String[], this method only works for Text support case, i.e., put java in resouce folder


getSqlOfMethod

public static String getSqlOfMethod(String callerClassName,
                                    Method callerMethod)
Get the sql from @Sql annotation or text


dealNewIocModelAliasAnnotation

public static void dealNewIocModelAliasAnnotation(List<Object> realParamList,
                                                  Method callerMethod)
Deal @New @Ioc @Model @Alias Annotations



Copyright © 2018. All rights reserved.