Hi,

When writing a testcase, I noticed that Derby client driver's
DataSource classes do not have methods like setCreateDatabase and
setShutdownDatabase whereas embedded driver has these methods.
Embedded driver also has an additional set method
"setAttributesAsPassword" which I think is planned to be deprecated as
mentioned in DERBY-1131.

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.  Should we
add setCreateDatabase and setShutdownDatabase methods to client
driver?

If I don't hear from anyone, I'm thinking of opening a JIRA issue later today.

Thanks,
Deepa

Reply via email to