public abstract class IntrospectedTable extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
IntrospectedTable.InternalAttribute |
static class |
IntrospectedTable.TargetRuntime |
Modifier and Type | Field and Description |
---|---|
protected Map<String,Object> |
attributes
Attributes may be used by plugins to capture table related state between
the different plugin calls.
|
protected List<IntrospectedColumn> |
baseColumns |
protected List<IntrospectedColumn> |
blobColumns |
protected Context |
context |
protected FullyQualifiedTable |
fullyQualifiedTable |
protected Map<IntrospectedTable.InternalAttribute,String> |
internalAttributes
Internal attributes are used to store commonly accessed items by all code generators.
|
protected List<IntrospectedColumn> |
primaryKeyColumns |
protected String |
remarks
Table remarks retrieved from database metadata.
|
protected Rules |
rules |
protected TableConfiguration |
tableConfiguration |
protected String |
tableType
Table type retrieved from database metadata.
|
protected IntrospectedTable.TargetRuntime |
targetRuntime |
Modifier | Constructor and Description |
---|---|
protected |
IntrospectedTable(IntrospectedTable.TargetRuntime targetRuntime) |
protected TableConfiguration tableConfiguration
protected FullyQualifiedTable fullyQualifiedTable
protected Context context
protected Rules rules
protected final List<IntrospectedColumn> primaryKeyColumns
protected final List<IntrospectedColumn> baseColumns
protected final List<IntrospectedColumn> blobColumns
protected IntrospectedTable.TargetRuntime targetRuntime
protected final Map<String,Object> attributes
protected final Map<IntrospectedTable.InternalAttribute,String> internalAttributes
protected String remarks
protected String tableType
protected IntrospectedTable(IntrospectedTable.TargetRuntime targetRuntime)
public FullyQualifiedTable getFullyQualifiedTable()
public String getSelectByExampleQueryId()
public String getSelectByPrimaryKeyQueryId()
public Optional<GeneratedKey> getGeneratedKey()
public Optional<IntrospectedColumn> getColumn(String columnName)
public boolean hasJDBCDateColumns()
public boolean hasJDBCTimeColumns()
public List<IntrospectedColumn> getPrimaryKeyColumns()
public boolean hasPrimaryKeyColumns()
public List<IntrospectedColumn> getBaseColumns()
public List<IntrospectedColumn> getAllColumns()
public List<IntrospectedColumn> getNonBLOBColumns()
public int getNonBLOBColumnCount()
public List<IntrospectedColumn> getNonPrimaryKeyColumns()
public List<IntrospectedColumn> getBLOBColumns()
public boolean hasBLOBColumns()
public boolean hasBaseColumns()
public Rules getRules()
public String getPrimaryKeyType()
public String getBaseRecordType()
public String getKotlinRecordType()
public String getExampleType()
public String getRecordWithBLOBsType()
public String getMyBatis3SqlMapNamespace()
public String getMyBatis3FallbackSqlMapNamespace()
public boolean hasAnyColumns()
public void setTableConfiguration(TableConfiguration tableConfiguration)
public void setFullyQualifiedTable(FullyQualifiedTable fullyQualifiedTable)
public void setContext(Context context)
public void addColumn(IntrospectedColumn introspectedColumn)
public void addPrimaryKeyColumn(String columnName)
public void removeAttribute(String name)
public void initialize()
protected void calculateXmlAttributes()
public void setBlobColumnListId(String s)
public void setBaseColumnListId(String s)
public void setExampleWhereClauseId(String s)
public void setMyBatis3UpdateByExampleWhereClauseId(String s)
public void setResultMapWithBLOBsId(String s)
public void setBaseResultMapId(String s)
public void setUpdateByPrimaryKeyWithBLOBsStatementId(String s)
public void setUpdateByPrimaryKeySelectiveStatementId(String s)
public void setUpdateByPrimaryKeyStatementId(String s)
public void setUpdateByExampleWithBLOBsStatementId(String s)
public void setUpdateByExampleSelectiveStatementId(String s)
public void setUpdateByExampleStatementId(String s)
public void setSelectByPrimaryKeyStatementId(String s)
public void setSelectByExampleWithBLOBsStatementId(String s)
public void setSelectAllStatementId(String s)
public void setSelectByExampleStatementId(String s)
public void setInsertSelectiveStatementId(String s)
public void setInsertStatementId(String s)
public void setDeleteByPrimaryKeyStatementId(String s)
public void setDeleteByExampleStatementId(String s)
public void setCountByExampleStatementId(String s)
public String getBlobColumnListId()
public String getBaseColumnListId()
public String getExampleWhereClauseId()
public String getMyBatis3UpdateByExampleWhereClauseId()
public String getResultMapWithBLOBsId()
public String getBaseResultMapId()
public String getUpdateByPrimaryKeyWithBLOBsStatementId()
public String getUpdateByPrimaryKeySelectiveStatementId()
public String getUpdateByPrimaryKeyStatementId()
public String getUpdateByExampleWithBLOBsStatementId()
public String getUpdateByExampleSelectiveStatementId()
public String getUpdateByExampleStatementId()
public String getSelectByPrimaryKeyStatementId()
public String getSelectByExampleWithBLOBsStatementId()
public String getSelectAllStatementId()
public String getSelectByExampleStatementId()
public String getInsertSelectiveStatementId()
public String getInsertStatementId()
public String getDeleteByPrimaryKeyStatementId()
public String getDeleteByExampleStatementId()
public String getCountByExampleStatementId()
public String getMyBatisDynamicSQLTableObjectName()
public void setMyBatisDynamicSQLTableObjectName(String name)
protected String calculateJavaClientInterfacePackage()
protected String calculateDynamicSqlSupportPackage()
protected void calculateJavaClientAttributes()
protected String calculateJavaModelPackage()
protected void calculateModelAttributes()
protected String calculateJavaModelExamplePackage()
protected String calculateSqlMapPackage()
protected String calculateMyBatis3XmlMapperFileName()
protected String calculateMyBatis3FallbackSqlMapNamespace()
protected String calculateSqlMapFullyQualifiedRuntimeTableName()
protected String calculateSqlMapAliasedFullyQualifiedRuntimeTableName()
public String getFullyQualifiedTableNameAtRuntime()
public String getAliasedFullyQualifiedTableNameAtRuntime()
public abstract void calculateGenerators(List<String> warnings, ProgressCallback progressCallback)
This method is called after all the setX methods, but before getNumberOfSubtasks(), getGeneratedJavaFiles, and getGeneratedXmlFiles.
warnings
- the warningsprogressCallback
- the progress callbackpublic abstract List<GeneratedJavaFile> getGeneratedJavaFiles()
public abstract List<GeneratedXmlFile> getGeneratedXmlFiles()
public abstract List<GeneratedKotlinFile> getGeneratedKotlinFiles()
public abstract int getGenerationSteps()
public void setRules(Rules rules)
rules
- the new rulespublic TableConfiguration getTableConfiguration()
public void setPrimaryKeyType(String primaryKeyType)
public void setBaseRecordType(String baseRecordType)
public void setKotlinRecordType(String kotlinRecordType)
public void setRecordWithBLOBsType(String recordWithBLOBsType)
public void setExampleType(String exampleType)
public void setMyBatis3FallbackSqlMapNamespace(String sqlMapNamespace)
public void setSqlMapFullyQualifiedRuntimeTableName(String fullyQualifiedRuntimeTableName)
public void setSqlMapAliasedFullyQualifiedRuntimeTableName(String aliasedFullyQualifiedRuntimeTableName)
public String getMyBatis3XmlMapperPackage()
public void setMyBatis3XmlMapperPackage(String mybatis3XmlMapperPackage)
public String getMyBatis3XmlMapperFileName()
public void setMyBatis3XmlMapperFileName(String mybatis3XmlMapperFileName)
public String getMyBatis3JavaMapperType()
public void setMyBatis3JavaMapperType(String mybatis3JavaMapperType)
public String getMyBatis3SqlProviderType()
public void setMyBatis3SqlProviderType(String mybatis3SqlProviderType)
public String getMyBatisDynamicSqlSupportType()
public void setMyBatisDynamicSqlSupportType(String s)
public IntrospectedTable.TargetRuntime getTargetRuntime()
public boolean isImmutable()
public boolean isConstructorBased()
public abstract boolean requiresXMLGenerator()
public Context getContext()
public String getRemarks()
public void setRemarks(String remarks)
public String getTableType()
public void setTableType(String tableType)
Copyright © 2006–2024 MyBatis.org. All rights reserved.