public class JaxMeJdbcSG extends SGFactoryChainImpl
A schema writer for creation of an object relational mapping.
| Modifier and Type | Class and Description |
|---|---|
static class |
JaxMeJdbcSG.Mode
A database mode specifies, how JDBC metadata is
being interpreted.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
JAXME_JDBC_SCHEMA_URI
Namespace URI of the JDBC schema writer.
|
| Constructor and Description |
|---|
JaxMeJdbcSG(SGFactoryChain o)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.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,
java.sql.Connection pConn) |
protected int |
getDbType(JaxMeJdbcSG.Mode pDbMode,
int pDbType,
long pScale,
long pPrecision,
java.lang.String pDbTypeName)
Guess an SQL type, based on reported type, scale and
precision.
|
Generator |
getGenerator(SGFactory pFactory) |
java.lang.String |
getKey()
Returns the key, under which the
JaxMeJdbcSG is
registered in the factory. |
protected SGFactory |
getSGFactory() |
void |
init(SGFactory pFactory) |
java.lang.Object |
newSchemaSG(SGFactory pController,
XSSchema pSchema) |
java.lang.Object |
newTypeSG(SGFactory pController,
XSType pType,
Context pClassContext,
XsQName pName,
JAXBProperty.BaseType pBaseType) |
java.lang.Object |
newTypeSG(SGFactory pController,
XSType pType,
JAXBProperty.BaseType pBaseType) |
java.lang.Object |
newTypeSG(SGFactory pController,
XSType pType,
XsQName pName,
JAXBProperty.BaseType pBaseType) |
getGroups, getGroupSG, getGroupSG, getObjects, getObjectSG, getObjectSG, getObjectSG, getSchemaSG, getSchemaSG, getTypes, getTypeSG, getTypeSG, getTypeSG, newFacet, newGroupSG, newGroupSG, newObjectSG, newObjectSG, newObjectSG, newXsObjectFactory, newXSObjectFactory, newXSParserpublic static final java.lang.String JAXME_JDBC_SCHEMA_URI
Namespace URI of the JDBC schema writer.
public JaxMeJdbcSG(SGFactoryChain o)
public java.lang.String getKey()
JaxMeJdbcSG is
registered in the factory.public void init(SGFactory pFactory)
init in interface SGFactoryChaininit in class SGFactoryChainImplprotected SGFactory getSGFactory()
public Generator getGenerator(SGFactory pFactory)
getGenerator in interface SGFactoryChaingetGenerator in class SGFactoryChainImplprotected JaxMeJdbcSG.Mode getDatabaseMode(ConnectionDetails pDetails, java.sql.Connection pConn) throws java.sql.SQLException
java.sql.SQLExceptionprotected int getDbType(JaxMeJdbcSG.Mode pDbMode, int pDbType, long pScale, long pPrecision, java.lang.String pDbTypeName)
Guess an SQL type, based on reported type, scale and precision.
protected java.lang.Object addColumn(ComplexTypeSG pTypeSG, XSType pType, Column pColumn) throws org.xml.sax.SAXException
Creates a new attribute or chooses an existing atomic
child element. Returns the AttributeSG or
ParticleSG.
org.xml.sax.SAXExceptionprotected CustomTableData addTableData(ComplexTypeSG pTypeSG, XSType pType, TableDetails pTableDetails) throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionpublic java.lang.Object newTypeSG(SGFactory pController, XSType pType, JAXBProperty.BaseType pBaseType) throws org.xml.sax.SAXException
newTypeSG in interface SGFactoryChainnewTypeSG in class SGFactoryChainImplorg.xml.sax.SAXExceptionpublic java.lang.Object newTypeSG(SGFactory pController, XSType pType, XsQName pName, JAXBProperty.BaseType pBaseType) throws org.xml.sax.SAXException
newTypeSG in interface SGFactoryChainnewTypeSG in class SGFactoryChainImplorg.xml.sax.SAXExceptionpublic java.lang.Object newTypeSG(SGFactory pController, XSType pType, Context pClassContext, XsQName pName, JAXBProperty.BaseType pBaseType) throws org.xml.sax.SAXException
newTypeSG in interface SGFactoryChainnewTypeSG in class SGFactoryChainImplorg.xml.sax.SAXExceptionpublic java.lang.Object newSchemaSG(SGFactory pController, XSSchema pSchema) throws org.xml.sax.SAXException
newSchemaSG in interface SGFactoryChainnewSchemaSG in class SGFactoryChainImplorg.xml.sax.SAXException