Dialect multiple database support


Currently ActiveRecordPlugin provides MysqlDialect, OracleDialect, and AnsiSqlDialect implementation classes. MysqlDialect and OracleDialect implement support for Mysql and Oracle respectively, and AnsiSqlDialect implements support for ANSI SQL databases. The following is the configuration code of the database Dialect:

public class DemoConfig extends JFinalConfig {
public void configPlugin(Plugins me) { ActiveRecordPlugin arp = new ActiveRecordPlugin(…); me.add(arp);
// Configure Postgresql dialect
arp.setDialect(new PostgresqlDialect());
}
}