public class FieldMeta extends Object implements Serializable
| 构造器和说明 |
|---|
FieldMeta() |
FieldMeta(String filedName,
String columnName,
String defaultValue,
String nativeType,
int type,
boolean nullable,
boolean keyword,
int length,
int precision,
int scale) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getColumnName() |
String |
getColumnOptName() |
String |
getDefaultValue() |
String |
getFieldName() |
String |
getFieldType() |
int |
getLength() |
String |
getNativeType() |
int |
getPrecision() |
int |
getScale() |
int |
getType() |
boolean |
isAutoIncrement() |
boolean |
isKeyword() |
boolean |
isNullable() |
boolean |
isPartitionKey() |
boolean |
isPK() |
void |
setAutoIncrement(boolean autoIncrement) |
void |
setColumnName(String columnName) |
void |
setDefaultValue(String defaultValue) |
void |
setFieldName(String fieldName) |
void |
setFieldType(String fieldType) |
void |
setKeyword(boolean keyword) |
void |
setLength(int length) |
void |
setNativeType(String nativeType) |
void |
setNullable(boolean nullable) |
void |
setPartitionKey(boolean partitionKey) |
void |
setPK(boolean isPK) |
void |
setPrecision(int precision) |
void |
setScale(int scale) |
void |
setType(int type) |
public boolean isAutoIncrement()
public void setAutoIncrement(boolean autoIncrement)
autoIncrement - the autoIncrement to setpublic int getType()
public void setType(int type)
type - the type to setpublic String getFieldName()
public void setFieldName(String fieldName)
fieldName - the fieldName to setpublic String getColumnName()
public void setColumnName(String columnName)
columnName - the columnName to setpublic String getColumnOptName()
public boolean isNullable()
public void setNullable(boolean nullable)
nullable - the nullable to setpublic int getLength()
public void setLength(int length)
length - the length to setpublic int getPrecision()
public void setPrecision(int precision)
precision - the precision to setpublic int getScale()
public void setScale(int scale)
scale - the scale to setpublic boolean isPK()
public void setPK(boolean isPK)
public String getDefaultValue()
public void setDefaultValue(String defaultValue)
defaultValue - the defaultValue to setpublic boolean isKeyword()
public void setKeyword(boolean keyword)
keyword - the keyword to setpublic String getFieldType()
public void setFieldType(String fieldType)
public boolean isPartitionKey()
public void setPartitionKey(boolean partitionKey)
partitionKey - the partitionKey to setpublic String getNativeType()
public void setNativeType(String nativeType)
Copyright © 2023. All rights reserved.