Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-1267

Add setCreateDatabase and setShutdownDatabase methods to datasource classes in client

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 10.2.1.6
    • None
    • Network Client
    • None

    Description

      Derby client driver's DataSource classes do not have methods like setCreateDatabase and setShutdownDatabase whereas embedded driver has these methods.

      Derby reference manual, section titled "javax.sql: JDBC Extensions' mentions this:

      "
      In addition, Derby provides three methods for XADataSource, DataSource, and ConnectionPoolDataSource. Derby supports a number of additional data source properties:
      ? setCreateDatabase(String create)
      Sets a property to create a database at the next connection. The string argument must be "create".
      ? setShutdownDatabase(String shutdown)
      Sets a property to shut down a database. Shuts down the database at the next connection. The string argument must be "shutdown".
      Note: Set these properties before getting the connection.
      "

      Currently, the above text applies only to embedded driver. These methods have to be added to client's datasource classes also.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              deepa Deepa
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: