org.mybatis.generator.config
Class TableConfiguration
java.lang.Object
org.mybatis.generator.config.PropertyHolder
org.mybatis.generator.config.TableConfiguration
public class TableConfiguration
- extends PropertyHolder
- Author:
- Jeff Butler
TableConfiguration
public TableConfiguration(Context context)
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
public boolean isColumnIgnored(String columnName)
addIgnoredColumn
public void addIgnoredColumn(IgnoredColumn ignoredColumn)
addColumnOverride
public void addColumnOverride(ColumnOverride columnOverride)
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
isSelectByExampleStatementEnabled
public boolean isSelectByExampleStatementEnabled()
setSelectByExampleStatementEnabled
public void setSelectByExampleStatementEnabled(boolean selectByExampleStatementEnabled)
getColumnOverride
public ColumnOverride getColumnOverride(String columnName)
- May return null if the column has not been overridden
- Parameters:
columnName
-
- Returns:
- the column override (if any) related to this column
getGeneratedKey
public GeneratedKey getGeneratedKey()
getSelectByExampleQueryId
public String getSelectByExampleQueryId()
setSelectByExampleQueryId
public void setSelectByExampleQueryId(String selectByExampleQueryId)
getSelectByPrimaryKeyQueryId
public String getSelectByPrimaryKeyQueryId()
setSelectByPrimaryKeyQueryId
public void setSelectByPrimaryKeyQueryId(String selectByPrimaryKeyQueryId)
isDeleteByExampleStatementEnabled
public boolean isDeleteByExampleStatementEnabled()
setDeleteByExampleStatementEnabled
public void setDeleteByExampleStatementEnabled(boolean deleteByExampleStatementEnabled)
areAnyStatementsEnabled
public boolean areAnyStatementsEnabled()
setGeneratedKey
public void setGeneratedKey(GeneratedKey generatedKey)
getAlias
public String getAlias()
setAlias
public void setAlias(String alias)
getCatalog
public String getCatalog()
setCatalog
public void setCatalog(String catalog)
getDomainObjectName
public String getDomainObjectName()
setDomainObjectName
public void setDomainObjectName(String domainObjectName)
getSchema
public String getSchema()
setSchema
public void setSchema(String schema)
getTableName
public String getTableName()
setTableName
public void setTableName(String tableName)
getColumnOverrides
public List<ColumnOverride> getColumnOverrides()
getIgnoredColumnsInError
public List<String> getIgnoredColumnsInError()
- This method returns an iterator of Strings. The values are the columns
that were specified to be ignored in the table, but do not exist in the
table.
- Returns:
- an List of Strings - the columns that were improperly configured
as ignored columns
getModelType
public ModelType getModelType()
setConfiguredModelType
public void setConfiguredModelType(String configuredModelType)
isWildcardEscapingEnabled
public boolean isWildcardEscapingEnabled()
setWildcardEscapingEnabled
public void setWildcardEscapingEnabled(boolean wildcardEscapingEnabled)
toXmlElement
public XmlElement toXmlElement()
toString
public String toString()
- Overrides:
toString
in class Object
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
public void validate(List<String> errors,
int listPosition)
getColumnRenamingRule
public ColumnRenamingRule getColumnRenamingRule()
setColumnRenamingRule
public void setColumnRenamingRule(ColumnRenamingRule columnRenamingRule)
isAllColumnDelimitingEnabled
public boolean isAllColumnDelimitingEnabled()
setAllColumnDelimitingEnabled
public void setAllColumnDelimitingEnabled(boolean isAllColumnDelimitingEnabled)
Copyright © 2010-2012 MyBatis.org. All Rights Reserved.