Class DerbyConnectionParameters
- java.lang.Object
-
- edu.uiuc.ncsa.security.storage.sql.SQLConnectionImpl
-
- edu.uiuc.ncsa.security.storage.sql.derby.DerbyConnectionParameters
-
- All Implemented Interfaces:
ConnectionParameters
public class DerbyConnectionParameters extends SQLConnectionImpl
NOTE that the database name is the complete file path to the directory, e.g. "~/test"Created by Jeff Gaynor
on 5/2/12 at 1:43 PM
-
-
Field Summary
Fields Modifier and Type Field Description protected String
bootPassword
protected String
storeType
-
Fields inherited from class edu.uiuc.ncsa.security.storage.sql.SQLConnectionImpl
databaseName, host, jdbcDriver, password, port, schema, username, useSSL
-
-
Constructor Summary
Constructors Constructor Description DerbyConnectionParameters(String username, String password, String rootDirectory, String databaseName, String schema, String host, int port, String jdbcDriver, boolean useSSL, String storeType, String bootPassword, String parameters)
DerbyConnectionParameters(net.sf.json.JSONObject jsonObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createJdbcUrls()
void
fromJSON(net.sf.json.JSONObject json)
Populate this from the JSON object.String
getCreateURL()
String
getDerbyConnectionString()
String
getJdbcUrl()
In general every vendor has their own format for this.Construct it as needed.String
getRootDirectory()
String
getShutdownURL()
String
getStoreType()
boolean
isCreateOne()
Create this database?void
setCreateOne(boolean createOne)
void
setCreateURL(String createURL)
void
setRootDirectory(String rootDirectory)
void
setShutdownURL(String shutdownURL)
net.sf.json.JSONObject
toJSON()
Turn this configuration into a JSON object.String
toString()
-
Methods inherited from class edu.uiuc.ncsa.security.storage.sql.SQLConnectionImpl
addParameters, equals, getDatabaseName, getParameters, getPassword, getSchema, getUsername, init
-
-
-
-
Method Detail
-
getJdbcUrl
public String getJdbcUrl()
Description copied from interface:ConnectionParameters
In general every vendor has their own format for this.Construct it as needed.- Returns:
-
createJdbcUrls
public void createJdbcUrls()
-
getDerbyConnectionString
public String getDerbyConnectionString()
-
getShutdownURL
public String getShutdownURL()
-
setShutdownURL
public void setShutdownURL(String shutdownURL)
-
setCreateOne
public void setCreateOne(boolean createOne)
-
isCreateOne
public boolean isCreateOne()
Create this database?- Returns:
-
getCreateURL
public String getCreateURL()
-
setCreateURL
public void setCreateURL(String createURL)
-
getRootDirectory
public String getRootDirectory()
-
setRootDirectory
public void setRootDirectory(String rootDirectory)
-
getStoreType
public String getStoreType()
-
toJSON
public net.sf.json.JSONObject toJSON()
Description copied from class:SQLConnectionImpl
Turn this configuration into a JSON object. This presupposed that this has been created already.- Overrides:
toJSON
in classSQLConnectionImpl
- Returns:
-
fromJSON
public void fromJSON(net.sf.json.JSONObject json)
Description copied from class:SQLConnectionImpl
Populate this from the JSON object. This will overwrite any existing values.- Overrides:
fromJSON
in classSQLConnectionImpl
-
toString
public String toString()
- Overrides:
toString
in classSQLConnectionImpl
-
-