|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.drinkjava2.jdialects.TableModelUtilsOfJavaSrc
public abstract class TableModelUtilsOfJavaSrc
The tool to convert TableModel to Java source code
| Constructor Summary | |
|---|---|
TableModelUtilsOfJavaSrc()
|
|
| Method Summary | |
|---|---|
static String |
getClassNameFromTableModel(TableModel model)
Map database table name to entity class name, example: user_name -> UserName USER_NAME -> UserName User_naMe -> UserName UserName -> UserName USERNAME -> USERNAME userName -> UserName username -> Username |
static String |
modelToJavaSourceCode(TableModel model,
boolean linkStyle,
boolean activeRecord,
String packageName)
Convert a TablemModel instance to Java entity class source code |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableModelUtilsOfJavaSrc()
| Method Detail |
|---|
public static String getClassNameFromTableModel(TableModel model)
public static String modelToJavaSourceCode(TableModel model,
boolean linkStyle,
boolean activeRecord,
String packageName)
model - The TableModel instancelinkStyle - if true, create linked style setter, otherwise create normal
setteractiveRecord - if true, build a jSqlBox ActiveRecord Entity class, otherwise
build a POJO classpackageName - Optional, the package name of this entity class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||