public final class EntityGeneratorModel
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
EntityGeneratorModel.Table
Represents a database table
|
Constructor and Description |
---|
EntityGeneratorModel(Database database,
User user,
java.lang.String schema)
Instantiates a new EntityGeneratorModel.
|
EntityGeneratorModel(User user,
java.lang.String schema)
Instantiates a new EntityGeneratorModel.
|
Modifier and Type | Method and Description |
---|---|
void |
addRefreshDoneListener(EventListener listener) |
void |
addRefreshStartedListener(EventListener listener) |
void |
exit()
Closes the connection to the database
|
Value<java.lang.String> |
getDefinitionTextValue() |
AbstractFilteredTableModel<EntityGeneratorModel.Table,java.lang.Integer> |
getTableModel() |
void |
removeRefreshDoneListener(EventListener listener) |
void |
removeRefreshStartedListener(EventListener listener) |
public EntityGeneratorModel(User user, java.lang.String schema) throws DatabaseException
user
- the userschema
- the schema nameDatabaseException
- in case of an exception while connecting to the databasepublic EntityGeneratorModel(Database database, User user, java.lang.String schema) throws DatabaseException
database
- the databaseuser
- the userschema
- the schema nameDatabaseException
- in case of an exception while connecting to the databasepublic AbstractFilteredTableModel<EntityGeneratorModel.Table,java.lang.Integer> getTableModel()
public Value<java.lang.String> getDefinitionTextValue()
public void addRefreshStartedListener(EventListener listener)
listener
- a listener notified each time a refresh has startedpublic void removeRefreshStartedListener(EventListener listener)
listener
- the listener to removepublic void addRefreshDoneListener(EventListener listener)
listener
- a listener notified each time a refresh has endedpublic void removeRefreshDoneListener(EventListener listener)
listener
- the listener to removepublic void exit()