Factory will connect to the H2 database, internally this class makes use of a DBCP
dataSource supporting Pooling (please see H2DirectStoreFactory if you want to use
your own DataSource).
Please see the public static Params for a description of what is needed to connect to this
beast. The information is available in a dynamic fashion via getPrametersInfo() if you
are building a user interface on the fly.
Notes and examples:
- H2 configuration is in your local home directory - .h2.server.properties
C:\Documents and Settings\[username]\.h2.server.properties
- url:
"jdbc:h2:test"
"jdbc:h2:test;IFEXISTS=TRUE"
"jdbc:h2:file:/data/sample;IFEXISTS=TRUE"
"jdbc:h2:mem:test_mem"
- user: "sa" (for system administrator)
- passowrd: ""
Implementation note: This implementation does not use a DBTYPE parameter, instead the URL_PARAM
is checked to ensure it starts with "jdbc:h2".
author: Jody Garnett |