|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.drinkjava2.jdialects.TableModelUtils
public abstract class TableModelUtils
This utility tool to translate Entity class / Database metaData / Excel(will add in future) file to TableModel
| Constructor Summary | |
|---|---|
TableModelUtils()
|
|
| Method Summary | |
|---|---|
static TableModel[] |
db2Models(Connection con,
Dialect dialect)
Convert database metaData to TableModels, note: 1)This method does not close connection, do not forgot close it later 2)This method does not support sequence, foreign keys, primary keys..., only read the basic database columns structure, but in future version may support |
static TableModel |
entity2Model(Class<?> entityClass)
Convert entity class to a editable TableModel instance |
static TableModel[] |
entity2Models(Class<?>... entityClasses)
Convert entity classes to editable TableModel instances |
static TableModel |
entity2ReadOnlyModel(Class<?> entityClass)
Convert entity class to a read-only TableModel instance |
static TableModel[] |
entity2ReadOnlyModels(Class<?>... entityClasses)
Convert entity classes to read-only TableModel instances |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableModelUtils()
| Method Detail |
|---|
public static TableModel entity2Model(Class<?> entityClass)
public static TableModel[] entity2Models(Class<?>... entityClasses)
public static TableModel entity2ReadOnlyModel(Class<?> entityClass)
public static TableModel[] entity2ReadOnlyModels(Class<?>... entityClasses)
public static TableModel[] db2Models(Connection con,
Dialect dialect)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||