public class Table extends Object
Constructor and Description |
---|
Table(String name,
Class<? extends Model<?>> modelClass) |
Table(String name,
String primaryKey,
Class<? extends Model<?>> modelClass) |
Modifier and Type | Method and Description |
---|---|
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.
|
public String getName()
public boolean hasColumnLabel(String columnLabel)
public String[] getPrimaryKey()
Copyright © 2018. All rights reserved.