Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • protected constructor()
    • called by RecordHandler config parser... actually initialized by setParams(params)
  • public constructor(jdbcDriverClass:String, connLine:String, username:String, password:String, tableName:String, dataFieldName:String)
    Panel connLine strings have the following format: "jdbc:%connType%://%host%:%port%/%dbName%"
    Panel

    new JDBCRecordHandler("com.mysql.jdbc.Driver", "jdbc:mysql://127.0.0.1:3306/dbName", "username", "password", "tableName", "dataFieldName");

  • public constructor(jdbcDriverClass:String, connType:String, host:String, port:String, dbName:String, username:String, password:String, tableName:String, dataFieldName:String)panel
    builds a connLine from the connType, host, port, and dbName and calls the constructor that takes a connLine
    Panel

    new JDBCRecordHandler("com.mysql.jdbc.Driver", "mysql", "127.0.0.1", "3306", "dbName", "username", "password", "tableName", "dataFieldName");

...