public class TableConfiguration extends PropertyHolder
| 构造器和说明 |
|---|
TableConfiguration(Context context)
Instantiates a new table configuration.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addColumnOverride(ColumnOverride columnOverride)
Adds the column override.
|
void |
addIgnoredColumn(IgnoredColumn ignoredColumn)
Adds the ignored column.
|
boolean |
areAnyStatementsEnabled()
Are any statements enabled.
|
boolean |
equals(Object obj) |
String |
getAlias()
Gets the alias.
|
String |
getCatalog()
Gets the catalog.
|
ColumnOverride |
getColumnOverride(String columnName)
May return null if the column has not been overridden.
|
List<ColumnOverride> |
getColumnOverrides()
Gets the column overrides.
|
ColumnRenamingRule |
getColumnRenamingRule()
Gets the column renaming rule.
|
String |
getDomainObjectName()
Gets the domain object name.
|
GeneratedKey |
getGeneratedKey()
Gets the generated key.
|
List<String> |
getIgnoredColumnsInError()
This method returns a List of Strings.
|
ModelType |
getModelType()
Gets the model type.
|
String |
getSchema()
Gets the schema.
|
String |
getSelectByExampleQueryId()
Gets the select by example query id.
|
String |
getSelectByPrimaryKeyQueryId()
Gets the select by primary key query id.
|
String |
getTableName()
Gets the table name.
|
int |
hashCode() |
boolean |
isAllColumnDelimitingEnabled()
Checks if is all column delimiting enabled.
|
boolean |
isColumnIgnored(String columnName)
Checks if is column ignored.
|
boolean |
isCountByExampleStatementEnabled()
Checks if is count by example statement enabled.
|
boolean |
isDeleteByExampleStatementEnabled()
Checks if is delete by example statement enabled.
|
boolean |
isDeleteByPrimaryKeyStatementEnabled()
Checks if is delete by primary key statement enabled.
|
boolean |
isDelimitIdentifiers()
Checks if is delimit identifiers.
|
boolean |
isInsertStatementEnabled()
Checks if is insert statement enabled.
|
boolean |
isSelectByExampleStatementEnabled()
Checks if is select by example statement enabled.
|
boolean |
isSelectByPrimaryKeyStatementEnabled()
Checks if is select by primary key statement enabled.
|
boolean |
isUpdateByExampleStatementEnabled()
Checks if is update by example statement enabled.
|
boolean |
isUpdateByPrimaryKeyStatementEnabled()
Checks if is update by primary key statement enabled.
|
boolean |
isWildcardEscapingEnabled()
Checks if is wildcard escaping enabled.
|
void |
setAlias(String alias)
Sets the alias.
|
void |
setAllColumnDelimitingEnabled(boolean isAllColumnDelimitingEnabled)
Sets the all column delimiting enabled.
|
void |
setCatalog(String catalog)
Sets the catalog.
|
void |
setColumnRenamingRule(ColumnRenamingRule columnRenamingRule)
Sets the column renaming rule.
|
void |
setConfiguredModelType(String configuredModelType)
Sets the configured model type.
|
void |
setCountByExampleStatementEnabled(boolean countByExampleStatementEnabled)
Sets the count by example statement enabled.
|
void |
setDeleteByExampleStatementEnabled(boolean deleteByExampleStatementEnabled)
Sets the delete by example statement enabled.
|
void |
setDeleteByPrimaryKeyStatementEnabled(boolean deleteByPrimaryKeyStatementEnabled)
Sets the delete by primary key statement enabled.
|
void |
setDelimitIdentifiers(boolean delimitIdentifiers)
Sets the delimit identifiers.
|
void |
setDomainObjectName(String domainObjectName)
Sets the domain object name.
|
void |
setGeneratedKey(GeneratedKey generatedKey)
Sets the generated key.
|
void |
setInsertStatementEnabled(boolean insertStatementEnabled)
Sets the insert statement enabled.
|
void |
setSchema(String schema)
Sets the schema.
|
void |
setSelectByExampleQueryId(String selectByExampleQueryId)
Sets the select by example query id.
|
void |
setSelectByExampleStatementEnabled(boolean selectByExampleStatementEnabled)
Sets the select by example statement enabled.
|
void |
setSelectByPrimaryKeyQueryId(String selectByPrimaryKeyQueryId)
Sets the select by primary key query id.
|
void |
setSelectByPrimaryKeyStatementEnabled(boolean selectByPrimaryKeyStatementEnabled)
Sets the select by primary key statement enabled.
|
void |
setTableName(String tableName)
Sets the table name.
|
void |
setUpdateByExampleStatementEnabled(boolean updateByExampleStatementEnabled)
Sets the update by example statement enabled.
|
void |
setUpdateByPrimaryKeyStatementEnabled(boolean updateByPrimaryKeyStatementEnabled)
Sets the update by primary key statement enabled.
|
void |
setWildcardEscapingEnabled(boolean wildcardEscapingEnabled)
Sets the wildcard escaping enabled.
|
String |
toString() |
XmlElement |
toXmlElement()
To xml element.
|
void |
validate(List<String> errors,
int listPosition)
Validate.
|
addProperty, addPropertyXmlElements, getProperties, getPropertypublic TableConfiguration(Context context)
context - the contextpublic boolean isDeleteByPrimaryKeyStatementEnabled()
public void setDeleteByPrimaryKeyStatementEnabled(boolean deleteByPrimaryKeyStatementEnabled)
deleteByPrimaryKeyStatementEnabled - the new delete by primary key statement enabledpublic boolean isInsertStatementEnabled()
public void setInsertStatementEnabled(boolean insertStatementEnabled)
insertStatementEnabled - the new insert statement enabledpublic boolean isSelectByPrimaryKeyStatementEnabled()
public void setSelectByPrimaryKeyStatementEnabled(boolean selectByPrimaryKeyStatementEnabled)
selectByPrimaryKeyStatementEnabled - the new select by primary key statement enabledpublic boolean isUpdateByPrimaryKeyStatementEnabled()
public void setUpdateByPrimaryKeyStatementEnabled(boolean updateByPrimaryKeyStatementEnabled)
updateByPrimaryKeyStatementEnabled - the new update by primary key statement enabledpublic boolean isColumnIgnored(String columnName)
columnName - the column namepublic void addIgnoredColumn(IgnoredColumn ignoredColumn)
ignoredColumn - the ignored columnpublic void addColumnOverride(ColumnOverride columnOverride)
columnOverride - the column overridepublic boolean isSelectByExampleStatementEnabled()
public void setSelectByExampleStatementEnabled(boolean selectByExampleStatementEnabled)
selectByExampleStatementEnabled - the new select by example statement enabledpublic ColumnOverride getColumnOverride(String columnName)
columnName - the column namepublic GeneratedKey getGeneratedKey()
public String getSelectByExampleQueryId()
public void setSelectByExampleQueryId(String selectByExampleQueryId)
selectByExampleQueryId - the new select by example query idpublic String getSelectByPrimaryKeyQueryId()
public void setSelectByPrimaryKeyQueryId(String selectByPrimaryKeyQueryId)
selectByPrimaryKeyQueryId - the new select by primary key query idpublic boolean isDeleteByExampleStatementEnabled()
public void setDeleteByExampleStatementEnabled(boolean deleteByExampleStatementEnabled)
deleteByExampleStatementEnabled - the new delete by example statement enabledpublic boolean areAnyStatementsEnabled()
public void setGeneratedKey(GeneratedKey generatedKey)
generatedKey - the new generated keypublic String getAlias()
public void setAlias(String alias)
alias - the new aliaspublic String getCatalog()
public void setCatalog(String catalog)
catalog - the new catalogpublic String getDomainObjectName()
public void setDomainObjectName(String domainObjectName)
domainObjectName - the new domain object namepublic String getSchema()
public void setSchema(String schema)
schema - the new schemapublic String getTableName()
public void setTableName(String tableName)
tableName - the new table namepublic List<ColumnOverride> getColumnOverrides()
public List<String> getIgnoredColumnsInError()
public ModelType getModelType()
public void setConfiguredModelType(String configuredModelType)
configuredModelType - the new configured model typepublic boolean isWildcardEscapingEnabled()
public void setWildcardEscapingEnabled(boolean wildcardEscapingEnabled)
wildcardEscapingEnabled - the new wildcard escaping enabledpublic XmlElement toXmlElement()
public boolean isDelimitIdentifiers()
public void setDelimitIdentifiers(boolean delimitIdentifiers)
delimitIdentifiers - the new delimit identifierspublic boolean isCountByExampleStatementEnabled()
public void setCountByExampleStatementEnabled(boolean countByExampleStatementEnabled)
countByExampleStatementEnabled - the new count by example statement enabledpublic boolean isUpdateByExampleStatementEnabled()
public void setUpdateByExampleStatementEnabled(boolean updateByExampleStatementEnabled)
updateByExampleStatementEnabled - the new update by example statement enabledpublic void validate(List<String> errors, int listPosition)
errors - the errorslistPosition - the list positionpublic ColumnRenamingRule getColumnRenamingRule()
public void setColumnRenamingRule(ColumnRenamingRule columnRenamingRule)
columnRenamingRule - the new column renaming rulepublic boolean isAllColumnDelimitingEnabled()
public void setAllColumnDelimitingEnabled(boolean isAllColumnDelimitingEnabled)
isAllColumnDelimitingEnabled - the new all column delimiting enabledCopyright © 2006–2016 MyBatis.org. All rights reserved.