org.mybatis.generator.api
Class IntrospectedColumn

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

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

Field Detail

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
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 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.