类 Column
java.lang.Object
gu.sql2java.generator.Column
- 所有已实现的接口:
Cloneable,Comparable<Column>
- 直接已知子类:
IndexColumn
-
字段概要
字段修饰符和类型字段说明static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddForeignKey(Column col, String fkName, short keySeq, Table.ForeignKeyRule updateRule, Table.ForeignKeyRule deleteRule) voidaddImportedKey(Column col) bitCheckExpression(String varName) bitResetAssignExpression(String varName) bitSetAssignExpression(String varName) clone()生成缺省值(defaultValue)的注释信息intconvertName(Column col) convertName(String columnName) intintboolean如果字段注释中有ANN tag,则解析ANN tag,返回ANN的注解定义列表 如果不是ANN字段则返回空intbooleangetDefaultIncludeFor(String webElement) 兼容之前版本getDefaultValue(boolean nullInstead) 生成缺省值字符串getDefaultValueAssignment(boolean nullInstead) 生成缺省值赋值语句返回字段的Java类型,除java语言内置类型(java.lang)外,其他类型返回全名, 如果SQL注释中定义了字段的Java类型则优先返回注释中定义的类型Class<?>如果字段为空间数据类型(Spatial Data)则返回对应的JTS Java类否则 返回nullgetIDAssociated(String suffix) Class<?>返回对应的Java类型,除java语言内置类型(java.lang)外,其他类型返回全名, 如果SQL注释中定义了字段的Java类型则优先返回注释中定义的类型如果字段注释中有JSAN tag,则解析JSAN tag,返回JSAN的注解定义列表 如果不是JSAN字段则返回空intgetName()intint返回defaultValue原始值getPreparedStatementMethod(String var, int pos) getPreparedStatementMethod(String var, String pos) intgetRadix()getResultSetMethodObject(String resultSet, String pos) 返回字段 read/write方法的Java类型intgetSize()getTable()shortgetType()返回当前字段可见度booleanbooleanbooleanbooleanisBinary()booleanbooleanbooleanbooleanbooleanisDate()boolean如果字段注释中定义了字段类型返回true,否则返回falsebooleanbooleanisFloat()booleanboolean返回当前字段是否为空间数据类型(Spatial Data)booleanboolean返回当前字段是否被定义为JSON字段booleanbooleanbooleanbooleanbooleanvoidisPrimaryKey(boolean isKey) booleanbooleanisString()booleanvoidsetAutoincrement(String autoincrement) voidsetCatalog(String catalog) voidsetCheckingType(String strValue) voidsetDatabase(Database db) voidsetDecimalDigits(int decDigits) voidsetDefaultValue(String defaultValue) static voidsetGeometrySerialType(String geometrySerialType) static voidsetJacksonBeanSupport(boolean jacksonBeanSupport) voidvoidsetNullable(int nullable) voidsetOrdinalPosition(int ordinal) voidsetRadix(int radix) voidsetRemarks(String remarks) voidvoidsetSize(int size) voidsetTableName(String tableName) voidsetType(short type) voidsetTypeName(String typeName) toString()boolean
-
字段详细资料
-
M_ARRAY
static final int M_ARRAY- 另请参阅:
-
M_BIGDECIMAL
static final int M_BIGDECIMAL- 另请参阅:
-
M_BOOLEAN
static final int M_BOOLEAN- 另请参阅:
-
M_BYTES
static final int M_BYTES- 另请参阅:
-
M_CLOB
static final int M_CLOB- 另请参阅:
-
M_SQLDATE
static final int M_SQLDATE- 另请参阅:
-
M_UTILDATE
static final int M_UTILDATE- 另请参阅:
-
M_DOUBLE
static final int M_DOUBLE- 另请参阅:
-
M_FLOAT
static final int M_FLOAT- 另请参阅:
-
M_BLOB
static final int M_BLOB- 另请参阅:
-
M_INTEGER
static final int M_INTEGER- 另请参阅:
-
M_LONG
static final int M_LONG- 另请参阅:
-
M_REF
static final int M_REF- 另请参阅:
-
M_STRING
static final int M_STRING- 另请参阅:
-
M_TIME
static final int M_TIME- 另请参阅:
-
M_TIMESTAMP
static final int M_TIMESTAMP- 另请参阅:
-
M_URL
static final int M_URL- 另请参阅:
-
M_OBJECT
static final int M_OBJECT- 另请参阅:
-
M_CALENDAR
static final int M_CALENDAR- 另请参阅:
-
M_BYTE
static final int M_BYTE- 从以下版本开始:
- 3.19.0
- 另请参阅:
-
M_SHORT
static final int M_SHORT- 从以下版本开始:
- 3.19.0
- 另请参阅:
-
-
构造器详细资料
-
Column
public Column()
-
-
方法详细资料
-
toString
-
equals
-
setCheckingType
-
getCheckingType
-
setDatabase
-
setCatalog
-
setSchema
-
setTableName
-
setName
-
setType
public void setType(short type) -
setSize
public void setSize(int size) -
setDecimalDigits
public void setDecimalDigits(int decDigits) -
setRadix
public void setRadix(int radix) -
setNullable
public void setNullable(int nullable) -
setRemarks
-
setDefaultValue
-
setOrdinalPosition
public void setOrdinalPosition(int ordinal) -
isPrimaryKey
public void isPrimaryKey(boolean isKey) -
getCatalog
-
getSchema
-
getTableName
-
getName
-
getType
public short getType() -
getSize
public int getSize() -
getDecimalDigits
public int getDecimalDigits() -
getRadix
public int getRadix() -
getNullable
public int getNullable() -
getNullableAsString
-
getOrdinalPosition
public int getOrdinalPosition() -
isPrimaryKey
public boolean isPrimaryKey() -
getFullName
-
getFullNameNsp
- 从以下版本开始:
- 3.31.0
-
getConstName
-
getIDConstName
-
getIDMaskConstName
-
getNameConstName
-
getIDAssociated
- 从以下版本开始:
- 3.31.0
-
getIDAssociated
- 从以下版本开始:
- 3.31.0
-
getNameAssociated
- 从以下版本开始:
- 3.31.0
-
getDescName
- 另请参阅:
-
SqlComment.getDescName()
-
getNamesTagMap
- 另请参阅:
-
SqlComment.getNamesTagMap()
-
getExcelColumn
-
getVisibility
返回当前字段可见度- 从以下版本开始:
- 3.32.0
-
isJsonField
public boolean isJsonField()返回当前字段是否被定义为JSON字段 -
isDefinedFieldType
public boolean isDefinedFieldType()如果字段注释中定义了字段类型返回true,否则返回false- 从以下版本开始:
- 3.21.0
-
isGeometry
public boolean isGeometry()返回当前字段是否为空间数据类型(Spatial Data)- 从以下版本开始:
- 3.18.0
-
isJsonJacksonRawValue
public boolean isJsonJacksonRawValue() -
isByteBufferAsString
public boolean isByteBufferAsString() -
getAnnotations
如果字段注释中有ANN tag,则解析ANN tag,返回ANN的注解定义列表 如果不是ANN字段则返回空- 从以下版本开始:
- 3.21.0
-
getJsonAnnotations
如果字段注释中有JSAN tag,则解析JSAN tag,返回JSAN的注解定义列表 如果不是JSAN字段则返回空- 从以下版本开始:
- 3.32.0
-
getGeometryType
如果字段为空间数据类型(Spatial Data)则返回对应的JTS Java类否则 返回null- 从以下版本开始:
- 3.18.0
-
clone
- 覆盖:
clone在类中Object- 抛出:
CloneNotSupportedException
-
getMappedType
public int getMappedType() -
getQuerySetMethod
-
getJavaClass
- 返回:
- 返回对应的Java类型
-
getJavaType
返回对应的Java类型,除java语言内置类型(java.lang)外,其他类型返回全名, 如果SQL注释中定义了字段的Java类型则优先返回注释中定义的类型 -
getFieldJavaType
返回字段的Java类型,除java语言内置类型(java.lang)外,其他类型返回全名, 如果SQL注释中定义了字段的Java类型则优先返回注释中定义的类型 -
getRwType
返回字段 read/write方法的Java类型- 从以下版本开始:
- 3.21.0
-
hasPrimaryType
public boolean hasPrimaryType() -
getJavaPrimaryType
-
getJavaTypeAsTypeName
-
isSizeLimit
public boolean isSizeLimit()- 返回:
- 字段类型是否有长度限制
-
isMaxSize
public boolean isMaxSize()- 返回:
- 字段类型是否有最大长度限制
-
isFixSize
public boolean isFixSize()- 返回:
- 字段类型是否有固定长度限制
-
isCrossableDefaultvalue
public boolean isCrossableDefaultvalue() -
isColumnNumeric
public boolean isColumnNumeric() -
isString
public boolean isString() -
isFloat
public boolean isFloat() -
isDate
public boolean isDate() -
isBinary
public boolean isBinary() -
isCalendar
public boolean isCalendar() -
hasCompareTo
- 抛出:
Exception
-
useEqualsInSetter
- 抛出:
Exception
-
getResultSetMethodObject
-
getResultSetMethodObject
-
getPreparedStatementMethod
-
getPreparedStatementMethod
-
getStringConvertionMethod
-
getDefaultWidget
-
isVersion
public boolean isVersion() -
getTable
-
addForeignKey
public void addForeignKey(Column col, String fkName, short keySeq, Table.ForeignKeyRule updateRule, Table.ForeignKeyRule deleteRule) -
getForeignKeys
-
addImportedKey
-
getImportedKeys
-
countImportedKeys
public int countImportedKeys() -
isImportedKey
public boolean isImportedKey() -
getForeignColumn
-
countForeignKeys
public int countForeignKeys() -
isForeignKey
public boolean isForeignKey() -
getPropertyTag
-
getDefaultRules
-
getDefaultIncludeFor
-
getDefaultValue
生成缺省值字符串- 参数:
nullInstead- 指示defaultValue为null时是否用字符串'null'代替- 返回:
- 缺省值字符串
-
getDefaultValue
兼容之前版本 -
getOriginalDefaultValue
返回defaultValue原始值 -
commentOfDefaultValue
生成缺省值(defaultValue)的注释信息 -
getDefaultValueAssignment
生成缺省值赋值语句 -
getRemarks
-
getJavaName
-
getSampleData
-
convertName
-
convertName
-
convertName
-
getImportedKeyVarName
-
getGetMethod
-
getSetMethod
-
getReadMethod
-
getWriteMethod
-
getModifiedMethod
-
getInitializedMethod
-
getGetCacheMethod
-
getPutCacheMethod
-
getPutIfAbsentCacheMethod
-
getReplaceCacheMethod
-
bitCheckExpression
-
bitSetAssignExpression
-
bitResetAssignExpression
-
getWidgetMethod
-
getVarName
-
getCacheVarName
-
getFullVarName
-
getModifiedVarName
-
getInitializedVarName
-
getImportedKeyModifiedVarName
-
getImportedKeyInitializedVarName
-
getImportedKeyInitializedMethod
-
getImportedKeyGetMethod
-
getImportedKeyAddMethod
-
getImportedKeySetMethod
-
getImportedKeyModifiedMethod
-
getForeignKeyVarName
-
getForeignKeyModifiedVarName
-
getForeignKeyInitializedVarName
-
getForeignKeyInitializedMethod
-
getForeignKeyGetMethod
-
getForeignKeySetMethod
-
getForeignKeyModifiedMethod
-
getTypeName
-
setTypeName
-
compareTo
- 指定者:
compareTo在接口中Comparable<Column>
-
getAutoincrement
-
setAutoincrement
-
isAutoincrement
public boolean isAutoincrement() -
isNotNull
public boolean isNotNull() -
getInvalidValueAnn
-
isPreAlloc
public boolean isPreAlloc() -
setJacksonBeanSupport
public static void setJacksonBeanSupport(boolean jacksonBeanSupport) -
setGeometrySerialType
-