org.mybatis.generator.api
Class IntrospectedColumn

java.lang.Object
  extended by 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

Field Summary
protected  java.lang.String actualColumnName
           
protected  Context context
           
protected  java.lang.String defaultValue
           
protected  FullyQualifiedJavaType fullyQualifiedJavaType
           
protected  boolean identity
           
protected  IntrospectedTable introspectedTable
           
protected  boolean isColumnNameDelimited
           
protected  boolean isSequenceColumn
           
protected  java.lang.String javaProperty
           
protected  int jdbcType
           
protected  java.lang.String jdbcTypeName
           
protected  int length
           
protected  boolean nullable
           
protected  java.util.Properties properties
           
protected  java.lang.String remarks
           
protected  int scale
           
protected  java.lang.String tableAlias
           
protected  java.lang.String typeHandler
           
 
Constructor Summary
IntrospectedColumn()
          Constructs a Column definition.
 
Method Summary
 java.lang.String getActualColumnName()
           
 Context getContext()
           
 java.lang.String getDefaultValue()
           
 FullyQualifiedJavaType getFullyQualifiedJavaType()
           
 IntrospectedTable getIntrospectedTable()
           
 java.lang.String getJavaProperty()
           
 java.lang.String getJavaProperty(java.lang.String prefix)
           
 int getJdbcType()
           
 java.lang.String getJdbcTypeName()
           
 int getLength()
           
 java.util.Properties getProperties()
           
 java.lang.String getRemarks()
           
 int getScale()
           
 java.lang.String getTableAlias()
           
 java.lang.String getTypeHandler()
           
 boolean isBLOBColumn()
           
 boolean isColumnNameDelimited()
           
 boolean isIdentity()
           
 boolean isJdbcCharacterColumn()
           
 boolean isJDBCDateColumn()
           
 boolean isJDBCTimeColumn()
           
 boolean isNullable()
           
 boolean isSequenceColumn()
           
 boolean isStringColumn()
           
 void setActualColumnName(java.lang.String actualColumnName)
           
 void setColumnNameDelimited(boolean isColumnNameDelimited)
           
 void setContext(Context context)
           
 void setDefaultValue(java.lang.String defaultValue)
           
 void setFullyQualifiedJavaType(FullyQualifiedJavaType fullyQualifiedJavaType)
           
 void setIdentity(boolean identity)
           
 void setIntrospectedTable(IntrospectedTable introspectedTable)
           
 void setJavaProperty(java.lang.String javaProperty)
           
 void setJdbcType(int jdbcType)
           
 void setJdbcTypeName(java.lang.String jdbcTypeName)
           
 void setLength(int length)
           
 void setNullable(boolean nullable)
           
 void setProperties(java.util.Properties properties)
           
 void setRemarks(java.lang.String remarks)
           
 void setScale(int scale)
           
 void setSequenceColumn(boolean isSequenceColumn)
           
 void setTableAlias(java.lang.String tableAlias)
           
 void setTypeHandler(java.lang.String typeHandler)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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;

Method Detail

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)