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

Class JdbcTypeSG

public class JdbcTypeSG extends TypeSGChainImpl

Author: Jochen Wiedmann

Constructor Summary
protected JdbcTypeSG(JaxMeJdbcSG pJdbcSG, TypeSGChain o, XSType pType)
Method Summary
voidgenerate(TypeSG pController)
voidgenerate(TypeSG pController, JavaSource pSource)
protected voidgetFinally(JavaMethod pMethod, DirectAccessible pRessource, Object pSqlMsg, Object pJaxbMsg)
protected voidgetPMClass(TypeSG pController, JavaSource pSource, CustomTableData pTableData)
protected JavaMethodgetPMClassDeleteMethod(TypeSG pController, JavaSource pSource, CustomTableData pData)
protected JavaMethodgetPMClassInsertMethod(TypeSG pController, JavaSource pSource, CustomTableData pData)
protected JavaMethodgetPMClassSelectMethod(TypeSG pController, JavaSource pSource, CustomTableData pData)
protected JavaMethodgetPMClassUpdateMethod(TypeSG pController, JavaSource pSource, CustomTableData pData)
protected ObjectgetResultSetValue(JavaMethod pMethod, Column pColumn, Object pRs, Object pParamNum, TypeSG pTypeSG)

Generates code for fetching a value from a ResultSet.

ObjectnewComplexTypeSG(TypeSG pController)
protected voidsetPreparedStatementValue(JavaMethod pMethod, Column pColumn, Object pStmt, Object pParamNum, Object pValue, TypeSG pTypeSG)

Generates code for setting a PreparedStatement's parameter.

Constructor Detail

JdbcTypeSG

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

Method Detail

generate

public void generate(TypeSG pController)

generate

public void generate(TypeSG pController, JavaSource pSource)

getFinally

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

getPMClass

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

getPMClassDeleteMethod

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

getPMClassInsertMethod

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

getPMClassSelectMethod

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

getPMClassUpdateMethod

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

getResultSetValue

protected Object getResultSetValue(JavaMethod pMethod, Column pColumn, Object pRs, Object pParamNum, TypeSG pTypeSG)

Generates code for fetching a value from a ResultSet.

newComplexTypeSG

public Object newComplexTypeSG(TypeSG pController)

setPreparedStatementValue

protected void setPreparedStatementValue(JavaMethod pMethod, Column pColumn, Object pStmt, Object pParamNum, Object pValue, TypeSG pTypeSG)

Generates code for setting a PreparedStatement's parameter.