This package contains some classes and interfaces enhancing the SQL generator with HsqlDb specific features.
See: Description
Interface Summary | |
---|---|
HsqlDbColumn | Interface of a column in a HsqlDb database. |
HsqlDbSchema | Interface of a schema in a HsqlDb database. |
HsqlDbSQLFactory | Interface of an SQL factory for HsqlDb databases. |
HsqlDbSQLGenerator | Interface of an SQL generator for HsqlDb databases. |
HsqlDbTable | Interface of a table in a HsqlDb database. |
Class Summary | |
---|---|
HsqlDbColumnImpl | Default implementation of a column in a HsqlDb database. |
HsqlDbSchemaImpl | Default implementation of a schema in a HsqlDb database. |
HsqlDbSQLFactoryImpl | Default implementation of an SQL factory for HsqlDb databases. |
HsqlDbSQLGeneratorImpl | Default implementation of an SQL generator for HsqlDb schemas. |
HsqlDbTableImpl | Default implementation of a table in a HsqlDb database. |
This package contains some classes and interfaces enhancing the SQL generator with HsqlDb specific features. HsqlDb is an open source database, written in Java. It is particularly well suited for JUnit tests, because it can run in embedded into the own JVM. HsqlDb is available from http://hsqldb.sf.net.
The HsqlDb support works by instantiating a different {@link org.apache.ws.jaxme.sqls.SQLFactory}: By default, you would enable {@link org.apache.ws.jaxme.sqls.impl.SQLFactoryImpl}. However, for HsqlDb support you would choose {@link org.apache.ws.jaxme.sqls.hsqldb.HsqlDbSQLFactoryImpl}, which is a subclass of the default factory.
Likewise, you need to replace the default implementation of the SQL generator, {@link org.apache.ws.jaxme.sqls.SQLGenerator} with {@link org.apache.ws.jaxme.sqls.hsqldb.HsqlDbSQLGeneratorImpl}
The difference between the factories is as follows: When using the HsqlDb factory, you may cast your instances of {@link org.apache.ws.jaxme.sqls.SQLFactory}, {@link org.apache.ws.jaxme.sqls.Schema}, {@link org.apache.ws.jaxme.sqls.Table}, and {@link org.apache.ws.jaxme.sqls.Column} to {@link org.apache.ws.jaxme.sqls.hsqldb.HsqlDbSQLFactory}, {@link org.apache.ws.jaxme.sqls.hsqldb.HsqlDbSchema}, {@link org.apache.ws.jaxme.sqls.hsqldb.HsqlDbTable}, and {@link org.apache.ws.jaxme.sqls.hsqldb.HsqlDbColumn}, respectively, and use the additional methods.