org.mybatis.generator.api
Class IntrospectedColumn
java.lang.Object
org.mybatis.generator.api.IntrospectedColumn
public class IntrospectedColumn
- extends Object
This class holds information about an introspected column. The class has
utility methods useful for generating iBATIS objects.
- Author:
- Jeff Butler
actualColumnName
protected String actualColumnName
jdbcType
protected int jdbcType
jdbcTypeName
protected String jdbcTypeName
nullable
protected boolean nullable
length
protected int length
scale
protected int scale
identity
protected boolean identity
isSequenceColumn
protected boolean isSequenceColumn
javaProperty
protected String javaProperty
fullyQualifiedJavaType
protected FullyQualifiedJavaType fullyQualifiedJavaType
tableAlias
protected String tableAlias
typeHandler
protected String typeHandler
context
protected Context context
isColumnNameDelimited
protected boolean isColumnNameDelimited
introspectedTable
protected IntrospectedTable introspectedTable
properties
protected Properties properties
remarks
protected String remarks
defaultValue
protected String defaultValue
IntrospectedColumn
public IntrospectedColumn()
- Constructs a Column definition. This object holds all the information
about a column that is required to generate Java objects and SQL maps;
getJdbcType
public int getJdbcType()
setJdbcType
public void setJdbcType(int jdbcType)
getLength
public int getLength()
setLength
public void setLength(int length)
isNullable
public boolean isNullable()
setNullable
public void setNullable(boolean nullable)
getScale
public int getScale()
setScale
public void setScale(int scale)
toString
public String toString()
- Overrides:
toString
in class Object
setActualColumnName
public void setActualColumnName(String actualColumnName)
isIdentity
public boolean isIdentity()
- Returns:
- Returns the identity.
setIdentity
public void setIdentity(boolean identity)
- Parameters:
identity
- The identity to set.
isBLOBColumn
public boolean isBLOBColumn()
isStringColumn
public boolean isStringColumn()
isJdbcCharacterColumn
public boolean isJdbcCharacterColumn()
getJavaProperty
public String getJavaProperty()
getJavaProperty
public String getJavaProperty(String prefix)
setJavaProperty
public void setJavaProperty(String javaProperty)
isJDBCDateColumn
public boolean isJDBCDateColumn()
isJDBCTimeColumn
public boolean isJDBCTimeColumn()
getTypeHandler
public String getTypeHandler()
setTypeHandler
public void setTypeHandler(String typeHandler)
getActualColumnName
public String getActualColumnName()
setColumnNameDelimited
public void setColumnNameDelimited(boolean isColumnNameDelimited)
isColumnNameDelimited
public boolean isColumnNameDelimited()
getJdbcTypeName
public String getJdbcTypeName()
setJdbcTypeName
public void setJdbcTypeName(String jdbcTypeName)
getFullyQualifiedJavaType
public FullyQualifiedJavaType getFullyQualifiedJavaType()
setFullyQualifiedJavaType
public void setFullyQualifiedJavaType(FullyQualifiedJavaType fullyQualifiedJavaType)
getTableAlias
public String getTableAlias()
setTableAlias
public void setTableAlias(String tableAlias)
getContext
public Context getContext()
setContext
public void setContext(Context context)
getIntrospectedTable
public IntrospectedTable getIntrospectedTable()
setIntrospectedTable
public void setIntrospectedTable(IntrospectedTable introspectedTable)
getProperties
public Properties getProperties()
setProperties
public void setProperties(Properties properties)
getRemarks
public String getRemarks()
setRemarks
public void setRemarks(String remarks)
getDefaultValue
public String getDefaultValue()
setDefaultValue
public void setDefaultValue(String defaultValue)
isSequenceColumn
public boolean isSequenceColumn()
setSequenceColumn
public void setSequenceColumn(boolean isSequenceColumn)
Copyright © 2010-2012 MyBatis.org. All Rights Reserved.