public class TableModel
extends java.lang.Object
| 构造器和说明 |
|---|
TableModel() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addColumnModel(ColumnModel columnModel)
Add a column model into the table model.
|
boolean |
containsColumn(java.lang.String columnName)
Judge the table model has such a column or not.
|
java.lang.String |
getClassName()
Get class name.
|
ColumnModel |
getColumnModelByName(java.lang.String columnName)
Find the ColumnModel which can map the column name passed in.
|
java.util.List<ColumnModel> |
getColumnModels()
Find all the column models of the current table model.
|
java.lang.String |
getTableName()
Get table name.
|
void |
removeColumnModelByName(java.lang.String columnName)
Remove a column model by the specified column name.
|
void |
setClassName(java.lang.String className)
Set class name.
|
void |
setTableName(java.lang.String tableName)
Set table name.
|
public java.lang.String getTableName()
public void setTableName(java.lang.String tableName)
tableName - Name of table.public java.lang.String getClassName()
public void setClassName(java.lang.String className)
className - The class name.public void addColumnModel(ColumnModel columnModel)
columnModel - A column model contains name, type and constraints.public java.util.List<ColumnModel> getColumnModels()
public ColumnModel getColumnModelByName(java.lang.String columnName)
columnName - Name of column.public void removeColumnModelByName(java.lang.String columnName)
columnName - Name of the column to remove.public boolean containsColumn(java.lang.String columnName)
columnName - The name of column to check.