You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2004/12/24 04:34:01 UTC

cvs commit: jakarta-jetspeed-2/applications/demo/src/java/org/apache/portals/applications/database DatabaseBrowserPortlet.java

taylor      2004/12/23 19:34:01

  Modified:    applications/demo/src/java/org/apache/portals/applications/database/resources
                        DatabaseBrowser.properties
                        DatabaseBrowser_en.properties
                        DatabaseBrowser_de.properties
               applications/demo/src/java/org/apache/portals/applications/database
                        DatabaseBrowserPortlet.java
  Log:
  continued work on DatabaseBrowserPortlet
  CVS: ----------------------------------------------------------------------
  CVS: PR:
  CVS:   If this change addresses a PR in the problem report tracking
  CVS:   database, then enter the PR number(s) here.
  CVS: Obtained from:
  CVS:   If this change has been taken from another system, such as NCSA,
  CVS:   then name the system in this line, otherwise delete it.
  CVS: Submitted by:
  CVS:   If this code has been contributed to Apache by someone else; i.e.,
  CVS:   they sent us a patch or a new module, then include their name/email
  CVS:   address here. If this is your work then delete this line.
  CVS: Reviewed by:
  CVS:   If we are doing pre-commit code reviews and someone else has
  CVS:   reviewed your changes, include their name(s) here.
  CVS:   If you have not had it reviewed then delete this line.
  
  Revision  Changes    Path
  1.2       +4 -1      jakarta-jetspeed-2/applications/demo/src/java/org/apache/portals/applications/database/resources/DatabaseBrowser.properties
  
  Index: DatabaseBrowser.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/applications/demo/src/java/org/apache/portals/applications/database/resources/DatabaseBrowser.properties,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DatabaseBrowser.properties	23 Dec 2004 06:27:24 -0000	1.1
  +++ DatabaseBrowser.properties	24 Dec 2004 03:34:00 -0000	1.2
  @@ -7,4 +7,7 @@
   delete = Delete
   cancel = Cancel
   help.title = Help Mode
  -help.text = The Database Browser portlet provides a browser of SQL databases.
  \ No newline at end of file
  +help.text = The Database Browser portlet provides a browser of SQL databases.
  +dbnext = Next
  +dbprev = Previous
  +dbrefresh = Refresh
  
  
  
  1.2       +5 -1      jakarta-jetspeed-2/applications/demo/src/java/org/apache/portals/applications/database/resources/DatabaseBrowser_en.properties
  
  Index: DatabaseBrowser_en.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/applications/demo/src/java/org/apache/portals/applications/database/resources/DatabaseBrowser_en.properties,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DatabaseBrowser_en.properties	23 Dec 2004 06:27:24 -0000	1.1
  +++ DatabaseBrowser_en.properties	24 Dec 2004 03:34:00 -0000	1.2
  @@ -7,4 +7,8 @@
   delete = Delete
   cancel = Cancel
   help.title = Help Mode
  -help.text = The Database Browser portlet provides a browser of SQL databases.
  \ No newline at end of file
  +help.text = The Database Browser portlet provides a browser of SQL databases.
  +dbnext = Next
  +dbprev = Previous
  +dbrefresh = Refresh
  +
  
  
  
  1.2       +3 -0      jakarta-jetspeed-2/applications/demo/src/java/org/apache/portals/applications/database/resources/DatabaseBrowser_de.properties
  
  Index: DatabaseBrowser_de.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/applications/demo/src/java/org/apache/portals/applications/database/resources/DatabaseBrowser_de.properties,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DatabaseBrowser_de.properties	23 Dec 2004 06:27:24 -0000	1.1
  +++ DatabaseBrowser_de.properties	24 Dec 2004 03:34:00 -0000	1.2
  @@ -8,5 +8,8 @@
   cancel = Abbrechen
   help.title = Help Mode
   help.text = The Database Browser portlet provides a browser of SQL databases.
  +dbnext = Weiter
  +dbprev = Zuruck
  +dbrefresh = Erneuern
     
     
  
  
  
  1.2       +5 -3      jakarta-jetspeed-2/applications/demo/src/java/org/apache/portals/applications/database/DatabaseBrowserPortlet.java
  
  Index: DatabaseBrowserPortlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/applications/demo/src/java/org/apache/portals/applications/database/DatabaseBrowserPortlet.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DatabaseBrowserPortlet.java	23 Dec 2004 06:27:24 -0000	1.1
  +++ DatabaseBrowserPortlet.java	24 Dec 2004 03:34:01 -0000	1.2
  @@ -614,12 +614,14 @@
           {
               if (driverRegistered == false)
               {
  -                Class driverClass = Class.forName("com.mysql.jdbc.Driver");
  +                // Class driverClass = Class.forName("com.mysql.jdbc.Driver");
  +                Class driverClass = Class.forName("org.hsqldb.jdbcDriver");
                   Driver driver = (Driver)driverClass.newInstance();
                   DriverManager.registerDriver(driver);
                   driverRegistered = true;
               }
  -            con = DriverManager.getConnection("jdbc:mysql://j2-server/j2", "j2", "digital");
  +            //con = DriverManager.getConnection("jdbc:mysql://192.168.2.55/GWLogDB", "david", "david");
  +            con = DriverManager.getConnection("jdbc:hsqldb:hsql://127.0.0.1:9001", "sa", "");
           }
           catch (ClassNotFoundException cnfe) 
           {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org