public class SQLiteModelMethod extends ModelMethod implements SQLiteModelElement, JQLContext
| Type | Property and Description |
|---|---|
String |
findEntity |
| Modifier and Type | Field and Description |
|---|---|
String |
contentProviderEntryPath
it's the path defined in @ContentProviderEntry.path
|
boolean |
contentProviderEntryPathEnabled |
String |
contentProviderEntryPathTemplate |
String |
contentProviderMethodName
name of method generated for content provider
|
String |
contentProviderUriTemplate
It's the uri with place holder replaced with
# or
*. |
List<ContentUriPlaceHolder> |
contentProviderUriVariables |
String |
dynamicOrderByParameterName
It is the typeName of parameter used to dynamic order by condition
(defined at runtime).
|
String |
dynamicPageSizeName
It is the typeName of parameter used to dynamic page size (defined at
runtime).
|
String |
dynamicWhereArgsParameterName
It's the name of the parameter used to define arguments for dynamic where
statement.
|
String |
dynamicWhereParameterName
It is the typeName of parameter used to dynamic where condition (defined
at runtime).
|
BindSqlDynamicWhere.PrependType |
dynamicWherePrepend |
JQL |
jql |
String |
paginatedResultName
typeName of the paginated result parameter typeName.
|
protected Map<String,String> |
parameterAlias2NameField |
String |
parameterBeanName |
protected Map<String,String> |
parameterName2Adapter |
protected Map<String,String> |
parameterName2Alias |
annotations, parameters, returnClasselement, name| Constructor and Description |
|---|
SQLiteModelMethod(SQLDaoDefinition parent,
ExecutableElement element,
List<ModelAnnotation> annotationList) |
addAnnotation, findParameterType, getAnnotation, getParameters, getReturnClass, hasAnnotation, setReturnClassequals, getElement, getName, hashCodeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetElementpublic String findEntityProperty
public String dynamicOrderByParameterName
It is the typeName of parameter used to dynamic order by condition (defined at runtime).
public String dynamicWhereParameterName
It is the typeName of parameter used to dynamic where condition (defined at runtime).
public String dynamicWhereArgsParameterName
It's the name of the parameter used to define arguments for dynamic where statement. It can be used only on String[] parameter type.
public String dynamicPageSizeName
It is the typeName of parameter used to dynamic page size (defined at runtime).
public String paginatedResultName
public final JQL jql
public boolean contentProviderEntryPathEnabled
public String contentProviderEntryPath
public String contentProviderMethodName
public String parameterBeanName
public List<ContentUriPlaceHolder> contentProviderUriVariables
public String contentProviderUriTemplate
It's the uri with place holder replaced with # or
*. An example:
content://sqlite.contentprovider.kripton35/persons/#/children
public String contentProviderEntryPathTemplate
public BindSqlDynamicWhere.PrependType dynamicWherePrepend
public SQLiteModelMethod(SQLDaoDefinition parent, ExecutableElement element, List<ModelAnnotation> annotationList)
public long nextCounter()
public boolean hasAdapterForParam(String paramName)
public void accept(SQLiteModelElementVisitor visitor) throws Exception
accept in interface SQLiteModelElementExceptionpublic String findParameterAliasByName(String name)
typeName - public String findParameterNameByAlias(String nameOrAlias)
nameOrAlias - parameter typeName to findpublic com.squareup.javapoet.TypeName findParameterTypeByAliasOrName(String name)
typeName - parameter typeName to findpublic SQLDaoDefinition getParent()
public boolean hasDynamicOrderByConditions()
public boolean hasDynamicWhereConditions()
public boolean hasDynamicWhereArgs()
public boolean hasDynamicPageSizeConditions()
public boolean isThisDynamicWhereConditionsName(String parameterName)
public boolean isLogEnabled()
public boolean isThisDynamicPageSizeName(String parameterName)
public boolean isThisDynamicWhereArgsName(String parameterName)
public boolean hasPaginatedResultParameter()
public String contentProviderUri()
public String contentProviderPath()
public String getContextDescription()
JQLContextgetContextDescription in interface JQLContextpublic com.squareup.javapoet.TypeName getAdapterForParam(String paramName)
public String findEntityProperty()
public String buildPreparedStatementName()
public boolean hasDynamicParts()
public String buildSQLName()
Copyright © 2017. All rights reserved.