类 Column

java.lang.Object
gu.sql2java.generator.Column
所有已实现的接口:
Cloneable, Comparable<Column>
直接已知子类:
IndexColumn

public class Column extends Object implements Cloneable, Comparable<Column>
  • 字段详细资料

  • 构造器详细资料

    • Column

      public Column()
  • 方法详细资料

    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • equals

      public boolean equals(Object obj)
      覆盖:
      equals 在类中 Object
    • setCheckingType

      public void setCheckingType(String strValue)
    • getCheckingType

      public String getCheckingType()
    • setDatabase

      public void setDatabase(Database db)
    • setCatalog

      public void setCatalog(String catalog)
    • setSchema

      public void setSchema(String schema)
    • setTableName

      public void setTableName(String tableName)
    • setName

      public void setName(String name)
    • 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

      public void setRemarks(String remarks)
    • setDefaultValue

      public void setDefaultValue(String defaultValue)
    • setOrdinalPosition

      public void setOrdinalPosition(int ordinal)
    • isPrimaryKey

      public void isPrimaryKey(boolean isKey)
    • getCatalog

      public String getCatalog()
    • getSchema

      public String getSchema()
    • getTableName

      public String getTableName()
    • getName

      public String getName()
    • getType

      public short getType()
    • getSize

      public int getSize()
    • getDecimalDigits

      public int getDecimalDigits()
    • getRadix

      public int getRadix()
    • getNullable

      public int getNullable()
    • getNullableAsString

      public String getNullableAsString()
    • getOrdinalPosition

      public int getOrdinalPosition()
    • isPrimaryKey

      public boolean isPrimaryKey()
    • getFullName

      public String getFullName()
    • getFullNameNsp

      public String getFullNameNsp()
      从以下版本开始:
      3.31.0
    • getConstName

      public String getConstName()
    • getIDConstName

      public String getIDConstName()
    • getIDMaskConstName

      public String getIDMaskConstName()
    • getNameConstName

      public String getNameConstName()
    • getIDAssociated

      public String getIDAssociated()
      从以下版本开始:
      3.31.0
    • getIDAssociated

      public String getIDAssociated(String suffix)
      从以下版本开始:
      3.31.0
    • getNameAssociated

      public String getNameAssociated()
      从以下版本开始:
      3.31.0
    • getDescName

      public String getDescName()
      另请参阅:
      • SqlComment.getDescName()
    • getNamesTagMap

      public Map<String,String> getNamesTagMap()
      另请参阅:
      • SqlComment.getNamesTagMap()
    • getExcelColumn

      public String getExcelColumn()
    • getVisibility

      public ColumnVisibility 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

      public List<String> getAnnotations()
      如果字段注释中有ANN tag,则解析ANN tag,返回ANN的注解定义列表 如果不是ANN字段则返回空
      从以下版本开始:
      3.21.0
    • getJsonAnnotations

      public List<String> getJsonAnnotations()
      如果字段注释中有JSAN tag,则解析JSAN tag,返回JSAN的注解定义列表 如果不是JSAN字段则返回空
      从以下版本开始:
      3.32.0
    • getGeometryType

      public Class<?> getGeometryType()
      如果字段为空间数据类型(Spatial Data)则返回对应的JTS Java类否则 返回null
      从以下版本开始:
      3.18.0
    • clone

      public Object clone() throws CloneNotSupportedException
      覆盖:
      clone 在类中 Object
      抛出:
      CloneNotSupportedException
    • getMappedType

      public int getMappedType()
    • getQuerySetMethod

      public String getQuerySetMethod()
    • getJavaClass

      public Class<?> getJavaClass()
      返回:
      返回对应的Java类型
    • getJavaType

      public String getJavaType()
      返回对应的Java类型,除java语言内置类型(java.lang)外,其他类型返回全名, 如果SQL注释中定义了字段的Java类型则优先返回注释中定义的类型
    • getFieldJavaType

      public String getFieldJavaType()
      返回字段的Java类型,除java语言内置类型(java.lang)外,其他类型返回全名, 如果SQL注释中定义了字段的Java类型则优先返回注释中定义的类型
    • getRwType

      public String getRwType()
      返回字段 read/write方法的Java类型
      从以下版本开始:
      3.21.0
    • hasPrimaryType

      public boolean hasPrimaryType()
    • getJavaPrimaryType

      public String getJavaPrimaryType() throws IllegalArgumentException
      抛出:
      IllegalArgumentException
    • getJavaTypeAsTypeName

      public String 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

      public boolean hasCompareTo() throws Exception
      抛出:
      Exception
    • useEqualsInSetter

      public boolean useEqualsInSetter() throws Exception
      抛出:
      Exception
    • getResultSetMethodObject

      public String getResultSetMethodObject(String pos)
    • getResultSetMethodObject

      public String getResultSetMethodObject(String resultSet, String pos)
    • getPreparedStatementMethod

      public String getPreparedStatementMethod(String var, int pos)
    • getPreparedStatementMethod

      public String getPreparedStatementMethod(String var, String pos)
    • getStringConvertionMethod

      public String getStringConvertionMethod()
    • getDefaultWidget

      public String getDefaultWidget()
    • isVersion

      public boolean isVersion()
    • getTable

      public Table getTable()
    • addForeignKey

      public void addForeignKey(Column col, String fkName, short keySeq, Table.ForeignKeyRule updateRule, Table.ForeignKeyRule deleteRule)
    • getForeignKeys

      public List<Column> getForeignKeys()
    • addImportedKey

      public void addImportedKey(Column col)
    • getImportedKeys

      public List<Column> getImportedKeys()
    • countImportedKeys

      public int countImportedKeys()
    • isImportedKey

      public boolean isImportedKey()
    • getForeignColumn

      public Column getForeignColumn()
    • countForeignKeys

      public int countForeignKeys()
    • isForeignKey

      public boolean isForeignKey()
    • getPropertyTag

      public String getPropertyTag()
    • getDefaultRules

      public String getDefaultRules()
    • getDefaultIncludeFor

      public boolean getDefaultIncludeFor(String webElement)
    • getDefaultValue

      public String getDefaultValue(boolean nullInstead)
      生成缺省值字符串
      参数:
      nullInstead - 指示defaultValuenull时是否用字符串'null'代替
      返回:
      缺省值字符串
    • getDefaultValue

      public String getDefaultValue()
      兼容之前版本
    • getOriginalDefaultValue

      public String getOriginalDefaultValue()
      返回defaultValue原始值
    • commentOfDefaultValue

      public String commentOfDefaultValue()
      生成缺省值(defaultValue)的注释信息
    • getDefaultValueAssignment

      public String getDefaultValueAssignment(boolean nullInstead)
      生成缺省值赋值语句
    • getRemarks

      public String getRemarks()
    • getJavaName

      public String getJavaName()
    • getSampleData

      public String getSampleData()
    • convertName

      public String convertName(String columnName)
    • convertName

      public String convertName(Column col)
    • convertName

      public String convertName()
    • getImportedKeyVarName

      public String getImportedKeyVarName()
    • getGetMethod

      public String getGetMethod()
    • getSetMethod

      public String getSetMethod()
    • getReadMethod

      public String getReadMethod()
    • getWriteMethod

      public String getWriteMethod()
    • getModifiedMethod

      public String getModifiedMethod()
    • getInitializedMethod

      public String getInitializedMethod()
    • getGetCacheMethod

      public String getGetCacheMethod()
    • getPutCacheMethod

      public String getPutCacheMethod()
    • getPutIfAbsentCacheMethod

      public String getPutIfAbsentCacheMethod()
    • getReplaceCacheMethod

      public String getReplaceCacheMethod()
    • bitCheckExpression

      public String bitCheckExpression(String varName)
    • bitSetAssignExpression

      public String bitSetAssignExpression(String varName)
    • bitResetAssignExpression

      public String bitResetAssignExpression(String varName)
    • getWidgetMethod

      public String getWidgetMethod()
    • getVarName

      public String getVarName()
    • getCacheVarName

      public String getCacheVarName()
    • getFullVarName

      public String getFullVarName()
    • getModifiedVarName

      public String getModifiedVarName()
    • getInitializedVarName

      public String getInitializedVarName()
    • getImportedKeyModifiedVarName

      public String getImportedKeyModifiedVarName()
    • getImportedKeyInitializedVarName

      public String getImportedKeyInitializedVarName()
    • getImportedKeyInitializedMethod

      public String getImportedKeyInitializedMethod()
    • getImportedKeyGetMethod

      public String getImportedKeyGetMethod()
    • getImportedKeyAddMethod

      public String getImportedKeyAddMethod()
    • getImportedKeySetMethod

      public String getImportedKeySetMethod()
    • getImportedKeyModifiedMethod

      public String getImportedKeyModifiedMethod()
    • getForeignKeyVarName

      public String getForeignKeyVarName()
    • getForeignKeyModifiedVarName

      public String getForeignKeyModifiedVarName()
    • getForeignKeyInitializedVarName

      public String getForeignKeyInitializedVarName()
    • getForeignKeyInitializedMethod

      public String getForeignKeyInitializedMethod()
    • getForeignKeyGetMethod

      public String getForeignKeyGetMethod(String col)
    • getForeignKeySetMethod

      public String getForeignKeySetMethod(String col)
    • getForeignKeyModifiedMethod

      public String getForeignKeyModifiedMethod(String col)
    • getTypeName

      public String getTypeName()
    • setTypeName

      public void setTypeName(String typeName)
    • compareTo

      public int compareTo(Column obj)
      指定者:
      compareTo 在接口中 Comparable<Column>
    • getAutoincrement

      public String getAutoincrement()
    • setAutoincrement

      public void setAutoincrement(String autoincrement)
    • isAutoincrement

      public boolean isAutoincrement()
    • isNotNull

      public boolean isNotNull()
    • getInvalidValueAnn

      public String getInvalidValueAnn()
    • isPreAlloc

      public boolean isPreAlloc()
    • setJacksonBeanSupport

      public static void setJacksonBeanSupport(boolean jacksonBeanSupport)
    • setGeometrySerialType

      public static void setGeometrySerialType(String geometrySerialType)