public final class ColumnMetadata extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private boolean |
autoIncrement |
private String |
comments |
private int |
dataType
java.sql.Types 的 SQL 类型
|
private String |
name |
private boolean |
primaryKey |
private int |
size |
private String |
typeName
数据库类型名称,例如:VARCHAR
|
| 构造器和说明 |
|---|
ColumnMetadata() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getComments() |
int |
getDataType() |
String |
getName() |
int |
getSize() |
String |
getTypeName() |
boolean |
isAutoIncrement() |
boolean |
isPrimaryKey() |
void |
setAutoIncrement(boolean autoIncrement) |
void |
setComments(String comments) |
void |
setDataType(int dataType) |
void |
setName(String name) |
void |
setPrimaryKey(boolean primaryKey) |
void |
setSize(int size) |
void |
setTypeName(String typeName) |
String |
toString() |
private String name
private int dataType
private String typeName
private String comments
private int size
private boolean primaryKey
private boolean autoIncrement
public String getName()
public void setName(String name)
public int getDataType()
public void setDataType(int dataType)
public String getTypeName()
public void setTypeName(String typeName)
public String getComments()
public void setComments(String comments)
public boolean isPrimaryKey()
public void setPrimaryKey(boolean primaryKey)
public boolean isAutoIncrement()
public void setAutoIncrement(boolean autoIncrement)
public int getSize()
public void setSize(int size)
Copyright © 2022. All rights reserved.