资讯   |   开发   |   选机中心   |   产品大全 | IBM | 惠普 | 联想 | 戴尔 | 苹果 | 神舟
更多: | 华硕 | 明基 | 方正 | 紫光 | TCL | 夏新 | 联宝 | 宏碁 | 七喜 | 长城 | 清华同方 | 海尔 | 三星 | 东芝 | 索尼 | 富士通 | LG | 技术 | ddnoon
当前位置:笔记本 > 编程开发 >
Advertisement
文章正文

A REVIEW OF SQLEXPLORER PLUG-IN _编程

类型:转载   责任编辑:asp.net   日期:2007/05/23


热门软件下载:


   
  • 一个电子商务网站的设计及开发环境配置文档  
  • 第五十三天补: JMS除错笔记  
  • Drools - 规则引擎可以用了么?  
  • WebWork基于正则表达式(regex)的输入验证  
  • 中国软件业和Linux的讨论和建议  
  • 谈谈J2SE中的序列化之当序列化遭遇继承  
  • 如何有效的保护JAVA程序  
  • struts中向FormBean提交不定数目的一组数据的方法  
  • 9.1 Eclipse的WEB环境的搭建  
  • 基于NIO实现客户端通过HTTP协议访问WEB站点  
  • 页面导航:

    正文内容:

    plug-in overview
    sqlexplorer perspective contains the following views: drivers, aliases (in a tabbed dialog to the top left), connections (by itself in the bottom left), sql results (again, by itself in the bottom middle), database structure view, connection info, and sql history (in the right-hand tabbed panel). the middle of the sqlexplorer perspective is reserved for editors. note that you enter sql statements by editing files with the .sql suffix.

    to start using sqlexplorer, you need to select your database in the drivers view. (when it is selected, it will have a red x beside it.) next, click your right mouse button and select change selected driver. the modify driver panel will pop up. next, youll need to click on the extra class path tab, click the add button, and then search and select your jdbc drivers jar file. note the jdbc driver name you already be qualified.

    to connect to your database, youll want to set up an alias that points back to your driver. select the alias tab, then click on the new create new alias icon. in the new alias dialog, key the name of your database and set the url, user name, and password.

    the aliases view displays a list of all database aliases. to connect to that database, select your alias and click the open menu option. the connection panel then prompts you to specify a user and password. (the one specified in the create new alias will be the default.) click the ok button, and you should have a connection.

    to key database commands, go to the connections view in the bottom left section. select the active connection, click the right mouse button, and select new sql editor in the pop-up menu. sqlexplorer will then open the sql editor in the middle of the perspective. the sql editor has three icons and the name of the database the sql editor is associated with. the icons are a running man, a folder, and an eraser. the running man runs the sql, the folder lets you search for an open a .sql file, and the eraser clears any sql statements that may be in the editor.

    the results of sql execution is shown in tabbed views in the sql results. for instance, if you run a select statement two times, youd have two tabs, labeled "1" and "2," in the sql results view. note that the sql result view shows the retrieved rows with the column name as buttons. a click of the button will sort the rows by that column.

    as youd expect, the contents of an sql editor can be saved. once sqlexplorer is installed, the default editor for files with the .sql suffix will be opened in the sql editor.

    the sql history view that appears in the right-hand panel (along with database structure view and connection info) can be quite handy because you can use it to re-execute a statement. to do that, select a statement in the history, click the right mouse button, and select open in editor. then click the running man icon.

    the database structure view also has a number of convenient features. besides listing all the tables in your database, you can perform the following:

    • open a table-edit gui.
    • generate an sql select statement for that table and place it in an sql editor.
    • create a table script (which didnt work on my postgresql database).

    when you select a table, the database structure view will also list the columns, indexes, primary keys, foreign keys, and row count for that table.

    the edit table menu option could be quite handy, but it was not yet implemented in the version of sqlexplorer that i have been using. but you can see how it will work by selecting a table, clicking the right mouse button, and selecting edit table data from the context menu. the editing panel will pop up with a list of a set of rows from the table. to limit the rows displayed, you can key a where clause. to modify a data element, simply click on that item. the entry will then turn into an modifiable input field. after you change the data, youll finally get the "error updating: this method is not yet implemented" message. i suppose theyre hoping that a user of sqlexplorer will take it upon himself to implement that feature.

    review
    sqlexplorer is a fork of the jfacedbc project. from what i understand, other forks have turned into commercial products, whereas sqlexplorer is lgpl. sqlexplorer works with eclipse 3.0.

    i tested sqlexplorer 2.2.2 7 on eclipse 3.0. one problem i have with sqlexplorer is that it doesnt have integrated eclipse help. a little bit of help would have gone a long way, especially since i had problems figuring out how where to key the sql statements. i kind of expected a console or something for me to use to key the statements, and i had to stumble on the use of the sql editor. but once you understand that the sql statement are keyed and executed from the sql editor -- and that the editor can be launched from an existing file (with a .sql suffix), the new sql editor context menu option in the connections view, from the sql history view, or from a context pop-up menu of a table selected in the database structure view -- youre ready to dance with your database.

    im giving sqlexplorer a rating of 8.5 (out of 10). sqlexplorer is now a standard plug-in for my eclipse workspaces. if it had eclipse help and the completed implementation of features that are already being shipped, id give sqlexplorer a 9 or better.



     

     
    热门推荐笔记本: IBM笔记本
    相关文章:
    webmaster:popbb@126.com   最佳浏览:1024X768 MSIE
    ©2007 popbb.net All Rights Reserved