Class SQLConnectionImpl

    • Field Detail

      • useSSL

        protected boolean useSSL
      • username

        protected String username
      • password

        protected String password
      • port

        protected int port
      • jdbcDriver

        protected String jdbcDriver
      • databaseName

        protected String databaseName
      • schema

        protected String schema
    • Constructor Detail

      • SQLConnectionImpl

        public SQLConnectionImpl​(net.sf.json.JSONObject jsonObject)
    • Method Detail

      • addParameters

        protected String addParameters​(String jdbcURL)
        Add parameters from the configuration file if they exist. The parameter string is of the form
             key0=value0&apm;key1=value1&apm;key2=value2...
         
        NOTE: this method does not set the ssl connection parameter -- tjhat should be done before invoking this method because that is very vendor specific. This method passes along whatever parameters to the driver the user needs or skips them if there are none.
        Parameters:
        jdbcURL -
        Returns:
      • getParameters

        public String getParameters()
      • init

        protected void init()
      • getPassword

        public String getPassword()
      • getDatabaseName

        public String getDatabaseName()
      • getSchema

        public String getSchema()
      • toJSON

        public net.sf.json.JSONObject toJSON()
        Turn this configuration into a JSON object. This presupposed that this has been created already.
        Returns:
      • fromJSON

        public void fromJSON​(net.sf.json.JSONObject json)
        Populate this from the JSON object. This will overwrite any existing values.
        Parameters:
        json -