Java Doc for DatabaseManagerSwing.java in  » Database-DBMS » hsql » org » hsqldb » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database DBMS » hsql » org.hsqldb.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.swing.JApplet
   org.hsqldb.util.DatabaseManagerSwing

DatabaseManagerSwing
public class DatabaseManagerSwing extends JApplet implements ActionListener,WindowListener,KeyListener(Code)
Swing Tool for managing a JDBC database.

 Usage: java DatabaseManagerSwing [--options]
 where options include:
 --driver   jdbc driver class
 --url           jdbc url
 --user          username used for connection
 --password  password for this user
 --dir           default directory
 --script        reads from script file
 --urlid        get connection info from RC file
 --rcfile        use instead of default (with urlid)
 --noexit              Don't exit JVM
 
Note that the sys-table switch will not work for Oracle, because Oracle does not categorize their system tables correctly in the JDBC Metadata. New class based on Hypersonic SQL original
author:
   dmarshall@users
version:
   1.8.0
since:
   1.7.0

Inner Class :protected class StatementExecRunnable implements Runnable
Inner Class :public class DBMPrefs

Field Summary
final static  StringNL
    
final static  StringNULL_STR
    
static  StringREADY_STATUS
    
 booleanbHelp
    
static  booleanbMustExit
    
 JCheckBoxMenuItemboxAutoCommit
    
 JCheckBoxMenuItemboxAutoRefresh
    
 JCheckBoxMenuItemboxLogging
    
 JCheckBoxMenuItemboxRowCounts
    
 JCheckBoxMenuItemboxShowGrid
    
 JCheckBoxMenuItemboxShowSchemas
    
 JCheckBoxMenuItemboxShowSys
    
 JCheckBoxMenuItemboxTooltips
    
 JButtonbutExecute
    
 ConnectioncConn
    
 StringcurrentLAF
    
 DatabaseMetaDatadMeta
    
static  StringdefDirectory
    
static  StringdefDriver
    
static  StringdefPassword
    
static  StringdefScript
    
static  StringdefURL
    
static  StringdefUser
    
 booleandisplayRowCounts
    
 ThreaddummyThread
    
 JSplitPaneewSplitPane
    
 RootPaneContainerfMain
    
 CursorfMainCursor
    
 GridSwinggResult
    
 JTablegResultTable
     I think this is used to store model info whether we're using Grid output or not (this object is queried for data to display for text output mode).
 JScrollPanegScrollPane
    
static  intiMaxRecent
    
static  JButtoniReadyStatus
    
 intiRecent
    
 JLabeljStatusLine
    
 JToolBarjtoolbar
    
 longlTime
    
 ArrayListlocalActionList
    
 JMenumRecent
    
 JMenuItemmitemAbout
    
 JMenuItemmitemHelp
    
 JMenuItemmitemUpdateSchemas
    
 JSplitPanensSplitPane
    
 JPanelpResult
    
 JPanelpStatus
    
 JRadioButtonMenuItemrbAllSchemas
    
 JRadioButtonMenuItemrbJavaLF
    
 JRadioButtonMenuItemrbMotifLF
    
 JRadioButtonMenuItemrbNativeLF
    
static  DatabaseManagerSwingrefForFontDialogSwing
    
 DefaultMutableTreeNoderootNode
    
 ConnectionrowConn
    
 String[]sRecent
    
 StatementsStatement
    
 ActionListenerschemaListListener
    
 booleanshowIndexDetails
    
 booleanshowSys
    
 StringsqlScriptBuffer
     Value of this variable only retained if huge input script read in.
 JScrollPanetScrollPane
    
 JTreetTree
    
 TableModeltableModel
    
 HashMaptipMap
    
 DefaultTreeModeltreeModel
    
 JTextAreatxtCommand
    
 CursortxtCommandCursor
    
 JScrollPanetxtCommandScroll
    
 JTextAreatxtResult
    
 CursortxtResultCursor
    
 JScrollPanetxtResultScroll
    

Constructor Summary
public  DatabaseManagerSwing()
    
public  DatabaseManagerSwing(JFrame frameIn)
    

Method Summary
public  voidactionPerformed(ActionEvent ev)
    
public  voidconnect(Connection c)
     This stuff is all quick, except for the refreshTree(). This unit can be kicked off in main Gui thread.
protected  JToolBarcreateToolBar()
    
protected  voiddirectRefreshTree()
     Clear all existing nodes from the tree model and rebuild from scratch.
protected  voidexecuteCurrentSQL()
    
protected  int[]getRowCounts(Vector inTable, Vector inSchema)
    
public  voidinit()
    
public  voidkeyPressed(KeyEvent k)
    
public  voidkeyReleased(KeyEvent k)
    
public  voidkeyTyped(KeyEvent k)
    
public static  voidmain(String[] arg)
    
public  voidmain()
    
protected  voidrefreshTree()
    
 voidresetTooltips()
    
public  voidsetMustExit(boolean b)
    
 voidsetStatusLine(String busyBaseString, int rowCount)
    
public  voidsetWaiting(String description)
    
public  voidstart()
    
public  voidstop()
    
 voidupdateAutoCommitBox()
    
public  voidwindowActivated(WindowEvent e)
    
public  voidwindowClosed(WindowEvent e)
    
public  voidwindowClosing(WindowEvent ev)
    
public  voidwindowDeactivated(WindowEvent e)
    
public  voidwindowDeiconified(WindowEvent e)
    
public  voidwindowIconified(WindowEvent e)
    
public  voidwindowOpened(WindowEvent e)
    

Field Detail
NL
final static String NL(Code)



NULL_STR
final static String NULL_STR(Code)



READY_STATUS
static String READY_STATUS(Code)



bHelp
boolean bHelp(Code)



bMustExit
static boolean bMustExit(Code)



boxAutoCommit
JCheckBoxMenuItem boxAutoCommit(Code)



boxAutoRefresh
JCheckBoxMenuItem boxAutoRefresh(Code)



boxLogging
JCheckBoxMenuItem boxLogging(Code)



boxRowCounts
JCheckBoxMenuItem boxRowCounts(Code)



boxShowGrid
JCheckBoxMenuItem boxShowGrid(Code)



boxShowSchemas
JCheckBoxMenuItem boxShowSchemas(Code)



boxShowSys
JCheckBoxMenuItem boxShowSys(Code)



boxTooltips
JCheckBoxMenuItem boxTooltips(Code)



butExecute
JButton butExecute(Code)



cConn
Connection cConn(Code)



currentLAF
String currentLAF(Code)



dMeta
DatabaseMetaData dMeta(Code)



defDirectory
static String defDirectory(Code)



defDriver
static String defDriver(Code)



defPassword
static String defPassword(Code)



defScript
static String defScript(Code)



defURL
static String defURL(Code)



defUser
static String defUser(Code)



displayRowCounts
boolean displayRowCounts(Code)



dummyThread
Thread dummyThread(Code)



ewSplitPane
JSplitPane ewSplitPane(Code)



fMain
RootPaneContainer fMain(Code)



fMainCursor
Cursor fMainCursor(Code)



gResult
GridSwing gResult(Code)



gResultTable
JTable gResultTable(Code)
I think this is used to store model info whether we're using Grid output or not (this object is queried for data to display for text output mode). If so, the presentation-independent model part should be moved to an appropriately-named class instead of storing pure data in a Swing-specific class.



gScrollPane
JScrollPane gScrollPane(Code)



iMaxRecent
static int iMaxRecent(Code)



iReadyStatus
static JButton iReadyStatus(Code)



iRecent
int iRecent(Code)



jStatusLine
JLabel jStatusLine(Code)



jtoolbar
JToolBar jtoolbar(Code)



lTime
long lTime(Code)



localActionList
ArrayList localActionList(Code)



mRecent
JMenu mRecent(Code)



mitemAbout
JMenuItem mitemAbout(Code)



mitemHelp
JMenuItem mitemHelp(Code)



mitemUpdateSchemas
JMenuItem mitemUpdateSchemas(Code)



nsSplitPane
JSplitPane nsSplitPane(Code)



pResult
JPanel pResult(Code)



pStatus
JPanel pStatus(Code)



rbAllSchemas
JRadioButtonMenuItem rbAllSchemas(Code)



rbJavaLF
JRadioButtonMenuItem rbJavaLF(Code)



rbMotifLF
JRadioButtonMenuItem rbMotifLF(Code)



rbNativeLF
JRadioButtonMenuItem rbNativeLF(Code)



refForFontDialogSwing
static DatabaseManagerSwing refForFontDialogSwing(Code)



rootNode
DefaultMutableTreeNode rootNode(Code)



rowConn
Connection rowConn(Code)



sRecent
String[] sRecent(Code)



sStatement
Statement sStatement(Code)



schemaListListener
ActionListener schemaListListener(Code)



showIndexDetails
boolean showIndexDetails(Code)



showSys
boolean showSys(Code)



sqlScriptBuffer
String sqlScriptBuffer(Code)
Value of this variable only retained if huge input script read in.



tScrollPane
JScrollPane tScrollPane(Code)



tTree
JTree tTree(Code)



tableModel
TableModel tableModel(Code)



tipMap
HashMap tipMap(Code)



treeModel
DefaultTreeModel treeModel(Code)



txtCommand
JTextArea txtCommand(Code)



txtCommandCursor
Cursor txtCommandCursor(Code)



txtCommandScroll
JScrollPane txtCommandScroll(Code)



txtResult
JTextArea txtResult(Code)



txtResultCursor
Cursor txtResultCursor(Code)



txtResultScroll
JScrollPane txtResultScroll(Code)




Constructor Detail
DatabaseManagerSwing
public DatabaseManagerSwing()(Code)



DatabaseManagerSwing
public DatabaseManagerSwing(JFrame frameIn)(Code)




Method Detail
actionPerformed
public void actionPerformed(ActionEvent ev)(Code)



connect
public void connect(Connection c)(Code)
This stuff is all quick, except for the refreshTree(). This unit can be kicked off in main Gui thread. The refreshTree will be backgrounded and this method will return.



createToolBar
protected JToolBar createToolBar()(Code)



directRefreshTree
protected void directRefreshTree()(Code)
Clear all existing nodes from the tree model and rebuild from scratch. This method executes in current thread



executeCurrentSQL
protected void executeCurrentSQL()(Code)
Schedules to run in a Gui-safe thread



getRowCounts
protected int[] getRowCounts(Vector inTable, Vector inSchema) throws Exception(Code)



init
public void init()(Code)



keyPressed
public void keyPressed(KeyEvent k)(Code)



keyReleased
public void keyReleased(KeyEvent k)(Code)



keyTyped
public void keyTyped(KeyEvent k)(Code)



main
public static void main(String[] arg)(Code)



main
public void main()(Code)



refreshTree
protected void refreshTree()(Code)
Schedules to run in a Gui-safe thread



resetTooltips
void resetTooltips()(Code)



setMustExit
public void setMustExit(boolean b)(Code)



setStatusLine
void setStatusLine(String busyBaseString, int rowCount)(Code)



setWaiting
public void setWaiting(String description)(Code)



start
public void start()(Code)



stop
public void stop()(Code)



updateAutoCommitBox
void updateAutoCommitBox()(Code)



windowActivated
public void windowActivated(WindowEvent e)(Code)



windowClosed
public void windowClosed(WindowEvent e)(Code)



windowClosing
public void windowClosing(WindowEvent ev)(Code)



windowDeactivated
public void windowDeactivated(WindowEvent e)(Code)



windowDeiconified
public void windowDeiconified(WindowEvent e)(Code)



windowIconified
public void windowIconified(WindowEvent e)(Code)



windowOpened
public void windowOpened(WindowEvent e)(Code)



Fields inherited from javax.swing.JApplet
protected AccessibleContext accessibleContext(Code)(Java Doc)
protected JRootPane rootPane(Code)(Java Doc)
protected boolean rootPaneCheckingEnabled(Code)(Java Doc)

Methods inherited from javax.swing.JApplet
protected void addImpl(Component comp, Object constraints, int index)(Code)(Java Doc)
protected JRootPane createRootPane()(Code)(Java Doc)
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public Container getContentPane()(Code)(Java Doc)
public Component getGlassPane()(Code)(Java Doc)
public Graphics getGraphics()(Code)(Java Doc)
public JMenuBar getJMenuBar()(Code)(Java Doc)
public JLayeredPane getLayeredPane()(Code)(Java Doc)
public JRootPane getRootPane()(Code)(Java Doc)
public TransferHandler getTransferHandler()(Code)(Java Doc)
protected boolean isRootPaneCheckingEnabled()(Code)(Java Doc)
protected String paramString()(Code)(Java Doc)
public void remove(Component comp)(Code)(Java Doc)
public void repaint(long time, int x, int y, int width, int height)(Code)(Java Doc)
public void setContentPane(Container contentPane)(Code)(Java Doc)
public void setGlassPane(Component glassPane)(Code)(Java Doc)
public void setJMenuBar(JMenuBar menuBar)(Code)(Java Doc)
public void setLayeredPane(JLayeredPane layeredPane)(Code)(Java Doc)
public void setLayout(LayoutManager manager)(Code)(Java Doc)
protected void setRootPane(JRootPane root)(Code)(Java Doc)
protected void setRootPaneCheckingEnabled(boolean enabled)(Code)(Java Doc)
public void setTransferHandler(TransferHandler newHandler)(Code)(Java Doc)
public void update(Graphics g)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.