This class performs XML parsing on content that defines database specific type mappings. This is how you define the type names that are valid for the different database vendors. A type map has one or more typemap nodes - a typemap defines a generic type (e.g. LONG, BOOLEAN) and a set of database specific types. You define a "generic" type name (the
typemap element's
type attribute) and you give a database vendor mapping that defines the database-specific type that is the most appropriate for that generic type. Here's an example for the generic type "LONG":
<typemaps type="LONG"> <typemap type="LONG"> <map db="java" type="BIGINT" /> <map db="postgresql" type="BIGINT" /> <map db="oracle" type="NUMBER(19,0)" /> </typemap> </typemaps>
The database name of "java" represents JDBC SQL types. The other database names are those that are returned by the different implementations of {@link DatabaseType#getName()}.
Instances of this object are created via {@link #loadTypeMapsFromStream(InputStream)} and{@link #loadKnownTypeMaps()}.