public class DBGeneratorOptions extends CayenneController
| Modifier and Type | Field and Description |
|---|---|
protected ObjectBinding |
adapterBinding |
protected DBConnectionInfo |
connectionInfo |
protected Collection<DataMap> |
dataMaps |
protected DBGeneratorDefaults |
generatorDefaults |
protected Collection<DbGenerator> |
generators |
protected ObjectBinding[] |
optionBindings |
protected ObjectBinding |
sqlBinding |
protected TableSelectorController |
tables |
protected String |
textForSQL |
protected DBGeneratorOptionsView |
view |
application, parent, propertyChangeSupport| Constructor and Description |
|---|
DBGeneratorOptions(ProjectController parent,
String title,
Collection<DataMap> dataMaps) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeAction() |
protected void |
createSQL()
Returns SQL statements generated for selected schema generation options.
|
void |
generateSchemaAction()
Performs configured schema operations via DbGenerator.
|
DBConnectionInfo |
getConnectionInfo() |
DBGeneratorDefaults |
getGeneratorDefaults() |
String |
getTextForSQL() |
Component |
getView()
Returns the vie wassociated with this Controller.
|
protected void |
initController() |
protected void |
prepareGenerator()
Creates new internal DbGenerator instance.
|
void |
refreshGeneratorAction() |
void |
refreshSQLAction()
Updates a text area showing generated SQL.
|
protected void |
refreshView() |
void |
setConnectionInfo(DBConnectionInfo connectionInfo) |
void |
startupAction()
Starts options dialog.
|
void |
storeSQLAction()
Allows user to save generated SQL in a file.
|
addPropertyChangeListener, bindingUpdated, centerView, firePropertyChange, getApplication, getFrame, getLastDirectory, getParent, getViewPreferences, getWindow, makeCloseableOnEscape, reportErrorprotected DBGeneratorOptionsView view
protected ObjectBinding[] optionBindings
protected ObjectBinding sqlBinding
protected ObjectBinding adapterBinding
protected DBConnectionInfo connectionInfo
protected Collection<DataMap> dataMaps
protected DBGeneratorDefaults generatorDefaults
protected Collection<DbGenerator> generators
protected String textForSQL
protected TableSelectorController tables
public DBGeneratorOptions(ProjectController parent, String title, Collection<DataMap> dataMaps)
public Component getView()
CayenneControllergetView in interface BoundComponentgetView in class CayenneControllerpublic DBGeneratorDefaults getGeneratorDefaults()
public String getTextForSQL()
protected void initController()
protected void prepareGenerator()
protected void createSQL()
protected void refreshView()
public void startupAction()
public void refreshGeneratorAction()
public void refreshSQLAction()
public void generateSchemaAction()
public void storeSQLAction()
public void closeAction()
public DBConnectionInfo getConnectionInfo()
public void setConnectionInfo(DBConnectionInfo connectionInfo)
Copyright © 2001–2015 Apache Cayenne. All rights reserved.