| Modifier and Type | Method and Description |
|---|---|
static void |
AssertKripton.assertTrueOrInvalidMethodSignException(boolean expression,
SQLiteModelMethod method) |
static void |
AssertKripton.assertTrueOrInvalidMethodSignException(boolean expression,
SQLiteModelMethod method,
String messageFormat,
Object... args)
Assertion which generate an exception if expression is not true
|
static void |
AssertKripton.assertTrueOrUnknownClassInJQLException(boolean expression,
SQLiteModelMethod method,
String className) |
static void |
AssertKripton.assertTrueOrUnknownParamInJQLException(boolean expression,
SQLiteModelMethod method,
String paramName) |
static void |
AssertKripton.assertTrueOrUnknownPropertyInJQLException(boolean expression,
SQLiteModelMethod method,
String columnName) |
static void |
AssertKripton.failUnknownPropertyInJQLException(SQLiteModelMethod method,
Class<? extends Annotation> annotationClazz,
AnnotationAttributeType attribute,
String fieldName) |
static void |
AssertKripton.failWithInvalidMethodSignException(boolean expression,
SQLiteModelMethod method)
if expression is true, it fails.
|
static void |
AssertKripton.failWithInvalidMethodSignException(boolean expression,
SQLiteModelMethod method,
String messageFormat,
Object... args)
if expression is true, it fails.
|
static void |
AssertKripton.failWithMethodWithoutSupportedAnnotationException(SQLiteModelMethod value) |
| Modifier and Type | Method and Description |
|---|---|
static void |
TypeUtility.checkTypeCompatibility(SQLiteModelMethod method,
com.abubusoft.kripton.common.Pair<String,com.squareup.javapoet.TypeName> item,
ModelProperty property)
Check if type if compatibility
|
static boolean |
TypeUtility.isNullable(SQLiteModelMethod method,
com.abubusoft.kripton.common.Pair<String,com.squareup.javapoet.TypeName> methodParam,
ModelProperty property)
Check if method parameter is nullable.
|
| Constructor and Description |
|---|
InvalidMethodSignException(SQLiteModelMethod method) |
InvalidMethodSignException(SQLiteModelMethod method,
String msg) |
InvalidTableNameInJQLException(SQLiteModelMethod method,
String tableName) |
MethodParameterNotFoundException(SQLiteModelMethod method,
String paramName) |
PropertyInAnnotationNotFoundException(SQLiteModelMethod method,
String fieldName) |
PropertyNotFoundException(SQLiteModelMethod method,
String fieldName,
com.squareup.javapoet.TypeName typeName) |
UnknownClassInJQLException(SQLiteModelMethod method,
String className) |
UnknownParamUsedInJQLException(SQLiteModelMethod method,
String paramName) |
UnknownPropertyInJQLException(SQLiteModelMethod method,
Class<? extends Annotation> annotation,
AnnotationAttributeType attribute,
String propertyName) |
UnknownPropertyInJQLException(SQLiteModelMethod method,
String propertyName) |
| Modifier and Type | Field and Description |
|---|---|
SQLiteModelMethod |
BindContentProviderBuilder.ContentEntry.delete |
SQLiteModelMethod |
BindContentProviderBuilder.ContentEntry.insert |
SQLiteModelMethod |
BindContentProviderBuilder.ContentEntry.select |
SQLiteModelMethod |
BindContentProviderBuilder.ContentEntry.update |
| Modifier and Type | Method and Description |
|---|---|
String |
ModifyBeanHelper.buildJavadoc(com.squareup.javapoet.MethodSpec.Builder methodBuilder,
boolean updateMode,
SQLiteModelMethod method,
String beanNameParameter,
String whereCondition,
List<SQLProperty> listUsedProperty,
List<String> attributesUsedInWhereConditions) |
void |
ModifyBeanHelper.buildReturnCode(com.squareup.javapoet.MethodSpec.Builder methodBuilder,
boolean updateMode,
SQLiteModelMethod method,
com.squareup.javapoet.TypeName returnType) |
static void |
SqlModifyBuilder.checkContentProviderVarsAndArguments(SQLiteModelMethod method,
List<JQLPlaceHolder> placeHolders) |
static void |
AbstractSelectCodeGenerator.checkUnusedParameters(SQLiteModelMethod method,
Set<String> usedMethodParameters,
com.squareup.javapoet.TypeName excludedClasses)
Check if there are unused method parameters.
|
static SqlInsertBuilder.InsertType |
SqlInsertBuilder.detectInsertType(SQLiteModelMethod method) |
static SqlModifyBuilder.ModifyType |
SqlModifyBuilder.detectModifyType(SQLiteModelMethod method,
JQL.JQLType jqlType)
Detect method type
|
void |
SqlAnalyzer.execute(Elements elementUtils,
SQLiteModelMethod method,
String sqlStatement)
Extract from value string every placeholder ${}, replace it with ? and then convert every field typeName with column typeName.
|
static com.abubusoft.kripton.common.Pair<String,List<com.abubusoft.kripton.common.Pair<String,com.squareup.javapoet.TypeName>>> |
SqlUtility.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 List<SQLProperty> |
CodeBuilderUtility.extractUsedProperties(SQLiteModelMethod method,
Class<? extends Annotation> annotationClazz,
com.squareup.javapoet.MethodSpec.Builder methodBuilder,
List<String> alreadyUsedBeanPropertiesNames)
Generate code necessary to put bean properties in content values map.
|
void |
SqlModifyBuilder.ModifyCodeGenerator.generate(Elements elementUtils,
com.squareup.javapoet.MethodSpec.Builder methodBuilder,
boolean mapFields,
SQLiteModelMethod method,
com.squareup.javapoet.TypeName returnType) |
void |
SqlInsertBuilder.InsertCodeGenerator.generate(Elements elementUtils,
com.squareup.javapoet.MethodSpec.Builder methodBuilder,
boolean mapFields,
SQLiteModelMethod method,
com.squareup.javapoet.TypeName returnType) |
void |
ModifyRawHelper.generate(Elements elementUtils,
com.squareup.javapoet.MethodSpec.Builder methodBuilder,
boolean updateMode,
SQLiteModelMethod method,
com.squareup.javapoet.TypeName returnType) |
void |
ModifyBeanHelper.generate(Elements elementUtils,
com.squareup.javapoet.MethodSpec.Builder methodBuilder,
boolean updateMode,
SQLiteModelMethod method,
com.squareup.javapoet.TypeName returnType) |
void |
InsertRawHelper.generate(Elements elementUtils,
com.squareup.javapoet.MethodSpec.Builder methodBuilder,
boolean mapFields,
SQLiteModelMethod method,
com.squareup.javapoet.TypeName returnType) |
void |
InsertBeanHelper.generate(Elements elementUtils,
com.squareup.javapoet.MethodSpec.Builder methodBuilder,
boolean mapFields,
SQLiteModelMethod method,
com.squareup.javapoet.TypeName returnType) |
void |
SqlModifyBuilder.ModifyType.generate(Elements elementUtils,
com.squareup.javapoet.MethodSpec.Builder methodBuilder,
SQLiteModelMethod method,
com.squareup.javapoet.TypeName returnType) |
void |
SqlInsertBuilder.InsertType.generate(Elements elementUtils,
com.squareup.javapoet.MethodSpec.Builder methodBuilder,
SQLiteModelMethod method,
com.squareup.javapoet.TypeName returnType) |
void |
SelectPaginatedResultHelper.generate(Elements elementUtils,
com.squareup.javapoet.TypeSpec.Builder builder,
boolean mapFields,
SQLiteModelMethod method,
com.squareup.javapoet.TypeName returnType) |
void |
SelectBuilderUtility.SelectCodeGenerator.generate(Elements elementUtils,
com.squareup.javapoet.TypeSpec.Builder builder,
boolean mapFields,
SQLiteModelMethod method,
com.squareup.javapoet.TypeName returnType) |
void |
AbstractSelectCodeGenerator.generate(Elements elementUtils,
com.squareup.javapoet.TypeSpec.Builder builder,
boolean mapFields,
SQLiteModelMethod method,
com.squareup.javapoet.TypeName returnType) |
static void |
SqlModifyBuilder.generate(Elements elementUtils,
com.squareup.javapoet.TypeSpec.Builder builder,
SQLiteModelMethod method) |
static void |
SqlInsertBuilder.generate(Elements elementUtils,
com.squareup.javapoet.TypeSpec.Builder builder,
SQLiteModelMethod method) |
void |
SelectBuilderUtility.SelectType.generate(Elements elementUtils,
com.squareup.javapoet.TypeSpec.Builder builder,
SQLiteModelMethod method,
com.squareup.javapoet.TypeName returnType) |
static String |
SqlBuilderHelper.generateColumnCheckSet(Elements elementUtils,
com.squareup.javapoet.TypeSpec.Builder builder,
SQLiteModelMethod method,
Set<String> columnNames) |
void |
SelectRawHelper.generateCommonPart(Elements elementUtils,
SQLiteModelMethod method,
com.squareup.javapoet.MethodSpec.Builder methodBuilder,
Set<JQLProjection> fieldList,
boolean mapFields) |
void |
AbstractSelectCodeGenerator.generateCommonPart(Elements elementUtils,
SQLiteModelMethod method,
com.squareup.javapoet.MethodSpec.Builder methodBuilder,
Set<JQLProjection> fieldList,
boolean mapFields) |
void |
AbstractSelectCodeGenerator.generateCommonPart(Elements elementUtils,
SQLiteModelMethod method,
com.squareup.javapoet.MethodSpec.Builder methodBuilder,
Set<JQLProjection> fieldList,
boolean mapFields,
AbstractSelectCodeGenerator.GenerationType generationType,
AbstractSelectCodeGenerator.JavadocPart... javadocParts) |
static void |
CodeBuilderUtility.generateContentValuesFromEntity(Elements elementUtils,
SQLDaoDefinition daoDefinition,
SQLiteModelMethod method,
Class<? extends Annotation> annotationClazz,
com.squareup.javapoet.MethodSpec.Builder methodBuilder,
List<String> alreadyUsedBeanPropertiesNames) |
static void |
SqlSelectBuilder.generateDynamicPartOfQuery(SQLiteModelMethod method,
com.squareup.javapoet.MethodSpec.Builder methodBuilder,
SqlSelectBuilder.SplittedSql splittedSql) |
static void |
GenericSQLHelper.generateGenericExecSQL(com.squareup.javapoet.MethodSpec.Builder methodBuilder,
SQLiteModelMethod method) |
String |
InsertRawHelper.generateJavaDoc(com.squareup.javapoet.MethodSpec.Builder methodBuilder,
SQLiteModelMethod method,
com.squareup.javapoet.TypeName returnType) |
void |
InsertBeanHelper.generateJavaDoc(com.squareup.javapoet.MethodSpec.Builder methodBuilder,
SQLiteModelMethod method,
com.squareup.javapoet.TypeName returnType,
List<SQLProperty> listUsedProperty,
ModelProperty primaryKey) |
static void |
SqlBuilderHelper.generateJavaDocForContentProvider(SQLiteModelMethod method,
com.squareup.javapoet.MethodSpec.Builder methodBuilder) |
static void |
SqlBuilderHelper.generateLogForContentValues(SQLiteModelMethod method,
com.squareup.javapoet.MethodSpec.Builder methodBuilder)
Generate log for content values
|
static void |
SqlBuilderHelper.generateLogForInsert(SQLiteModelMethod method,
com.squareup.javapoet.MethodSpec.Builder methodBuilder)
Generate log for INSERT operations
|
static void |
SqlModifyBuilder.generateLogForModifiers(SQLiteModelMethod method,
com.squareup.javapoet.MethodSpec.Builder methodBuilder) |
static void |
SqlBuilderHelper.generateLogForWhereParameters(SQLiteModelMethod method,
com.squareup.javapoet.MethodSpec.Builder methodBuilder)
Generate log for where conditions.
|
protected void |
AbstractSelectCodeGenerator.generateMethodSignature(SQLiteModelMethod method,
com.squareup.javapoet.MethodSpec.Builder methodBuilder,
com.squareup.javapoet.TypeName returnTypeName,
com.squareup.javapoet.ParameterSpec... additionalParameterSpec) |
static void |
SqlSelectBuilder.generateSelect(Elements elementUtils,
com.squareup.javapoet.TypeSpec.Builder builder,
SQLiteModelMethod method) |
void |
SelectScalarListHelper.generateSpecializedPart(Elements elementUtils,
SQLiteModelMethod method,
com.squareup.javapoet.MethodSpec.Builder methodBuilder,
Set<JQLProjection> fieldList,
boolean mapFields) |
void |
SelectScalarHelper.generateSpecializedPart(Elements elementUtils,
SQLiteModelMethod method,
com.squareup.javapoet.MethodSpec.Builder methodBuilder,
Set<JQLProjection> fieldList,
boolean mapFields) |
void |
SelectRawListenerHelper.generateSpecializedPart(Elements elementUtils,
SQLiteModelMethod method,
com.squareup.javapoet.MethodSpec.Builder methodBuilder,
Set<JQLProjection> fieldList,
boolean mapFields) |
void |
SelectRawHelper.generateSpecializedPart(Elements elementUtils,
SQLiteModelMethod method,
com.squareup.javapoet.MethodSpec.Builder methodBuilder,
Set<JQLProjection> fieldList,
boolean mapFields) |
void |
SelectPaginatedResultHelper.generateSpecializedPart(Elements elementUtils,
SQLiteModelMethod method,
com.squareup.javapoet.MethodSpec.Builder methodBuilder,
Set<JQLProjection> fieldList,
boolean mapFields) |
void |
SelectBeanListHelper.generateSpecializedPart(Elements elementUtils,
SQLiteModelMethod method,
com.squareup.javapoet.MethodSpec.Builder methodBuilder,
Set<JQLProjection> fieldList,
boolean mapFields) |
void |
SelectBeanListenerHelper.generateSpecializedPart(Elements elementUtils,
SQLiteModelMethod method,
com.squareup.javapoet.MethodSpec.Builder methodBuilder,
Set<JQLProjection> fieldList,
boolean mapFields) |
void |
SelectBeanHelper.generateSpecializedPart(Elements elementUtils,
SQLiteModelMethod method,
com.squareup.javapoet.MethodSpec.Builder methodBuilder,
Set<JQLProjection> fieldList,
boolean mapFields) |
abstract void |
AbstractSelectCodeGenerator.generateSpecializedPart(Elements elementUtils,
SQLiteModelMethod method,
com.squareup.javapoet.MethodSpec.Builder methodBuilder,
Set<JQLProjection> fieldList,
boolean mapFields) |
static void |
SqlBuilderHelper.generateWhereCondition(com.squareup.javapoet.MethodSpec.Builder methodBuilder,
SQLiteModelMethod method,
boolean sqlWhereParamsAlreadyDefined)
Generate where management code.
|
static void |
ModifyRawHelper.generateWhereCondition(com.squareup.javapoet.MethodSpec.Builder methodBuilder,
SQLiteModelMethod method,
com.abubusoft.kripton.common.Pair<String,List<com.abubusoft.kripton.common.Pair<String,com.squareup.javapoet.TypeName>>> where) |
void |
ModifyBeanHelper.generateWhereCondition(com.squareup.javapoet.MethodSpec.Builder methodBuilder,
SQLiteModelMethod method,
SqlAnalyzer analyzer) |
static ConflictAlgorithmType |
InsertBeanHelper.getConflictAlgorithmType(SQLiteModelMethod method) |
void |
BindDaoBuilder.visit(SQLiteModelMethod value) |
| Modifier and Type | Method and Description |
|---|---|
static void |
JavadocUtility.generateJavaDocForSelect(com.squareup.javapoet.MethodSpec.Builder methodBuilder,
List<String> sqlParams,
SQLiteModelMethod method,
ModelAnnotation annotation,
Set<JQLProjection> fieldList,
SelectBuilderUtility.SelectType selectResultType,
AbstractSelectCodeGenerator.JavadocPart... javadocParts) |
| Modifier and Type | Method and Description |
|---|---|
static JQL |
JQLBuilder.buildJQL(SQLiteModelMethod method,
String preparedJql) |
| Modifier and Type | Method and Description |
|---|---|
void |
SQLDaoDefinition.add(SQLiteModelMethod value) |
String |
SQLiteDatabaseSchema.getExactPropertyBySimpleName(SQLiteModelMethod method,
String propertyName)
get a
|
void |
SQLiteModelElementVisitor.visit(SQLiteModelMethod value) |
Copyright © 2017. All rights reserved.