public class Table extends Object
| 构造器和说明 |
|---|
Table(String name,
Class<? extends Model<?>> modelClass) |
Table(String name,
String primaryKey) |
Table(String name,
String primaryKey,
Class<? extends Model<?>> modelClass) |
| 限定符和类型 | 方法和说明 |
|---|---|
Set<String> |
getColumnNameSet() |
Class<?> |
getColumnType(String columnLabel) |
Map<String,Class<?>> |
getColumnTypeMap() |
Set<Map.Entry<String,Class<?>>> |
getColumnTypeMapEntrySet() |
Class<? extends Model<?>> |
getModelClass() |
String |
getName() |
String[] |
getPrimaryKey()
update() and delete() need this method.
|
boolean |
hasColumnLabel(String columnLabel)
Model.save() need know what columns belongs to himself that he can saving to db.
|
void |
setColumnType(String columnLabel,
Class<?> columnType) |
void |
setColumnTypeMap(Map<String,Class<?>> columnTypeMap) |
public String getName()
public boolean hasColumnLabel(String columnLabel)
public String[] getPrimaryKey()
Copyright © 2024. All rights reserved.