public abstract class SqlBuilderHelper extends Object
Utility class for build methods
| Constructor and Description |
|---|
SqlBuilderHelper() |
| Modifier and Type | Method and Description |
|---|---|
static int |
countParameterOfType(ModelMethod method,
com.squareup.javapoet.TypeName parameter) |
static void |
forEachMethods(TypeElement typeElement,
AnnotationUtility.MethodFoundListener listener)
Iterate over methods.
|
static String |
generateColumnCheckSet(com.squareup.javapoet.TypeSpec.Builder builder,
SQLiteModelMethod method,
Set<String> columnNames) |
static void |
generateJavaDocForContentProvider(SQLiteModelMethod method,
com.squareup.javapoet.MethodSpec.Builder methodBuilder) |
static void |
generateLog(SQLiteModelMethod method,
com.squareup.javapoet.MethodSpec.Builder methodBuilder)
Generate log for INSERT operations
|
static void |
generateLogForContentValues(SQLiteModelMethod method,
com.squareup.javapoet.MethodSpec.Builder methodBuilder)
Generate log for content values
|
static void |
generateLogForContentValuesContentProvider(SQLiteModelMethod method,
com.squareup.javapoet.MethodSpec.Builder methodBuilder) |
static void |
generateLogForWhereParameters(SQLiteModelMethod method,
com.squareup.javapoet.MethodSpec.Builder methodBuilder)
Generate log for where conditions.
|
static void |
generateSQLForInsertDynamic(SQLiteModelMethod method,
com.squareup.javapoet.MethodSpec.Builder methodBuilder)
Generate log for INSERT operations
|
static void |
generateSQLForStaticQuery(SQLiteModelMethod method,
com.squareup.javapoet.MethodSpec.Builder methodBuilder)
Generate log for INSERT operations
|
static void |
generateWhereCondition(com.squareup.javapoet.MethodSpec.Builder methodBuilder,
SQLiteModelMethod method,
boolean sqlWhereParamsAlreadyDefined)
Generate where management code.
|
static boolean |
hasParameterOfType(ModelMethod method,
com.squareup.javapoet.TypeName parameter) |
static List<com.abubusoft.kripton.common.Pair<String,com.squareup.javapoet.TypeName>> |
orderContentValues(SQLiteModelMethod method,
List<com.abubusoft.kripton.common.Pair<String,com.squareup.javapoet.TypeName>> updateableParams) |
public static String generateColumnCheckSet(com.squareup.javapoet.TypeSpec.Builder builder, SQLiteModelMethod method, Set<String> columnNames)
elementUtils - builder - method - columnNames - public static void generateJavaDocForContentProvider(SQLiteModelMethod method, com.squareup.javapoet.MethodSpec.Builder methodBuilder)
method - methodBuilder - public static void generateLogForContentValues(SQLiteModelMethod method, com.squareup.javapoet.MethodSpec.Builder methodBuilder)
Generate log for content values
required variable are:
created variables are:
method - methodBuilder - public static void generateLogForWhereParameters(SQLiteModelMethod method, com.squareup.javapoet.MethodSpec.Builder methodBuilder)
Generate log for where conditions.
required variable are:
created variables are:
method - methodBuilder - public static void forEachMethods(TypeElement typeElement, AnnotationUtility.MethodFoundListener listener)
elementUtils - typeElement - listener - public static boolean hasParameterOfType(ModelMethod method, com.squareup.javapoet.TypeName parameter)
public static int countParameterOfType(ModelMethod method, com.squareup.javapoet.TypeName parameter)
public static void generateWhereCondition(com.squareup.javapoet.MethodSpec.Builder methodBuilder,
SQLiteModelMethod method,
boolean sqlWhereParamsAlreadyDefined)
Generate where management code.
methodBuilder - method - jql - jqlChecker - sqlWhereStatement - public static void generateLog(SQLiteModelMethod method, com.squareup.javapoet.MethodSpec.Builder methodBuilder)
Generate log for INSERT operations
method - methodBuilder - public static void generateSQLForInsertDynamic(SQLiteModelMethod method, com.squareup.javapoet.MethodSpec.Builder methodBuilder)
Generate log for INSERT operations
method - methodBuilder - public static void generateSQLForStaticQuery(SQLiteModelMethod method, com.squareup.javapoet.MethodSpec.Builder methodBuilder)
Generate log for INSERT operations
method - methodBuilder - public static void generateLogForContentValuesContentProvider(SQLiteModelMethod method, com.squareup.javapoet.MethodSpec.Builder methodBuilder)
public static List<com.abubusoft.kripton.common.Pair<String,com.squareup.javapoet.TypeName>> orderContentValues(SQLiteModelMethod method, List<com.abubusoft.kripton.common.Pair<String,com.squareup.javapoet.TypeName>> updateableParams)
Copyright © 2017. All rights reserved.