public abstract class SQLTransformer extends Object
| Constructor and Description |
|---|
SQLTransformer() |
| Modifier and Type | Method and Description |
|---|---|
static SQLColumnType |
columnType(ModelProperty property) |
static SQLColumnType |
columnType(com.squareup.javapoet.TypeName property) |
static String |
columnTypeAsString(ModelProperty property) |
static void |
cursor2Java(com.squareup.javapoet.MethodSpec.Builder methodBuilder,
com.squareup.javapoet.TypeName beanClass,
ModelProperty property,
String beanName,
String cursorName,
String indexName)
"resultBean", "cursor","indexes["+(i++)+"]"
|
static boolean |
isSupportedJDKType(com.squareup.javapoet.TypeName typeName) |
static void |
java2ContentValues(com.squareup.javapoet.MethodSpec.Builder methodBuilder,
SQLDaoDefinition sqlDaoDefinition,
com.squareup.javapoet.TypeName paramType,
String paramName)
Used to convert a generic parameter to contentValues
|
static void |
java2ContentValues(com.squareup.javapoet.MethodSpec.Builder methodBuilder,
com.squareup.javapoet.TypeName beanClass,
String beanName,
ModelProperty property)
Used to convert a property of managed bean to contentValue
|
static SQLTransform |
lookup(TypeMirror typeMirror)
Get transformer for type
|
static SQLTransform |
lookup(com.squareup.javapoet.TypeName typeName)
Get transformer for type
|
static void |
resetBean(com.squareup.javapoet.MethodSpec.Builder methodBuilder,
com.squareup.javapoet.TypeName beanClass,
String beanName,
ModelProperty property,
String cursorName,
String indexName) |
public static void cursor2Java(com.squareup.javapoet.MethodSpec.Builder methodBuilder,
com.squareup.javapoet.TypeName beanClass,
ModelProperty property,
String beanName,
String cursorName,
String indexName)
beanClass - public static void java2ContentValues(com.squareup.javapoet.MethodSpec.Builder methodBuilder,
com.squareup.javapoet.TypeName beanClass,
String beanName,
ModelProperty property)
methodBuilder - beanClass - beanName - property - public static void java2ContentValues(com.squareup.javapoet.MethodSpec.Builder methodBuilder,
SQLDaoDefinition sqlDaoDefinition,
com.squareup.javapoet.TypeName paramType,
String paramName)
methodBuilder - sqlDaoDefinition - paramType - paramName - public static SQLTransform lookup(TypeMirror typeMirror)
typeMirror - public static SQLTransform lookup(com.squareup.javapoet.TypeName typeName)
typeName - public static boolean isSupportedJDKType(com.squareup.javapoet.TypeName typeName)
public static void resetBean(com.squareup.javapoet.MethodSpec.Builder methodBuilder,
com.squareup.javapoet.TypeName beanClass,
String beanName,
ModelProperty property,
String cursorName,
String indexName)
public static String columnTypeAsString(ModelProperty property)
public static SQLColumnType columnType(ModelProperty property)
public static SQLColumnType columnType(com.squareup.javapoet.TypeName property)
Copyright © 2017. All rights reserved.