org.apache.ws.jaxme.pm.generator.jdbc
public class JaxMeJdbcSG extends SGFactoryChainImpl
A schema writer for creation of an object relational mapping.
| Nested Class Summary | |
|---|---|
| static class | JaxMeJdbcSG.Mode A database mode specifies, how JDBC metadata is
being interpreted. |
| Field Summary | |
|---|---|
| static String | JAXME_JDBC_SCHEMA_URI Namespace URI of the JDBC schema writer. |
| Constructor Summary | |
|---|---|
| JaxMeJdbcSG(SGFactoryChain o) Creates a new instance. | |
| Method Summary | |
|---|---|
| protected Object | addColumn(ComplexTypeSG pTypeSG, XSType pType, Column pColumn) Creates a new attribute or chooses an existing atomic child element. |
| protected CustomTableData | addTableData(ComplexTypeSG pTypeSG, XSType pType, TableDetails pTableDetails) |
| protected JaxMeJdbcSG.Mode | getDatabaseMode(ConnectionDetails pDetails, Connection pConn) |
| protected int | getDbType(JaxMeJdbcSG.Mode pDbMode, int pDbType, long pScale, long pPrecision, String pDbTypeName) Guess an SQL type, based on reported type, scale and precision. |
| Generator | getGenerator(SGFactory pFactory) |
| String | getKey() Returns the key, under which the JaxMeJdbcSG is
registered in the factory. |
| protected SGFactory | getSGFactory() |
| void | init(SGFactory pFactory) |
| Object | newSchemaSG(SGFactory pController, XSSchema pSchema) |
| Object | newTypeSG(SGFactory pController, XSType pType) |
| Object | newTypeSG(SGFactory pController, XSType pType, XsQName pName) |
| Object | newTypeSG(SGFactory pController, XSType pType, Context pClassContext, XsQName pName) |
Namespace URI of the JDBC schema writer.
Creates a new attribute or chooses an existing atomic child element. Returns the AttributeSG or ParticleSG.
Guess an SQL type, based on reported type, scale and precision.