Package de.julianweinelt.datacat.api
Class DConnection
java.lang.Object
de.julianweinelt.datacat.api.DConnection
- All Implemented Interfaces:
IFileWatcherListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionDConnection(Project project, BenchUI benchUI) DConnection(Project project, BenchUI benchUI, boolean lightEdit) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCreateTableTab(String dbContext) voidaddCreateTableTab(String db, String table) voidvoidaddEditorTab(String content) voidaddTab(IEditorTab tab) booleanconnect()createContextMenu(DefaultMutableTreeNode node, BenchUI ui) voidvoidObject[][]executeQuery(String sql) executeSQL(String sql) voidfileTreeUpdate(FileTree tree) getClassURL(String file) String[]getColumnNames(String sql) voidgetTableDefinition(String database, String table) voidhandleFileEvent(File file) voidhandleWindowClosing(JFrame frame) booleanbooleanvoidvoidremoveTab(IEditorTab tab) booleanvoidupdateTitle(IEditorTab tab)
-
Constructor Details
-
DConnection
-
DConnection
-
-
Method Details
-
createNewConnectionTab
public void createNewConnectionTab() -
handleFileEvent
-
addCreateTableTab
-
addCreateViewTab
public void addCreateViewTab() -
addCreateTableTab
-
addEditorTab
public void addEditorTab() -
addEditorTab
-
disconnect
public void disconnect() -
removeTab
-
addTab
-
updateTitle
-
handleWindowClosing
-
hasUnsavedChanges
public boolean hasUnsavedChanges() -
connect
-
testConnection
public boolean testConnection() -
checkConnection
public boolean checkConnection() -
getDatabases
-
getTables
-
executeSQL
-
getViews
-
getProjectTree
public void getProjectTree() -
getClassURL
-
createContextMenu
-
getTableDefinition
-
executeQuery
- Throws:
SQLException
-
isQuery
-
getColumnNames
- Throws:
SQLException
-
fileTreeUpdate
- Specified by:
fileTreeUpdatein interfaceIFileWatcherListener
-
openFileFromFileSystem
-