Package org.mybatis.generator.api
Class IntrospectedColumn
java.lang.Object
org.mybatis.generator.api.IntrospectedColumn
This class holds information about an introspected column.
- Author:
- Jeff Butler
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected String
The platform specific data type name as reported from DatabaseMetadata.getColumns()protected Context
protected String
protected FullyQualifiedJavaType
protected boolean
protected IntrospectedTable
protected boolean
true if the JDBC driver reports that this column is auto-increment.protected boolean
protected boolean
True if there is a column override that defines this column as GENERATED ALWAYS.protected boolean
true if the JDBC driver reports that this column is generated.protected boolean
protected String
protected int
protected String
protected int
protected boolean
protected final Properties
protected String
protected int
protected String
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe platform specific type name as reported by the JDBC driver.getJavaProperty
(String prefix) int
int
int
getScale()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setActualColumnName
(String actualColumnName) void
setActualTypeName
(String actualTypeName) void
setAutoIncrement
(boolean isAutoIncrement) void
setColumnNameDelimited
(boolean isColumnNameDelimited) void
setContext
(Context context) void
setDefaultValue
(String defaultValue) void
setFullyQualifiedJavaType
(FullyQualifiedJavaType fullyQualifiedJavaType) void
setGeneratedAlways
(boolean isGeneratedAlways) void
setGeneratedColumn
(boolean isGeneratedColumn) 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) toString()
-
Field Details
-
actualColumnName
-
jdbcType
protected int jdbcType -
actualTypeName
The platform specific data type name as reported from DatabaseMetadata.getColumns() -
jdbcTypeName
-
nullable
protected boolean nullable -
length
protected int length -
scale
protected int scale -
identity
protected boolean identity -
isSequenceColumn
protected boolean isSequenceColumn -
javaProperty
-
fullyQualifiedJavaType
-
tableAlias
-
typeHandler
-
context
-
isColumnNameDelimited
protected boolean isColumnNameDelimited -
introspectedTable
-
properties
-
remarks
-
defaultValue
-
isAutoIncrement
protected boolean isAutoIncrementtrue if the JDBC driver reports that this column is auto-increment. -
isGeneratedColumn
protected boolean isGeneratedColumntrue if the JDBC driver reports that this column is generated. -
isGeneratedAlways
protected boolean isGeneratedAlwaysTrue if there is a column override that defines this column as GENERATED ALWAYS.
-
-
Constructor Details
-
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 Details
-
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
-
setActualColumnName
-
isIdentity
public boolean isIdentity() -
setIdentity
public void setIdentity(boolean identity) -
isBLOBColumn
public boolean isBLOBColumn() -
isStringColumn
public boolean isStringColumn() -
isJdbcCharacterColumn
public boolean isJdbcCharacterColumn() -
getJavaProperty
-
getJavaProperty
-
setJavaProperty
-
isJDBCDateColumn
public boolean isJDBCDateColumn() -
isJDBCTimeColumn
public boolean isJDBCTimeColumn() -
getTypeHandler
-
setTypeHandler
-
getActualColumnName
-
setColumnNameDelimited
public void setColumnNameDelimited(boolean isColumnNameDelimited) -
isColumnNameDelimited
public boolean isColumnNameDelimited() -
getJdbcTypeName
-
setJdbcTypeName
-
getFullyQualifiedJavaType
-
setFullyQualifiedJavaType
-
getTableAlias
-
setTableAlias
-
getContext
-
setContext
-
getIntrospectedTable
-
setIntrospectedTable
-
getProperties
-
setProperties
-
getRemarks
-
setRemarks
-
getDefaultValue
-
setDefaultValue
-
isSequenceColumn
public boolean isSequenceColumn() -
setSequenceColumn
public void setSequenceColumn(boolean isSequenceColumn) -
isAutoIncrement
public boolean isAutoIncrement() -
setAutoIncrement
public void setAutoIncrement(boolean isAutoIncrement) -
isGeneratedColumn
public boolean isGeneratedColumn() -
setGeneratedColumn
public void setGeneratedColumn(boolean isGeneratedColumn) -
isGeneratedAlways
public boolean isGeneratedAlways() -
setGeneratedAlways
public void setGeneratedAlways(boolean isGeneratedAlways) -
getActualTypeName
The platform specific type name as reported by the JDBC driver. This value is determined from the DatabaseMetadata.getColumns() call - specifically ResultSet.getString("TYPE_NAME"). This value is platform dependent.- Returns:
- the platform specific type name as reported by the JDBC driver
-
setActualTypeName
-