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.
|
void |
addIgnoredColumnPattern(IgnoredColumnPattern ignoredColumnPattern) |
boolean |
areAnyStatementsEnabled()
Are any statements enabled.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAlias()
Gets the alias.
|
java.lang.String |
getCatalog()
Gets the catalog.
|
ColumnOverride |
getColumnOverride(java.lang.String columnName)
May return null if the column has not been overridden.
|
java.util.List<ColumnOverride> |
getColumnOverrides()
Gets the column overrides.
|
ColumnRenamingRule |
getColumnRenamingRule()
Gets the column renaming rule.
|
java.lang.String |
getDomainObjectName()
Gets the domain object name.
|
GeneratedKey |
getGeneratedKey()
Gets the generated key.
|
java.util.List<java.lang.String> |
getIgnoredColumnsInError()
This method returns a List of Strings.
|
java.lang.String |
getMapperName() |
ModelType |
getModelType()
Gets the model type.
|
java.util.List<OneToMany> |
getOneToManys() |
java.util.List<OneToOne> |
getOneToOnes() |
java.lang.String |
getSchema()
Gets the schema.
|
java.lang.String |
getSelectByExampleQueryId()
Gets the select by example query id.
|
java.lang.String |
getSelectByPrimaryKeyQueryId()
Gets the select by primary key query id.
|
java.lang.String |
getSqlProviderName() |
java.lang.String |
getTableName()
Gets the table name.
|
int |
hashCode() |
boolean |
isAllColumnDelimitingEnabled()
Checks if is all column delimiting enabled.
|
boolean |
isColumnIgnored(java.lang.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(java.lang.String alias)
Sets the alias.
|
void |
setAllColumnDelimitingEnabled(boolean isAllColumnDelimitingEnabled)
Sets the all column delimiting enabled.
|
void |
setCatalog(java.lang.String catalog)
Sets the catalog.
|
void |
setColumnRenamingRule(ColumnRenamingRule columnRenamingRule)
Sets the column renaming rule.
|
void |
setConfiguredModelType(java.lang.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(java.lang.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 |
setMapperName(java.lang.String mapperName) |
void |
setOneToManys(java.util.List<OneToMany> oneToManys) |
void |
setOneToOnes(java.util.List<OneToOne> oneToOnes) |
void |
setSchema(java.lang.String schema)
Sets the schema.
|
void |
setSelectByExampleQueryId(java.lang.String selectByExampleQueryId)
Sets the select by example query id.
|
void |
setSelectByExampleStatementEnabled(boolean selectByExampleStatementEnabled)
Sets the select by example statement enabled.
|
void |
setSelectByPrimaryKeyQueryId(java.lang.String selectByPrimaryKeyQueryId)
Sets the select by primary key query id.
|
void |
setSelectByPrimaryKeyStatementEnabled(boolean selectByPrimaryKeyStatementEnabled)
Sets the select by primary key statement enabled.
|
void |
setSqlProviderName(java.lang.String sqlProviderName) |
void |
setTableName(java.lang.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.
|
java.lang.String |
toString() |
XmlElement |
toXmlElement()
To xml element.
|
void |
validate(java.util.List<java.lang.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(java.lang.String columnName)
columnName - the column namepublic void addIgnoredColumn(IgnoredColumn ignoredColumn)
ignoredColumn - the ignored columnpublic void addIgnoredColumnPattern(IgnoredColumnPattern ignoredColumnPattern)
public void addColumnOverride(ColumnOverride columnOverride)
columnOverride - the column overridepublic boolean equals(java.lang.Object obj)
equals 在类中 java.lang.Objectpublic int hashCode()
hashCode 在类中 java.lang.Objectpublic boolean isSelectByExampleStatementEnabled()
public void setSelectByExampleStatementEnabled(boolean selectByExampleStatementEnabled)
selectByExampleStatementEnabled - the new select by example statement enabledpublic ColumnOverride getColumnOverride(java.lang.String columnName)
columnName - the column namepublic GeneratedKey getGeneratedKey()
public java.lang.String getSelectByExampleQueryId()
public void setSelectByExampleQueryId(java.lang.String selectByExampleQueryId)
selectByExampleQueryId - the new select by example query idpublic java.lang.String getSelectByPrimaryKeyQueryId()
public void setSelectByPrimaryKeyQueryId(java.lang.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 java.lang.String getAlias()
public void setAlias(java.lang.String alias)
alias - the new aliaspublic java.lang.String getCatalog()
public void setCatalog(java.lang.String catalog)
catalog - the new catalogpublic java.lang.String getDomainObjectName()
public void setDomainObjectName(java.lang.String domainObjectName)
domainObjectName - the new domain object namepublic java.lang.String getSchema()
public void setSchema(java.lang.String schema)
schema - the new schemapublic java.lang.String getTableName()
public void setTableName(java.lang.String tableName)
tableName - the new table namepublic java.util.List<ColumnOverride> getColumnOverrides()
public java.util.List<java.lang.String> getIgnoredColumnsInError()
public ModelType getModelType()
public void setConfiguredModelType(java.lang.String configuredModelType)
configuredModelType - the new configured model typepublic boolean isWildcardEscapingEnabled()
public void setWildcardEscapingEnabled(boolean wildcardEscapingEnabled)
wildcardEscapingEnabled - the new wildcard escaping enabledpublic XmlElement toXmlElement()
public java.lang.String toString()
toString 在类中 java.lang.Objectpublic 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(java.util.List<java.lang.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 enabledpublic java.lang.String getMapperName()
public void setMapperName(java.lang.String mapperName)
public java.lang.String getSqlProviderName()
public void setSqlProviderName(java.lang.String sqlProviderName)
public java.util.List<OneToOne> getOneToOnes()
public void setOneToOnes(java.util.List<OneToOne> oneToOnes)
public java.util.List<OneToMany> getOneToManys()
public void setOneToManys(java.util.List<OneToMany> oneToManys)
Copyright © 2018. All Rights Reserved.