|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ws.jaxme.generator.sg.impl.SGFactoryChainImpl org.apache.ws.jaxme.pm.generator.jdbc.JaxMeJdbcSG
public class JaxMeJdbcSG
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 java.lang.String |
JAXME_JDBC_SCHEMA_URI
Namespace URI of the JDBC schema writer. |
Constructor Summary | |
---|---|
JaxMeJdbcSG(SGFactoryChain o)
Creates a new instance. |
Method Summary | |
---|---|
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)
|
Methods inherited from class org.apache.ws.jaxme.generator.sg.impl.SGFactoryChainImpl |
---|
getGroups, getGroupSG, getGroupSG, getObjects, getObjectSG, getObjectSG, getObjectSG, getSchemaSG, getSchemaSG, getTypes, getTypeSG, getTypeSG, getTypeSG, newFacet, newGroupSG, newGroupSG, newObjectSG, newObjectSG, newObjectSG, newXsObjectFactory, newXSObjectFactory, newXSParser |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String JAXME_JDBC_SCHEMA_URI
Namespace URI of the JDBC schema writer.
Constructor Detail |
---|
public JaxMeJdbcSG(SGFactoryChain o)
Method Detail |
---|
public java.lang.String getKey()
JaxMeJdbcSG
is
registered in the factory.
public void init(SGFactory pFactory)
init
in interface SGFactoryChain
init
in class SGFactoryChainImpl
protected SGFactory getSGFactory()
public Generator getGenerator(SGFactory pFactory)
getGenerator
in interface SGFactoryChain
getGenerator
in class SGFactoryChainImpl
protected JaxMeJdbcSG.Mode getDatabaseMode(ConnectionDetails pDetails, java.sql.Connection pConn) throws java.sql.SQLException
java.sql.SQLException
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.
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.SAXException
protected CustomTableData addTableData(ComplexTypeSG pTypeSG, XSType pType, TableDetails pTableDetails) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public java.lang.Object newTypeSG(SGFactory pController, XSType pType, JAXBProperty.BaseType pBaseType) throws org.xml.sax.SAXException
newTypeSG
in interface SGFactoryChain
newTypeSG
in class SGFactoryChainImpl
org.xml.sax.SAXException
public java.lang.Object newTypeSG(SGFactory pController, XSType pType, XsQName pName, JAXBProperty.BaseType pBaseType) throws org.xml.sax.SAXException
newTypeSG
in interface SGFactoryChain
newTypeSG
in class SGFactoryChainImpl
org.xml.sax.SAXException
public java.lang.Object newTypeSG(SGFactory pController, XSType pType, Context pClassContext, XsQName pName, JAXBProperty.BaseType pBaseType) throws org.xml.sax.SAXException
newTypeSG
in interface SGFactoryChain
newTypeSG
in class SGFactoryChainImpl
org.xml.sax.SAXException
public java.lang.Object newSchemaSG(SGFactory pController, XSSchema pSchema) throws org.xml.sax.SAXException
newSchemaSG
in interface SGFactoryChain
newSchemaSG
in class SGFactoryChainImpl
org.xml.sax.SAXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |