Execute HSQLDB by executing bin/runHsqldb.bat (on MS Windows) before using S2JDBC. lib/hsqldb.jar is necessary to execute HSQLDB but is unnecessary if it is not used in the production system.
Bind variables are passed as argument to execute(Object[]). Argument is set to null in this example because there is no bind variable. All that is necessary is to have S2Container constructs the components and call execute() afterwards. If a column name contains an underscore character (_), that character is omitted when mapped to a property.
BasicSelectHandler is also used to inquire 1 JavaBeans. It is the same as the above example except that BeanResultSetHandler is used. Inquiry result is returned as a JavaBeans instead of a list.
It is possible to get several Map. MapListResultSetHandler is used as a ResultSetHandler. If a column name contains an underscore character (_), that character omitted when mapped to a key.