public abstract class ManagedPropertyPersistenceHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ManagedPropertyPersistenceHelper.PersistType |
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_FIELD_NAME |
| Constructor and Description |
|---|
ManagedPropertyPersistenceHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
generateFieldParser(BindTypeContext context,
ManagedPropertyPersistenceHelper.PersistType persistType,
BindProperty property,
Modifier... modifiers)
generates code to manage field parsing
|
static void |
generateFieldPersistance(BindTypeContext context,
List<? extends ManagedModelProperty> collection,
ManagedPropertyPersistenceHelper.PersistType persistType,
boolean forceName,
Modifier... modifiers)
Manage field's persistence for both in SharedPreference and SQLite flavours.
|
static void |
generateFieldSerialize(BindTypeContext context,
ManagedPropertyPersistenceHelper.PersistType persistType,
BindProperty property,
Modifier... modifiers)
generates code to manage field serialization
|
static void |
generateParamParser(BindTypeContext context,
String methodName,
com.squareup.javapoet.TypeName parameterTypeName,
ManagedPropertyPersistenceHelper.PersistType persistType) |
static void |
generateParamSerializer(BindTypeContext context,
String propertyName,
com.squareup.javapoet.TypeName parameterTypeName,
ManagedPropertyPersistenceHelper.PersistType persistType) |
public static String DEFAULT_FIELD_NAME
public static void generateFieldPersistance(BindTypeContext context, List<? extends ManagedModelProperty> collection, ManagedPropertyPersistenceHelper.PersistType persistType, boolean forceName, Modifier... modifiers)
context - collection - persistType - forceName - modifiers - public static void generateFieldSerialize(BindTypeContext context, ManagedPropertyPersistenceHelper.PersistType persistType, BindProperty property, Modifier... modifiers)
context - persistType - property - modifiers - public static void generateFieldParser(BindTypeContext context, ManagedPropertyPersistenceHelper.PersistType persistType, BindProperty property, Modifier... modifiers)
context - persistType - property - modifiers - public static void generateParamSerializer(BindTypeContext context, String propertyName, com.squareup.javapoet.TypeName parameterTypeName, ManagedPropertyPersistenceHelper.PersistType persistType)
public static void generateParamParser(BindTypeContext context, String methodName, com.squareup.javapoet.TypeName parameterTypeName, ManagedPropertyPersistenceHelper.PersistType persistType)
Copyright © 2017. All rights reserved.