You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by pr...@apache.org on 2002/11/30 20:26:03 UTC

cvs commit: jakarta-commons-sandbox/periodicity/src/plugins-build/database/src/java/org/apache/commons/periodicity/database DatabaseMetaData.java

prickett    2002/11/30 11:26:02

  Modified:    periodicity/src/plugins-build/database/src/java/org/apache/commons/periodicity/database
                        DatabaseMetaData.java
  Log:
  Added the following methods to DatabaseMetaData
  
  getProtocol()
  getDriver()
  getDatabaseHost()
  setDatabaseHost()
  getDatabasePort()
  setDatabasePort()
  getAdminPath()
  setAdminPath()
  getDatabasePath()
  setDatabasePath()
  
  Changed getUrl to throw an Exception.
  
  Revision  Changes    Path
  1.4       +68 -4     jakarta-commons-sandbox/periodicity/src/plugins-build/database/src/java/org/apache/commons/periodicity/database/DatabaseMetaData.java
  
  Index: DatabaseMetaData.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/periodicity/src/plugins-build/database/src/java/org/apache/commons/periodicity/database/DatabaseMetaData.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DatabaseMetaData.java	29 Nov 2002 04:34:01 -0000	1.3
  +++ DatabaseMetaData.java	30 Nov 2002 19:26:02 -0000	1.4
  @@ -85,7 +85,7 @@
        * identifies where to obtain a connection to the database.
        * @return The database url as a string.
        */
  -    public String getUrl();
  +    public String getUrl() throws Exception;
   
       /**
        * The purpose of this method is to get the short description of this
  @@ -105,6 +105,70 @@
        * @return The web url of the database as a string.
        */
       public String getWebUrl(); 
  +
  +    /**
  +     * The purpose of this method is to get the driver we are using with
  +     * this database.
  +     * @return The driver that is being used by this database.
  +     */
  +    public String getDriver();
  +
  +    /**
  +     * The purpose of this method is to get the protocol we are using with 
  +     * this database.
  +     * @return The protocol that is being used by this database
  +     */
  +    public String getProtocol();
  +
  +    /**
  +     * The purpose of this method is to get the database host name or ip
  +     * address.
  +     * @return The database host name or ip address as a string.
  +     */
  +    public String getDatabaseHost();
  +
  +    /**
  +     * The purpose of this method is to set the database host name or ip
  +     * address.
  +     * @param newval The new value for the database host name or ip address.
  +     */
  +    public void setDatabaseHost(String newval);
  +
  +    /**
  +     * The purpose of this method is to return the database port number.
  +     * @return The database port number as an integer.
  +     */
  +    public int getDatabasePort();
  +
  +    /**
  +     * The purpose of this method is to set the database port number.
  +     * @param newval The database port number as an integer.
  +     */
  +    public void setDatabasePort(int newval) throws Exception;
  +
  +    /**
  +     * The purpose of this method is to get the administration path.
  +     * @return The administration path as a string.
  +     */
  +    public String getAdminPath();
  +
  +    /**
  +     * The purpose of this method is to set the administration path.
  +     * @param newval The new value for the administration path as a string. 
  +     */
  +    public void setAdminPath(String newval);
  +
  +    /**
  +     * The purpose of this method is to get the database path.
  +     * @return The database path as a string.
  +     */
  +    public String getDatabasePath();
  +
  +    /**
  +     * The purpose of this method is to set the database path.
  +     * @param newval The new value for the database path as a string.
  +     */
  +    public void setDatabasePath(String newval);
   
   }    
       
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>