Class 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 Detail

      • bootPassword

        protected String bootPassword
      • storeType

        protected String storeType
    • Constructor Detail

      • DerbyConnectionParameters

        public DerbyConnectionParameters​(net.sf.json.JSONObject jsonObject)
    • 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 class SQLConnectionImpl
        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 class SQLConnectionImpl