Modifier and Type | Field and Description |
---|---|
protected List<IntrospectedColumn> |
IntrospectedTable.baseColumns |
protected List<IntrospectedColumn> |
IntrospectedTable.blobColumns |
protected List<IntrospectedColumn> |
IntrospectedTable.primaryKeyColumns |
Modifier and Type | Method and Description |
---|---|
List<IntrospectedColumn> |
IntrospectedTable.getAllColumns()
Returns all columns in the table (for use by the select by primary key and
select by example with BLOBs methods).
|
List<IntrospectedColumn> |
IntrospectedTable.getBaseColumns() |
List<IntrospectedColumn> |
IntrospectedTable.getBLOBColumns() |
Optional<IntrospectedColumn> |
IntrospectedTable.getColumn(String columnName) |
List<IntrospectedColumn> |
IntrospectedTable.getNonBLOBColumns()
Returns all columns except BLOBs (for use by the select by example without BLOBs method).
|
List<IntrospectedColumn> |
IntrospectedTable.getNonPrimaryKeyColumns() |
List<IntrospectedColumn> |
IntrospectedTable.getPrimaryKeyColumns()
Returns the columns in the primary key.
|
Modifier and Type | Method and Description |
---|---|
void |
IntrospectedTable.addColumn(IntrospectedColumn introspectedColumn) |
default void |
CommentGenerator.addFieldAnnotation(Field field,
IntrospectedTable introspectedTable,
IntrospectedColumn introspectedColumn,
Set<FullyQualifiedJavaType> imports)
Adds a @Generated annotation to a field.
|
default void |
CommentGenerator.addFieldComment(Field field,
IntrospectedTable introspectedTable,
IntrospectedColumn introspectedColumn)
This method should add a Javadoc comment to the specified field.
|
default void |
CommentGenerator.addGeneralMethodAnnotation(Method method,
IntrospectedTable introspectedTable,
IntrospectedColumn introspectedColumn,
Set<FullyQualifiedJavaType> imports)
Adds a @Generated annotation to a method.
|
default void |
CommentGenerator.addGetterComment(Method method,
IntrospectedTable introspectedTable,
IntrospectedColumn introspectedColumn)
Adds the getter comment.
|
default void |
CommentGenerator.addSetterComment(Method method,
IntrospectedTable introspectedTable,
IntrospectedColumn introspectedColumn)
Adds the setter comment.
|
FullyQualifiedJavaType |
JavaTypeResolver.calculateJavaType(IntrospectedColumn introspectedColumn)
Calculates and returns the Java type that should be associated with this
column based on the jdbc type, length, and scale of the column.
|
String |
JavaTypeResolver.calculateJdbcTypeName(IntrospectedColumn introspectedColumn)
Calculates and returns the JDBC type name that should be associated with
this column based on the jdbc type, length, and scale of the column.
|
boolean |
CompositePlugin.modelFieldGenerated(Field field,
TopLevelClass topLevelClass,
IntrospectedColumn introspectedColumn,
IntrospectedTable introspectedTable,
Plugin.ModelClassType modelClassType) |
default boolean |
Plugin.modelFieldGenerated(Field field,
TopLevelClass topLevelClass,
IntrospectedColumn introspectedColumn,
IntrospectedTable introspectedTable,
Plugin.ModelClassType modelClassType)
This method is called after the field is generated for a specific column
in a table.
|
boolean |
CompositePlugin.modelGetterMethodGenerated(Method method,
TopLevelClass topLevelClass,
IntrospectedColumn introspectedColumn,
IntrospectedTable introspectedTable,
Plugin.ModelClassType modelClassType) |
default boolean |
Plugin.modelGetterMethodGenerated(Method method,
TopLevelClass topLevelClass,
IntrospectedColumn introspectedColumn,
IntrospectedTable introspectedTable,
Plugin.ModelClassType modelClassType)
This method is called after the getter, or accessor, method is generated
for a specific column in a table.
|
boolean |
CompositePlugin.modelSetterMethodGenerated(Method method,
TopLevelClass topLevelClass,
IntrospectedColumn introspectedColumn,
IntrospectedTable introspectedTable,
Plugin.ModelClassType modelClassType) |
default boolean |
Plugin.modelSetterMethodGenerated(Method method,
TopLevelClass topLevelClass,
IntrospectedColumn introspectedColumn,
IntrospectedTable introspectedTable,
Plugin.ModelClassType modelClassType)
This method is called after the setter, or mutator, method is generated
for a specific column in a table.
|
Modifier and Type | Method and Description |
---|---|
boolean |
RootClassInfo.containsProperty(IntrospectedColumn introspectedColumn) |
Modifier and Type | Method and Description |
---|---|
static List<IntrospectedColumn> |
ListUtilities.removeGeneratedAlwaysColumns(List<IntrospectedColumn> columns) |
static List<IntrospectedColumn> |
ListUtilities.removeIdentityAndGeneratedAlwaysColumns(List<IntrospectedColumn> columns) |
Modifier and Type | Method and Description |
---|---|
static String |
MyBatis3FormattingUtilities.getAliasedActualColumnName(IntrospectedColumn introspectedColumn)
The aliased column name for a select statement generated by the example clauses.
|
static String |
MyBatis3FormattingUtilities.getAliasedEscapedColumnName(IntrospectedColumn introspectedColumn) |
static String |
MyBatis3FormattingUtilities.getEscapedColumnName(IntrospectedColumn introspectedColumn) |
static String |
MyBatis3FormattingUtilities.getParameterClause(IntrospectedColumn introspectedColumn) |
static String |
MyBatis3FormattingUtilities.getParameterClause(IntrospectedColumn introspectedColumn,
String prefix) |
static String |
MyBatis3FormattingUtilities.getRenamedColumnNameForResultMap(IntrospectedColumn introspectedColumn)
The renamed column name for a select statement.
|
static String |
MyBatis3FormattingUtilities.getSelectListPhrase(IntrospectedColumn introspectedColumn)
The phrase to use in a select list.
|
Modifier and Type | Method and Description |
---|---|
static List<IntrospectedColumn> |
ListUtilities.removeGeneratedAlwaysColumns(List<IntrospectedColumn> columns) |
static List<IntrospectedColumn> |
ListUtilities.removeIdentityAndGeneratedAlwaysColumns(List<IntrospectedColumn> columns) |
Modifier and Type | Method and Description |
---|---|
protected static String |
AbstractJavaMapperMethodGenerator.getResultAnnotation(Interface interfaze,
IntrospectedColumn introspectedColumn,
boolean idColumn,
boolean constructorBased) |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractJavaMapperMethodGenerator.addAnnotatedResults(Interface interfaze,
Method method,
List<IntrospectedColumn> nonPrimaryKeyColumns) |
protected List<String> |
AbstractJavaMapperMethodGenerator.buildUpdateByPrimaryKeyAnnotations(List<IntrospectedColumn> columnList) |
Modifier and Type | Method and Description |
---|---|
List<IntrospectedColumn> |
ProviderSelectByExampleWithBLOBsMethodGenerator.getColumns() |
List<IntrospectedColumn> |
ProviderUpdateByExampleWithoutBLOBsMethodGenerator.getColumns() |
List<IntrospectedColumn> |
ProviderUpdateByExampleWithBLOBsMethodGenerator.getColumns() |
List<IntrospectedColumn> |
ProviderSelectByExampleWithoutBLOBsMethodGenerator.getColumns() |
Modifier and Type | Method and Description |
---|---|
protected Attribute |
AbstractXmlElementGenerator.buildColumnAttribute(IntrospectedColumn introspectedColumn) |
protected XmlElement |
AbstractXmlElementGenerator.getSelectKey(IntrospectedColumn introspectedColumn,
GeneratedKey generatedKey)
This method should return an XmlElement for the select key used to
automatically generate keys.
|
Modifier and Type | Method and Description |
---|---|
protected List<XmlElement> |
AbstractXmlElementGenerator.buildResultMapItems(AbstractXmlElementGenerator.ResultElementType elementType,
List<IntrospectedColumn> columns) |
protected List<TextElement> |
AbstractXmlElementGenerator.buildSelectList(List<IntrospectedColumn> columns) |
protected List<TextElement> |
AbstractXmlElementGenerator.buildSelectList(String initial,
List<IntrospectedColumn> columns) |
protected XmlElement |
AbstractXmlElementGenerator.buildUpdateByExampleElement(String statementId,
List<IntrospectedColumn> columns) |
protected XmlElement |
AbstractXmlElementGenerator.buildUpdateByPrimaryKeyElement(String statementId,
String parameterType,
List<IntrospectedColumn> columns) |
Modifier and Type | Method and Description |
---|---|
static IntrospectedColumn |
ObjectFactory.createIntrospectedColumn(Context context) |
Modifier and Type | Method and Description |
---|---|
void |
DefaultCommentGenerator.addFieldAnnotation(Field field,
IntrospectedTable introspectedTable,
IntrospectedColumn introspectedColumn,
Set<FullyQualifiedJavaType> imports) |
void |
DefaultCommentGenerator.addFieldComment(Field field,
IntrospectedTable introspectedTable,
IntrospectedColumn introspectedColumn) |
void |
DefaultCommentGenerator.addGeneralMethodAnnotation(Method method,
IntrospectedTable introspectedTable,
IntrospectedColumn introspectedColumn,
Set<FullyQualifiedJavaType> imports) |
void |
DefaultCommentGenerator.addGetterComment(Method method,
IntrospectedTable introspectedTable,
IntrospectedColumn introspectedColumn) |
void |
DefaultCommentGenerator.addSetterComment(Method method,
IntrospectedTable introspectedTable,
IntrospectedColumn introspectedColumn) |
Modifier and Type | Method and Description |
---|---|
static Field |
JavaBeansUtil.getJavaBeansField(IntrospectedColumn introspectedColumn,
Context context,
IntrospectedTable introspectedTable) |
static Field |
JavaBeansUtil.getJavaBeansFieldWithGeneratedAnnotation(IntrospectedColumn introspectedColumn,
Context context,
IntrospectedTable introspectedTable,
CompilationUnit compilationUnit) |
static Method |
JavaBeansUtil.getJavaBeansGetter(IntrospectedColumn introspectedColumn,
Context context,
IntrospectedTable introspectedTable) |
static Method |
JavaBeansUtil.getJavaBeansGetterWithGeneratedAnnotation(IntrospectedColumn introspectedColumn,
Context context,
IntrospectedTable introspectedTable,
CompilationUnit compilationUnit) |
static Method |
JavaBeansUtil.getJavaBeansSetter(IntrospectedColumn introspectedColumn,
Context context,
IntrospectedTable introspectedTable) |
static Method |
JavaBeansUtil.getJavaBeansSetterWithGeneratedAnnotation(IntrospectedColumn introspectedColumn,
Context context,
IntrospectedTable introspectedTable,
CompilationUnit compilationUnit) |
Modifier and Type | Method and Description |
---|---|
boolean |
FluentBuilderMethodsPlugin.modelSetterMethodGenerated(Method method,
TopLevelClass topLevelClass,
IntrospectedColumn introspectedColumn,
IntrospectedTable introspectedTable,
Plugin.ModelClassType modelClassType) |
Modifier and Type | Method and Description |
---|---|
protected void |
EqualsHashCodePlugin.generateEquals(TopLevelClass topLevelClass,
List<IntrospectedColumn> introspectedColumns,
IntrospectedTable introspectedTable)
Generates an
equals method that does a comparison of all fields. |
protected void |
EqualsHashCodePlugin.generateHashCode(TopLevelClass topLevelClass,
List<IntrospectedColumn> introspectedColumns,
IntrospectedTable introspectedTable)
Generates a
hashCode method that includes all fields. |
Modifier and Type | Method and Description |
---|---|
protected String |
AbstractMethodGenerator.calculateFieldName(IntrospectedColumn column) |
static String |
AbstractMethodGenerator.calculateFieldName(String tableFieldName,
IntrospectedColumn column) |
Modifier and Type | Method and Description |
---|---|
List<String> |
FragmentGenerator.getSetEqualLines(List<IntrospectedColumn> columnList,
String firstLinePrefix,
String subsequentLinePrefix,
boolean terminate) |
List<String> |
FragmentGenerator.getSetEqualWhenPresentLines(List<IntrospectedColumn> columnList,
String firstLinePrefix,
String subsequentLinePrefix,
boolean terminate) |
Modifier and Type | Method and Description |
---|---|
static AbstractKotlinFunctionGenerator.FieldNameAndImport |
AbstractKotlinFunctionGenerator.calculateFieldNameAndImport(String tableFieldName,
String supportObjectImport,
IntrospectedColumn column) |
Modifier and Type | Method and Description |
---|---|
KotlinFunctionParts |
KotlinFragmentGenerator.getSetEqualLines(List<IntrospectedColumn> columnList) |
KotlinFunctionParts |
KotlinFragmentGenerator.getSetEqualWhenPresentLines(List<IntrospectedColumn> columnList) |
Copyright © 2006–2023 MyBatis.org. All rights reserved.