public class BindTableGenerator extends AbstractBuilder implements ModelElementVisitor<SQLEntity,SQLProperty>
Generate class ${entity}Table which represents table for entity.
| Modifier and Type | Field and Description |
|---|---|
static String |
SUFFIX |
classBuilder, elementUtils, filer, model| Constructor and Description |
|---|
BindTableGenerator(Elements elementUtils,
Filer filer,
SQLiteDatabaseSchema model) |
| Modifier and Type | Method and Description |
|---|---|
static com.abubusoft.kripton.common.Pair<String,String> |
buldIndexes(SQLEntity entity,
boolean unique,
int counter) |
static void |
generate(Elements elementUtils,
Filer filer,
SQLiteDatabaseSchema schema)
Generate table for entities
|
static String |
getTableClassName(SQLEntity entity) |
static com.squareup.javapoet.ClassName |
tableClassName(SQLEntity entity) |
void |
visit(SQLEntity entity) |
void |
visit(SQLProperty kriptonProperty) |
public static final String SUFFIX
public BindTableGenerator(Elements elementUtils, Filer filer, SQLiteDatabaseSchema model)
public static void generate(Elements elementUtils, Filer filer, SQLiteDatabaseSchema schema) throws Exception
elementUtils - filer - schema - Exceptionpublic static com.squareup.javapoet.ClassName tableClassName(SQLEntity entity)
public void visit(SQLEntity entity) throws Exception
visit in interface ModelElementVisitor<SQLEntity,SQLProperty>Exceptionpublic static com.abubusoft.kripton.common.Pair<String,String> buldIndexes(SQLEntity entity, boolean unique, int counter)
public void visit(SQLProperty kriptonProperty)
visit in interface ModelElementVisitor<SQLEntity,SQLProperty>Copyright © 2017. All rights reserved.