de.ispsoft.jaxme.generator
Class XsdJdbcSchemaReader
java.lang.Object
de.ispsoft.jaxme.generator.ConfigurableImpl
de.ispsoft.jaxme.generator.SchemaReaderImpl
de.ispsoft.jaxme.generator.XsdSchemaReader
de.ispsoft.jaxme.generator.XsdJdbcSchemaReader
- All Implemented Interfaces:
- Configurable, SchemaReader
- public class XsdJdbcSchemaReader
- extends XsdSchemaReader
A SchemaReader for XML Schemas with JDBC mappings.
- Author:
- Jochen Wiedmann
Method Summary |
protected SchemaAbstractSimpleElement |
addColumn(SchemaComplexJdbcElement pElement,
JdbcParserData pParserData,
java.lang.String pTable,
java.lang.String pColumn,
int pType,
int pNullable)
|
protected void |
addTableData(SchemaComplexJdbcElement pElement,
JdbcParserData pParserData)
|
protected void |
addViewData(SchemaComplexJdbcElement pElement,
JdbcParserData pParserData)
|
protected java.lang.String |
getDatabaseMode(java.sql.Connection pConn)
|
protected int |
getDbType(java.lang.String pDbMode,
int pDbType,
int pScale,
int pPrecision,
java.lang.String pDbTypeName)
|
protected java.lang.String |
getDefaultExtendsClassName()
|
protected void |
getJdbcDefaults(ParserData pd,
org.w3c.dom.Element pNode)
|
ParserData |
newParserData(java.lang.String pTargetNamespace)
Returns a ParserData instance. |
protected SchemaComplexElement |
newSchemaComplexElement(SchemaAnnotationOwner pParent)
|
protected void |
parseAppInfoDefaultNode(ParserData pParserData,
org.w3c.dom.Element pNode)
|
protected void |
parseAppInfoNode(SchemaElement pSchemaElement,
ParserData pParserData,
org.w3c.dom.Element pNode)
|
SchemaElement |
parseElement(SchemaAnnotationOwner pParent,
org.w3c.dom.Element pElement,
ParserData pParserData,
boolean pGlobal)
Called for parsing a single schema element from the given
DOM tree. |
protected JdbcListMethod |
parseListMethod(JdbcParserData pParserData,
org.w3c.dom.Element pElement)
|
protected JdbcTable |
parseTableNode(JdbcParserData pParserData,
org.w3c.dom.Element pNode)
|
protected JdbcView |
parseViewNode(JdbcParserData pParserData,
org.w3c.dom.Element pNode)
|
Methods inherited from class de.ispsoft.jaxme.generator.XsdSchemaReader |
addDecorators, addElementDecoratorFactory, clearElementDecoratorFactories, findDefaultNamespaceURI, findElement, findNamespaceURI, findType, getDefaults, getElementDecoratorFactories, getInputSource, getSchema, getSchemaNode, parse, parse, parseAttributeAttributes, parseAttributeList, parseComplexElement, parseElementAttributes, parseElementList, parseSimpleType, setSchema, setSchemaNode |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAXME_JDBC_SCHEMA_URI
public static final java.lang.String JAXME_JDBC_SCHEMA_URI
- See Also:
- Constant Field Values
DATABASE_MODE_ORACLE
public static final java.lang.String DATABASE_MODE_ORACLE
- See Also:
- Constant Field Values
DATABASE_MODE_GENERIC
public static final java.lang.String DATABASE_MODE_GENERIC
- See Also:
- Constant Field Values
XsdJdbcSchemaReader
public XsdJdbcSchemaReader()
getDatabaseMode
protected java.lang.String getDatabaseMode(java.sql.Connection pConn)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getDbType
protected int getDbType(java.lang.String pDbMode,
int pDbType,
int pScale,
int pPrecision,
java.lang.String pDbTypeName)
getJdbcDefaults
protected void getJdbcDefaults(ParserData pd,
org.w3c.dom.Element pNode)
parseAppInfoDefaultNode
protected void parseAppInfoDefaultNode(ParserData pParserData,
org.w3c.dom.Element pNode)
throws SchemaException
- Overrides:
parseAppInfoDefaultNode
in class XsdSchemaReader
- Throws:
SchemaException
parseListMethod
protected JdbcListMethod parseListMethod(JdbcParserData pParserData,
org.w3c.dom.Element pElement)
throws SchemaException
- Throws:
SchemaException
parseViewNode
protected JdbcView parseViewNode(JdbcParserData pParserData,
org.w3c.dom.Element pNode)
throws SchemaException
- Throws:
SchemaException
parseTableNode
protected JdbcTable parseTableNode(JdbcParserData pParserData,
org.w3c.dom.Element pNode)
throws SchemaException
- Throws:
SchemaException
parseAppInfoNode
protected void parseAppInfoNode(SchemaElement pSchemaElement,
ParserData pParserData,
org.w3c.dom.Element pNode)
throws java.lang.Exception
- Overrides:
parseAppInfoNode
in class XsdSchemaReader
- Throws:
java.lang.Exception
parseElement
public SchemaElement parseElement(SchemaAnnotationOwner pParent,
org.w3c.dom.Element pElement,
ParserData pParserData,
boolean pGlobal)
throws java.lang.Exception
Called for parsing a single schema element from the given
DOM tree.
- Overrides:
parseElement
in class XsdSchemaReader
- Throws:
java.lang.Exception
addViewData
protected void addViewData(SchemaComplexJdbcElement pElement,
JdbcParserData pParserData)
throws java.lang.Exception
- Throws:
java.lang.Exception
addTableData
protected void addTableData(SchemaComplexJdbcElement pElement,
JdbcParserData pParserData)
throws java.lang.Exception
- Throws:
java.lang.Exception
addColumn
protected SchemaAbstractSimpleElement addColumn(SchemaComplexJdbcElement pElement,
JdbcParserData pParserData,
java.lang.String pTable,
java.lang.String pColumn,
int pType,
int pNullable)
newParserData
public ParserData newParserData(java.lang.String pTargetNamespace)
- Description copied from class:
XsdSchemaReader
Returns a ParserData instance.
- Overrides:
newParserData
in class XsdSchemaReader
newSchemaComplexElement
protected SchemaComplexElement newSchemaComplexElement(SchemaAnnotationOwner pParent)
- Overrides:
newSchemaComplexElement
in class XsdSchemaReader
getDefaultExtendsClassName
protected java.lang.String getDefaultExtendsClassName()
- Overrides:
getDefaultExtendsClassName
in class XsdSchemaReader