public PostgreSQLAuthenticationProviderModule(PostgreSQLEnvironment environment) throws GuacamoleException {
  myBatisProperties.setProperty("mybatis.environment.id","guacamole");
  myBatisProperties.setProperty("JDBC.host",environment.getPostgreSQLHostname());
  myBatisProperties.setProperty("JDBC.port",String.valueOf(environment.getPostgreSQLPort()));
  myBatisProperties.setProperty("JDBC.schema",environment.getPostgreSQLDatabase());
  myBatisProperties.setProperty("JDBC.username",environment.getPostgreSQLUsername());
  myBatisProperties.setProperty("JDBC.password",environment.getPostgreSQLPassword());
  myBatisProperties.setProperty("JDBC.autoCommit","false");
  myBatisProperties.setProperty("mybatis.pooled.pingEnabled","true");
  myBatisProperties.setProperty("mybatis.pooled.pingQuery","SELECT 1");
  driverProperties.setProperty("characterEncoding","UTF-8");
}

public PostgreSQLAuthenticationProviderModule ( PostgreSQLEnvironment environment ) throws GuacamoleException { myBatisProperties . setProperty ( "mybatis.environment.id" , "guacamole" ) ; myBatisProperties . setProperty ( "JDBC.host" , environment . getPostgreSQLHostname ( ) ) ; myBatisProperties . setProperty ( "JDBC.port" , String . valueOf ( environment . getPostgreSQLPort ( ) ) ) ; myBatisProperties . setProperty ( "JDBC.schema" , environment . getPostgreSQLDatabase ( ) ) ; myBatisProperties . setProperty ( "JDBC.username" , environment . getPostgreSQLUsername ( ) ) ; myBatisProperties . setProperty ( "JDBC.password" , environment . getPostgreSQLPassword ( ) ) ; myBatisProperties . setProperty ( "JDBC.autoCommit" , "false" ) ; myBatisProperties . setProperty ( "mybatis.pooled.pingEnabled" , "true" ) ; myBatisProperties . setProperty ( "mybatis.pooled.pingQuery" , "SELECT 1" ) ; driverProperties . setProperty ( "characterEncoding" , "UTF-8" ) ; }
creates a new postgresql authentication provider module that configures driver and mybatis properties using the given environment .
