public class Column extends TableAffiliation<Column> implements Serializable
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Column.Aggregation |
static class |
Column.Property |
static class |
Column.TYPE |
static class |
Column.Virtual
虚拟列属性
|
FIELD_TABLE, tableaction, alias, catalog, checkSchemaTime, comment, database, databaseType, datasource, ddls, definition, drop, engine, execute, extend, FIELD_ACTION, FIELD_ALIAS, FIELD_CATALOG, FIELD_CHECK_SCHEMA_TIME, FIELD_COMMENT, FIELD_DATABASE, FIELD_DATASOURCE, FIELD_DDL, FIELD_DEFINITION, FIELD_DROP, FIELD_DROP_CHECK, FIELD_DROP_CHECK_VALUE, FIELD_ENGINE, FIELD_EXECUTE, FIELD_EXECUTE_CHECK, FIELD_EXECUTE_CHECK_VALUE, FIELD_EXTEND, FIELD_GETMAP, FIELD_GETMAP_CHECK, FIELD_GETMAP_CHECK_VALUE, FIELD_ID, FIELD_IDENTITY, FIELD_METADATA, FIELD_NAME, FIELD_OBJECT_ID, FIELD_RUN, FIELD_SCHEMA, FIELD_SETMAP, FIELD_SETMAP_CHECK, FIELD_SETMAP_CHECK_VALUE, FIELD_SWT, FIELD_TEXT, FIELD_USER, getmap, id, identity, metadata, name, objectId, options, origin, property, runs, schema, setmap, swt, text, update, user| 构造器和说明 |
|---|
Column() |
Column(Catalog catalog,
Schema schema,
String table,
String name) |
Column(Schema schema,
String table,
String name) |
Column(String name) |
Column(String name,
String type) |
Column(String name,
String type,
int precision) |
Column(String name,
String type,
int precision,
int scale) |
Column(Table table,
String name,
String type) |
Column(Table table,
String name,
String type,
int precision) |
Column(Table table,
String name,
String type,
int precision,
int scale) |
addDdl, addRun, execute, getCatalog, getIdentity, getSchema, getTable, getTable, getTableName, getTableName, setTable, setTableaddDdl, addOption, addRuns, check, clone, ddl, ddl, ddls, ddls, delete, execute, get, getAction, getAlias, getCatalogName, getCheckSchemaTime, getComment, getDatabase, getDatabaseName, getDatabaseType, getDataSource, getDdl, getDdl, getDdls, getDdls, getDefinition, getEngine, getExtend, getFullName, getId, getMetadata, getName, getObjectId, getOrigin, getProperty, getRun, getRun, getRuns, getRuns, getSchemaName, getText, getUpdate, getUser, getUserName, isDelete, isDrop, isEmpty, isRename, match, match, match, match, match, names, names, names, names, options, removeCatalog, removeSchema, run, run, runs, runs, setAction, setAlias, setCatalog, setCatalog, setCheckSchemaTime, setComment, setDatabase, setDatabase, setDatabaseType, setDataSource, setDdl, setDefinition, setDelete, setDrop, setEngine, setExtend, setId, setMetadata, setName, setNewName, setObjectId, setProperty, setProperty, setRuns, setSchema, setSchema, setText, setUpdate, setUser, setUser, sort, swt, swt, type, types, types, update, updatepublic static LinkedHashMap<TypeMetadata.CATEGORY,TypeMetadata.Refer> typeCategoryConfigs
protected String keyword
protected String originName
protected String typeName
protected String qualifier
protected String originType
protected TypeMetadata typeMetadata
protected String fullType
protected String finalType
protected int ignoreLength
protected int ignorePrecision
protected int ignoreScale
protected int maxLength
protected int maxPrecision
protected int maxScale
protected Integer precisionLength
protected Integer length
protected String lengthUnit
protected Integer octetLength
protected Integer precision
protected Integer scale
protected Integer dimension
protected Column.Virtual virtual
protected String className
protected Integer displaySize
protected Integer type
protected String childTypeName
protected TypeMetadata childTypeMetadata
protected JavaType javaType
protected String jdbcType
protected String dateScale
protected Boolean nullable
protected Boolean caseSensitive
protected Boolean currency
protected Boolean signed
protected Boolean autoIncrement
protected Integer incrementSeed
protected Integer incrementStep
protected Boolean primary
protected String primaryType
protected Boolean unique
protected Boolean generated
protected Object defaultValue
protected String defaultConstraint
protected String charset
protected String collate
protected Column.Aggregation aggregation
protected Boolean withTimeZone
protected Boolean withLocalTimeZone
protected Column reference
protected Integer srid
protected boolean array
protected boolean isKey
protected Integer position
protected String order
protected String after
protected String before
protected String onUpdate
protected Object value
protected boolean defaultCurrentDateTime
protected Boolean index
protected Boolean store
protected String analyzer
protected String searchAnalyzer
protected Integer ignoreAbove
protected String coerce
protected String copyTo
protected String docValues
protected String dynamic
protected String eagerGlobalOrdinals
protected String enabled
protected String format
protected String ignoreMalformed
protected String indexOptions
protected String indexPhrases
protected String indexPrefixes
protected String meta
protected String fields
protected String normalizer
protected String norms
protected String nullValue
protected String positionIncrementGap
protected LinkedHashMap<String,Column.Property> properties
protected String similarity
protected String subObjects
protected String termVector
protected int parseLvl
protected ColumnFamily family
public static final String FIELD_AUTO_INCREMENT_CHECK_VALUE
public static final String FIELD_DEFAULT_CURRENT_DATE_TIME
public static final String FIELD_DEFAULT_CURRENT_DATE_TIME_CHECK
public static final String FIELD_DEFAULT_CURRENT_DATE_TIME_CHECK_VALUE
public Column()
public Column(String name)
public static <T extends Column> void sort(List<T> columns, boolean nullFirst)
T - Columncolumns - 列集合nullFirst - 未设置过位置(setPosition)的列是否排在最前面public Boolean getIndex()
public boolean isIndex()
public Boolean getStore()
public boolean isStore()
public String getAnalyzer()
public String getQualifier()
public String getSearchAnalyzer()
public Integer getIgnoreAbove()
public String getCoerce()
public String getCopyTo()
public String getDocValues()
public String getDynamic()
public String getEagerGlobalOrdinals()
public String getEnabled()
public Column.Virtual getVirtual()
public void setVirtual(Column.Virtual virtual)
public void setVirtual(String expr)
public void setVirtual(String expr, Column.Virtual.TYPE type)
public Integer getDimension()
public String getFormat()
public void setFormat(String format)
public String getIgnoreMalformed()
public String getIndexOptions()
public String getIndexPhrases()
public String getIndexPrefixes()
public String getMeta()
public String getFields()
public String getNormalizer()
public String getNorms()
public String getNullValue()
public String getPositionIncrementGap()
public String getSimilarity()
public String getSubObjects()
public String getTermVector()
public LinkedHashMap<String,Column.Property> getProperties()
public void setProperties(LinkedHashMap<String,Column.Property> properties)
public void setKeyword(String keyword)
public boolean isArray()
public Column setArray(boolean array)
public String getDateScale()
public Boolean getWithTimeZone()
public boolean isWithTimeZone()
public void setWithTimeZone(int withTimeZone)
public void setWithTimeZone(Boolean withTimeZone)
public Boolean getWithLocalTimeZone()
public boolean setWithLocalTimeZone()
public void setWithLocalTimeZone(int withLocalTimeZone)
public boolean isKey()
public void setKey(boolean key)
public String getClassName()
public String getChildTypeName()
public TypeMetadata getChildTypeMetadata()
public Column setChildTypeMetadata(TypeMetadata childTypeMetadata)
public Integer getDisplaySize()
public String getOriginType()
public void setOriginType(String originType)
public Integer getType()
public Column setType(String type)
type - 数据类型 如 int varchar(10) decimal(18, 6)public String getTypeName()
public String getJdbcType()
public Column setTypeName(String typeName, boolean parse)
typeName - 数据类型 如 int varchar(10) decimal(18, 6)public Column parseType(int lvl, DatabaseType database)
lvl - 解析阶段database - 新数据库类型public int getParseLvl()
public void setParseLvl(int parseLvl)
public String getFullType()
public String getFullType(DatabaseType database)
public String getFullType(DatabaseType database, TypeMetadata.Refer refer)
public Integer getPrecisionLength()
public Integer getLength()
public Integer getOctetLength()
public Integer getPrecision()
public Object getValue()
public Boolean getCaseSensitive()
public boolean isCaseSensitive()
public Column setCaseSensitive(int caseSensitive)
public Column caseSensitive(int caseSensitive)
public Boolean getCurrency()
public boolean isCurrency()
public Column setCurrency(int currency)
public Column currency(int currency)
public Boolean getSigned()
public boolean isSigned()
public Column setSigned(int signed)
public Column signed(int signed)
public Column.Aggregation getAggregation()
public Column setAggregation(Column.Aggregation aggregation)
public Integer getScale()
public Boolean getNullable()
public boolean isNullable()
public Column setNullable(int nullable)
public Column nullable(int nullable)
public Boolean getAutoIncrement()
public Boolean isAutoIncrement()
public Column setAutoIncrement(int autoIncrement)
public Column autoIncrement(int autoIncrement)
public Column setAutoIncrement(int seed, int step)
seed - 起始值step - 增量public Boolean getUnique()
public boolean isUnique()
public Column setUnique(int unique)
public Column unique(int unique)
public Boolean getPrimaryKey()
public boolean isPrimaryKey()
public Column setPrimary(int primary)
public Column primary(int primary)
public String getPrimaryType()
public void setPrimaryType(String primaryType)
public Boolean getGenerated()
public boolean isGenerated()
public Column setGenerated(int generated)
public Column generated(int generated)
public Object getDefaultValue()
public Column setDefaultCurrentDateTime(boolean currentDateTime)
public Column setDefaultCurrentDateTime()
public boolean isDefaultCurrentDateTime()
public String getDefaultConstraint()
public Integer getPosition()
public String getOrder()
public String getAfter()
public Integer getIncrementSeed()
public Integer getIncrementStep()
public String getOnUpdate()
public String getOriginName()
public String getBefore()
public String getCharset()
public String getLengthUnit()
public String getCollate()
public boolean equals(Column column)
public boolean equals(Column column, boolean ignoreCase)
public TypeMetadata getTypeMetadata()
public TypeMetadata.CATEGORY getTypeCategory()
public Column setTypeMetadata(TypeMetadata typeMetadata)
public Column setNewName(String newName, boolean setmap, boolean getmap)
setNewName 在类中 Metadata<Column>public JavaType getJavaType()
public Integer getSrid()
public Column getReference()
public ColumnFamily getFamily()
public Column setFamily(ColumnFamily family)
public void ignoreLength(int ignoreLength)
public void maxLength(int maxLength)
public void ignorePrecision(int ignorePrecision)
public void maxPrecision(int maxPrecision)
public void ignoreScale(int ignoreScale)
public void maxScale(int maxScale)
public int ignoreScale(DatabaseType database)
public String formula(DatabaseType database)
public int ignoreLength()
public int ignoreLength(DatabaseType database)
public int maxLength()
public int maxLength(DatabaseType database)
public int ignorePrecision()
public int ignorePrecision(DatabaseType database)
public int maxPrecision()
public int maxPrecision(DatabaseType database)
public String getFinalType()
public int ignoreScale()
public int maxScale()
public int maxScale(DatabaseType database)
Copyright © 2025. All rights reserved.