public class SqlUtility extends Object
| Constructor and Description |
|---|
SqlUtility() |
| Modifier and Type | Method and Description |
|---|---|
static com.abubusoft.kripton.common.Pair<String,List<com.abubusoft.kripton.common.Pair<String,com.squareup.javapoet.TypeName>>> |
extractParametersFromString(String value,
SQLiteModelMethod method,
SQLEntity entity)
Extract from value string every placeholder ${}, replace it with ? and then convert every field typeName with column typeName.
|
static String |
getColumnName(SQLProperty property)
Obtain column typeName for property
|
static String |
nameFromTable(SQLEntity entity,
SQLProperty property) |
static String |
replaceParametersWithQuestion(String value,
String replaceValue)
Extract from value string every placeholder ${}, replace it with ? and then convert every field typeName with column typeName.
|
public static com.abubusoft.kripton.common.Pair<String,List<com.abubusoft.kripton.common.Pair<String,com.squareup.javapoet.TypeName>>> extractParametersFromString(String value, SQLiteModelMethod method, SQLEntity entity)
value - method - columnNameConverter - entity - public static String replaceParametersWithQuestion(String value, String replaceValue)
value - public static String getColumnName(SQLProperty property)
property - public static String nameFromTable(SQLEntity entity, SQLProperty property)
Copyright © 2017. All rights reserved.