Package org.mybatis.generator.config
Class TableConfiguration
java.lang.Object
org.mybatis.generator.config.PropertyHolder
org.mybatis.generator.config.TableConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate Stringprivate final List<ColumnOverride> private ColumnRenamingRuleprivate booleanprivate booleanprivate booleanprivate booleanprivate Stringprivate DomainObjectRenamingRuleprivate GeneratedKeyprivate final List<IgnoredColumnPattern> private final Map<IgnoredColumn, Boolean> private booleanprivate booleanprivate Stringprivate ModelTypeprivate Stringprivate Stringprivate booleanprivate Stringprivate booleanprivate Stringprivate Stringprivate booleanprivate booleanprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddColumnOverride(ColumnOverride columnOverride) voidaddIgnoredColumn(IgnoredColumn ignoredColumn) voidaddIgnoredColumnPattern(IgnoredColumnPattern ignoredColumnPattern) booleanbooleangetAlias()getColumnOverride(String columnName) May return null if the column has not been overridden.Returns a List of Strings.inthashCode()booleanbooleanisColumnIgnored(String columnName) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidvoidsetAllColumnDelimitingEnabled(boolean isAllColumnDelimitingEnabled) voidsetCatalog(String catalog) voidsetColumnRenamingRule(ColumnRenamingRule columnRenamingRule) voidsetConfiguredModelType(String configuredModelType) voidsetCountByExampleStatementEnabled(boolean countByExampleStatementEnabled) voidsetDeleteByExampleStatementEnabled(boolean deleteByExampleStatementEnabled) voidsetDeleteByPrimaryKeyStatementEnabled(boolean deleteByPrimaryKeyStatementEnabled) voidsetDelimitIdentifiers(boolean delimitIdentifiers) voidsetDomainObjectName(String domainObjectName) voidsetDomainObjectRenamingRule(DomainObjectRenamingRule domainObjectRenamingRule) voidsetGeneratedKey(GeneratedKey generatedKey) voidsetInsertStatementEnabled(boolean insertStatementEnabled) voidsetMapperName(String mapperName) voidvoidsetSelectByExampleQueryId(String selectByExampleQueryId) voidsetSelectByExampleStatementEnabled(boolean selectByExampleStatementEnabled) voidsetSelectByPrimaryKeyQueryId(String selectByPrimaryKeyQueryId) voidsetSelectByPrimaryKeyStatementEnabled(boolean selectByPrimaryKeyStatementEnabled) voidsetSqlProviderName(String sqlProviderName) voidsetTableName(String tableName) voidsetUpdateByExampleStatementEnabled(boolean updateByExampleStatementEnabled) voidsetUpdateByPrimaryKeyStatementEnabled(boolean updateByPrimaryKeyStatementEnabled) voidsetWildcardEscapingEnabled(boolean wildcardEscapingEnabled) toString()voidMethods inherited from class org.mybatis.generator.config.PropertyHolder
addProperty, getProperties, getProperty
-
Field Details
-
insertStatementEnabled
private boolean insertStatementEnabled -
selectByPrimaryKeyStatementEnabled
private boolean selectByPrimaryKeyStatementEnabled -
selectByExampleStatementEnabled
private boolean selectByExampleStatementEnabled -
updateByPrimaryKeyStatementEnabled
private boolean updateByPrimaryKeyStatementEnabled -
deleteByPrimaryKeyStatementEnabled
private boolean deleteByPrimaryKeyStatementEnabled -
deleteByExampleStatementEnabled
private boolean deleteByExampleStatementEnabled -
countByExampleStatementEnabled
private boolean countByExampleStatementEnabled -
updateByExampleStatementEnabled
private boolean updateByExampleStatementEnabled -
columnOverrides
-
ignoredColumns
-
generatedKey
-
selectByPrimaryKeyQueryId
-
selectByExampleQueryId
-
catalog
-
schema
-
tableName
-
domainObjectName
-
alias
-
modelType
-
wildcardEscapingEnabled
private boolean wildcardEscapingEnabled -
delimitIdentifiers
private boolean delimitIdentifiers -
domainObjectRenamingRule
-
columnRenamingRule
-
isAllColumnDelimitingEnabled
private boolean isAllColumnDelimitingEnabled -
mapperName
-
sqlProviderName
-
ignoredColumnPatterns
-
-
Constructor Details
-
TableConfiguration
-
-
Method Details
-
isDeleteByPrimaryKeyStatementEnabled
public boolean isDeleteByPrimaryKeyStatementEnabled() -
setDeleteByPrimaryKeyStatementEnabled
public void setDeleteByPrimaryKeyStatementEnabled(boolean deleteByPrimaryKeyStatementEnabled) -
isInsertStatementEnabled
public boolean isInsertStatementEnabled() -
setInsertStatementEnabled
public void setInsertStatementEnabled(boolean insertStatementEnabled) -
isSelectByPrimaryKeyStatementEnabled
public boolean isSelectByPrimaryKeyStatementEnabled() -
setSelectByPrimaryKeyStatementEnabled
public void setSelectByPrimaryKeyStatementEnabled(boolean selectByPrimaryKeyStatementEnabled) -
isUpdateByPrimaryKeyStatementEnabled
public boolean isUpdateByPrimaryKeyStatementEnabled() -
setUpdateByPrimaryKeyStatementEnabled
public void setUpdateByPrimaryKeyStatementEnabled(boolean updateByPrimaryKeyStatementEnabled) -
isColumnIgnored
-
addIgnoredColumn
-
addIgnoredColumnPattern
-
addColumnOverride
-
equals
-
hashCode
public int hashCode() -
isSelectByExampleStatementEnabled
public boolean isSelectByExampleStatementEnabled() -
setSelectByExampleStatementEnabled
public void setSelectByExampleStatementEnabled(boolean selectByExampleStatementEnabled) -
getColumnOverride
May return null if the column has not been overridden.- Parameters:
columnName- the column name- Returns:
- the column override (if any) related to this column
-
getGeneratedKey
-
getSelectByExampleQueryId
-
setSelectByExampleQueryId
-
getSelectByPrimaryKeyQueryId
-
setSelectByPrimaryKeyQueryId
-
isDeleteByExampleStatementEnabled
public boolean isDeleteByExampleStatementEnabled() -
setDeleteByExampleStatementEnabled
public void setDeleteByExampleStatementEnabled(boolean deleteByExampleStatementEnabled) -
areAnyStatementsEnabled
public boolean areAnyStatementsEnabled() -
setGeneratedKey
-
getAlias
-
setAlias
-
getCatalog
-
setCatalog
-
getDomainObjectName
-
setDomainObjectName
-
getSchema
-
setSchema
-
getTableName
-
setTableName
-
getColumnOverrides
-
getIgnoredColumnsInError
Returns a List of Strings. The values are the columns that were specified to be ignored in the table, but do not exist in the table.- Returns:
- a List of Strings - the columns that were improperly configured as ignored columns
-
getModelType
-
setConfiguredModelType
-
isWildcardEscapingEnabled
public boolean isWildcardEscapingEnabled() -
setWildcardEscapingEnabled
public void setWildcardEscapingEnabled(boolean wildcardEscapingEnabled) -
toString
-
isDelimitIdentifiers
public boolean isDelimitIdentifiers() -
setDelimitIdentifiers
public void setDelimitIdentifiers(boolean delimitIdentifiers) -
isCountByExampleStatementEnabled
public boolean isCountByExampleStatementEnabled() -
setCountByExampleStatementEnabled
public void setCountByExampleStatementEnabled(boolean countByExampleStatementEnabled) -
isUpdateByExampleStatementEnabled
public boolean isUpdateByExampleStatementEnabled() -
setUpdateByExampleStatementEnabled
public void setUpdateByExampleStatementEnabled(boolean updateByExampleStatementEnabled) -
validate
-
getDomainObjectRenamingRule
-
setDomainObjectRenamingRule
-
getColumnRenamingRule
-
setColumnRenamingRule
-
isAllColumnDelimitingEnabled
public boolean isAllColumnDelimitingEnabled() -
setAllColumnDelimitingEnabled
public void setAllColumnDelimitingEnabled(boolean isAllColumnDelimitingEnabled) -
getMapperName
-
setMapperName
-
getSqlProviderName
-
setSqlProviderName
-
getDynamicSqlSupportClassName
-
getDynamicSqlTableObjectName
-