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 StringbootPasswordprotected StringstoreType-
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 voidcreateJdbcUrls()voidfromJSON(net.sf.json.JSONObject json)Populate this from the JSON object.StringgetCreateURL()StringgetDerbyConnectionString()StringgetJdbcUrl()In general every vendor has their own format for this.Construct it as needed.StringgetRootDirectory()StringgetShutdownURL()StringgetStoreType()booleanisCreateOne()Create this database?voidsetCreateOne(boolean createOne)voidsetCreateURL(String createURL)voidsetRootDirectory(String rootDirectory)voidsetShutdownURL(String shutdownURL)net.sf.json.JSONObjecttoJSON()Turn this configuration into a JSON object.StringtoString()-
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:ConnectionParametersIn 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:SQLConnectionImplTurn this configuration into a JSON object. This presupposed that this has been created already.- Overrides:
toJSONin classSQLConnectionImpl- Returns:
-
fromJSON
public void fromJSON(net.sf.json.JSONObject json)
Description copied from class:SQLConnectionImplPopulate this from the JSON object. This will overwrite any existing values.- Overrides:
fromJSONin classSQLConnectionImpl
-
toString
public String toString()
- Overrides:
toStringin classSQLConnectionImpl
-
-