|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
tudresden.ocl.sql.OCL2SQL
OCL2SQL is the main class of the OCL2SQL tool. It manages all the different components and the flow of information between them which generate some kind of SQL code. These components are:
Nested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Fields inherited from class javax.swing.JPanel |
|
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
OCL2SQL(JFrame theMainFrame)
The constructor. |
Method Summary | |
void |
actionPerformed(ActionEvent event)
Manages the user input from the gui. |
protected void |
buildGUI()
Builds the gui. |
private void |
closeProgressWindows()
Helper methode. |
void |
executeProject()
Executes the project with the specified parameters. |
protected JPanel |
getAboutPane()
|
protected Icon |
getImage(String name)
Code originally from ConstraintEvaluation. |
protected JPanel |
getInputPane()
|
protected JPanel |
getOutputPane()
|
protected JPanel |
getProjectPane()
|
private void |
increaseProgressInfo(String msg)
Helper methode. |
private void |
loadConstraints()
Loads some OCL constraints from a source file. |
private void |
loadProjectPath()
Offers a dialog box to specify the project path. |
private void |
loadXmiSource()
Loads the class model from the specified XMI file. |
private void |
loadXmiSourceURL()
Offers a dialog box to specify the location of a XMI file. |
static void |
main(String[] args)
Main methode to start the gui of the OCL2SQL tool. |
private void |
prepareProgressInfo()
Helper methode. |
boolean |
prepareProjectExecution()
Prepares the project execution. |
private void |
saveConstraints()
Saves the specified OCL constraints to a file. |
private void |
saveResults()
Stores the resulting DDL scripts from project execution to according files. |
private void |
showMessage(String title,
String message,
int type)
Helper methode. |
private boolean |
synchronizeObjectState()
Reads the input data from the gui and updates the class parameters accordingly. |
private void |
updateOutputPane()
Updates the output pane after project execution. |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private String xmiFileLocation
private String rulesFileLocation
private String theProjectDirectory
private ModelFacade theModelFacade
private Model theRoughModel
private SimpleOCLEditorModel theOCLEditorModel
private OCLEditor theOCLEditor
private ORMapping theORMapping
private ObjectViewSchema theObjectViewSchema
private SQLBuilder theSQLBuilder
private ILSQLCodeGenerator theSQLCodeGenerator
private int ormClassToTableMode
private int ormNumOfPKColumns
private String ormPKColType
private boolean ormOneTablePerAss
private List lIntegrityViews
private String resultTableSchema
private String resultObjectViews
private String resultIntegrityViews
private String resultTrigger
private String fileNameTableSchema
private String fileNameObjectViews
private String fileNameIntegrityViews
private String fileNameTrigger
private String sqlCodeGenPatternCatalogue
protected JTabbedPane tabs
protected JButton bLoadConstraints
protected JButton bSaveConstraints
protected JButton bXmiSource
protected JButton bLoadXmi
protected JButton bProjectDirectory
protected JButton bExecute
protected JTextField tfXmiSource
protected JTextField tfProjectDirectory
protected JTextField tfPKNoCol
protected JRadioButton rbInheritance0
protected JRadioButton rbInheritance1
protected JRadioButton rbInheritance2
protected JRadioButton rbAssociations0
protected JRadioButton rbAssociations1
protected JRadioButton rbTriggerAssertion
protected JRadioButton rbTriggerECA
protected JRadioButton rbTriggerNone
protected JComboBox cbPKType
protected JTextArea taResultTables
protected JTextArea taResultObjectViews
protected JTextArea taResultIntegrityViews
protected JTextArea taResultTrigger
protected JTextArea taProgress
protected JDialog dlgProgress
protected JFrame theMainFrame
protected JLabel progressLabel
public static String TRIGGER
public static String INTERR
Constructor Detail |
public OCL2SQL(JFrame theMainFrame)
theMainFrame
- a main frame for the guiMethod Detail |
public static void main(String[] args)
protected void buildGUI()
protected JPanel getInputPane()
protected JPanel getProjectPane()
protected JPanel getOutputPane()
protected JPanel getAboutPane()
private boolean synchronizeObjectState()
private void updateOutputPane()
public void actionPerformed(ActionEvent event)
actionPerformed
in interface ActionListener
private void loadConstraints()
private void saveConstraints()
private void loadXmiSourceURL()
private void loadXmiSource()
private void loadProjectPath()
protected Icon getImage(String name)
private void showMessage(String title, String message, int type)
private void prepareProgressInfo()
private void increaseProgressInfo(String msg)
private void closeProgressWindows()
public boolean prepareProjectExecution()
public void executeProject()
private void saveResults()
|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |