org.apache.ws.jaxme.pm.generator.jdbc

Class JdbcTypeSG

Implemented Interfaces:
TypeSGChain

public class JdbcTypeSG
extends TypeSGChainImpl

Author:
Jochen Wiedmann

Constructor Summary

JdbcTypeSG(JaxMeJdbcSG pJdbcSG, TypeSGChain o, XSType pType)

Method Summary

void
generate(TypeSG pController)
void
generate(TypeSG pController, JavaSource pSource)
protected void
getFinally(JavaMethod pMethod, DirectAccessible pRessource, Object pSqlMsg, Object pJaxbMsg)
protected void
getPMClass(TypeSG pController, JavaSource pSource, CustomTableData pTableData)
protected JavaMethod
getPMClassDeleteMethod(TypeSG pController, JavaSource pSource, CustomTableData pData)
protected JavaMethod
getPMClassInsertMethod(TypeSG pController, JavaSource pSource, CustomTableData pData)
protected JavaMethod
getPMClassSelectMethod(TypeSG pController, JavaSource pSource, CustomTableData pData)
protected JavaMethod
getPMClassUpdateMethod(TypeSG pController, JavaSource pSource, CustomTableData pData)
protected Object
getResultSetValue(JavaMethod pMethod, Column pColumn, Object pRs, Object pParamNum, TypeSG pTypeSG)
Generates code for fetching a value from a ResultSet.
Object
newComplexTypeSG(TypeSG pController)
protected void
setPreparedStatementValue(JavaMethod pMethod, Column pColumn, Object pStmt, Object pParamNum, Object pValue, TypeSG pTypeSG)
Generates code for setting a PreparedStatement's parameter.

Methods inherited from class org.apache.ws.jaxme.generator.sg.impl.TypeSGChainImpl

generate, generate, getComplexTypeSG, getExtendedType, getFactory, getLocator, getName, getProperty, getRestrictedType, getRuntimeType, getSchema, getSchemaHeader, getSimpleTypeSG, getXMLField, getXMLGetMethod, getXMLIsSetMethod, getXMLSetMethod, init, isComplex, isExtension, isGlobalClass, isGlobalType, isRestriction, newComplexTypeSG, newSimpleTypeSG, setProperty

Constructor Details

JdbcTypeSG

protected JdbcTypeSG(JaxMeJdbcSG pJdbcSG,
                     TypeSGChain o,
                     XSType pType)

Method Details

generate

public void generate(TypeSG pController)
            throws SAXException
Specified by:
generate in interface TypeSGChain
Overrides:
generate in interface TypeSGChainImpl

generate

public void generate(TypeSG pController,
                     JavaSource pSource)
            throws SAXException
Specified by:
generate in interface TypeSGChain
Overrides:
generate in interface TypeSGChainImpl

getFinally

protected void getFinally(JavaMethod pMethod,
                          DirectAccessible pRessource,
                          Object pSqlMsg,
                          Object pJaxbMsg)

getPMClass

protected void getPMClass(TypeSG pController,
                          JavaSource pSource,
                          CustomTableData pTableData)
            throws SAXException

getPMClassDeleteMethod

protected JavaMethod getPMClassDeleteMethod(TypeSG pController,
                                            JavaSource pSource,
                                            CustomTableData pData)
            throws SAXException

getPMClassInsertMethod

protected JavaMethod getPMClassInsertMethod(TypeSG pController,
                                            JavaSource pSource,
                                            CustomTableData pData)
            throws SAXException

getPMClassSelectMethod

protected JavaMethod getPMClassSelectMethod(TypeSG pController,
                                            JavaSource pSource,
                                            CustomTableData pData)
            throws SAXException

getPMClassUpdateMethod

protected JavaMethod getPMClassUpdateMethod(TypeSG pController,
                                            JavaSource pSource,
                                            CustomTableData pData)
            throws SAXException

getResultSetValue

protected Object getResultSetValue(JavaMethod pMethod,
                                   Column pColumn,
                                   Object pRs,
                                   Object pParamNum,
                                   TypeSG pTypeSG)
            throws SAXException
Generates code for fetching a value from a ResultSet.

newComplexTypeSG

public Object newComplexTypeSG(TypeSG pController)
            throws SAXException
Specified by:
newComplexTypeSG in interface TypeSGChain
Overrides:
newComplexTypeSG in interface TypeSGChainImpl

setPreparedStatementValue

protected void setPreparedStatementValue(JavaMethod pMethod,
                                         Column pColumn,
                                         Object pStmt,
                                         Object pParamNum,
                                         Object pValue,
                                         TypeSG pTypeSG)
            throws SAXException
Generates code for setting a PreparedStatement's parameter.