org.mybatis.generator.api
Class IntrospectedColumn
java.lang.Object
org.mybatis.generator.api.IntrospectedColumn
public class IntrospectedColumn
- extends java.lang.Object
This class holds information about an introspected column. The class has
utility methods useful for generating iBATIS objects.
- Author:
- Jeff Butler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
actualColumnName
protected java.lang.String actualColumnName
jdbcType
protected int jdbcType
jdbcTypeName
protected java.lang.String jdbcTypeName
nullable
protected boolean nullable
length
protected int length
scale
protected int scale
identity
protected boolean identity
isSequenceColumn
protected boolean isSequenceColumn
javaProperty
protected java.lang.String javaProperty
fullyQualifiedJavaType
protected FullyQualifiedJavaType fullyQualifiedJavaType
tableAlias
protected java.lang.String tableAlias
typeHandler
protected java.lang.String typeHandler
context
protected Context context
isColumnNameDelimited
protected boolean isColumnNameDelimited
introspectedTable
protected IntrospectedTable introspectedTable
properties
protected java.util.Properties properties
remarks
protected java.lang.String remarks
defaultValue
protected java.lang.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 java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
setActualColumnName
public void setActualColumnName(java.lang.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 java.lang.String getJavaProperty()
getJavaProperty
public java.lang.String getJavaProperty(java.lang.String prefix)
setJavaProperty
public void setJavaProperty(java.lang.String javaProperty)
isJDBCDateColumn
public boolean isJDBCDateColumn()
isJDBCTimeColumn
public boolean isJDBCTimeColumn()
getTypeHandler
public java.lang.String getTypeHandler()
setTypeHandler
public void setTypeHandler(java.lang.String typeHandler)
getActualColumnName
public java.lang.String getActualColumnName()
setColumnNameDelimited
public void setColumnNameDelimited(boolean isColumnNameDelimited)
isColumnNameDelimited
public boolean isColumnNameDelimited()
getJdbcTypeName
public java.lang.String getJdbcTypeName()
setJdbcTypeName
public void setJdbcTypeName(java.lang.String jdbcTypeName)
getFullyQualifiedJavaType
public FullyQualifiedJavaType getFullyQualifiedJavaType()
setFullyQualifiedJavaType
public void setFullyQualifiedJavaType(FullyQualifiedJavaType fullyQualifiedJavaType)
getTableAlias
public java.lang.String getTableAlias()
setTableAlias
public void setTableAlias(java.lang.String tableAlias)
getContext
public Context getContext()
setContext
public void setContext(Context context)
getIntrospectedTable
public IntrospectedTable getIntrospectedTable()
setIntrospectedTable
public void setIntrospectedTable(IntrospectedTable introspectedTable)
getProperties
public java.util.Properties getProperties()
setProperties
public void setProperties(java.util.Properties properties)
getRemarks
public java.lang.String getRemarks()
setRemarks
public void setRemarks(java.lang.String remarks)
getDefaultValue
public java.lang.String getDefaultValue()
setDefaultValue
public void setDefaultValue(java.lang.String defaultValue)
isSequenceColumn
public boolean isSequenceColumn()
setSequenceColumn
public void setSequenceColumn(boolean isSequenceColumn)