public MySQLAuthenticationProviderModule(MySQLEnvironment environment) throws GuacamoleException {
  myBatisProperties.setProperty("mybatis.environment.id","guacamole");
  myBatisProperties.setProperty("JDBC.host",environment.getMySQLHostname());
  myBatisProperties.setProperty("JDBC.port",String.valueOf(environment.getMySQLPort()));
  myBatisProperties.setProperty("JDBC.schema",environment.getMySQLDatabase());
  myBatisProperties.setProperty("JDBC.username",environment.getMySQLUsername());
  myBatisProperties.setProperty("JDBC.password",environment.getMySQLPassword());
  myBatisProperties.setProperty("JDBC.autoCommit","false");
  myBatisProperties.setProperty("mybatis.pooled.pingEnabled","true");
  myBatisProperties.setProperty("mybatis.pooled.pingQuery","SELECT 1");
  driverProperties.setProperty("characterEncoding","UTF-8");
  driverProperties.setProperty("allowMultiQueries","true");
}

public MySQLAuthenticationProviderModule ( MySQLEnvironment environment ) throws GuacamoleException { myBatisProperties . setProperty ( "mybatis.environment.id" , "guacamole" ) ; myBatisProperties . setProperty ( "JDBC.host" , environment . getMySQLHostname ( ) ) ; myBatisProperties . setProperty ( "JDBC.port" , String . valueOf ( environment . getMySQLPort ( ) ) ) ; myBatisProperties . setProperty ( "JDBC.schema" , environment . getMySQLDatabase ( ) ) ; myBatisProperties . setProperty ( "JDBC.username" , environment . getMySQLUsername ( ) ) ; myBatisProperties . setProperty ( "JDBC.password" , environment . getMySQLPassword ( ) ) ; myBatisProperties . setProperty ( "JDBC.autoCommit" , "false" ) ; myBatisProperties . setProperty ( "mybatis.pooled.pingEnabled" , "true" ) ; myBatisProperties . setProperty ( "mybatis.pooled.pingQuery" , "SELECT 1" ) ; driverProperties . setProperty ( "characterEncoding" , "UTF-8" ) ; driverProperties . setProperty ( "allowMultiQueries" , "true" ) ; }
creates a new mysql authentication provider module that configures driver and mybatis properties using the given environment .
