/**
* INTERNAL:
* XSD: procedure-parameter
*/
protected ClassDescriptor buildStoredProcedureParameterDescriptor() {
XMLDescriptor descriptor = new XMLDescriptor();
descriptor.setJavaClass(StoredProcedureParameterMetadata.class);
XMLDirectMapping directionMapping = new XMLDirectMapping();
directionMapping.setAttributeName("m_direction");
directionMapping.setGetMethodName("getDirection");
directionMapping.setSetMethodName("setDirection");
directionMapping.setConverter(new EnumTypeConverter(directionMapping, Direction.class, false));
directionMapping.setXPath("@direction");
descriptor.addMapping(directionMapping);
descriptor.addMapping(getNameAttributeMapping());
XMLDirectMapping queryParameterMapping = new XMLDirectMapping();
queryParameterMapping.setAttributeName("m_queryParameter");
queryParameterMapping.setGetMethodName("getQueryParameter");
queryParameterMapping.setSetMethodName("setQueryParameter");
queryParameterMapping.setXPath("@query-parameter");
descriptor.addMapping(queryParameterMapping);
XMLDirectMapping typeMapping = new XMLDirectMapping();
typeMapping.setAttributeName("m_typeName");
typeMapping.setGetMethodName("getTypeName");
typeMapping.setSetMethodName("setTypeName");
typeMapping.setXPath("@type");
descriptor.addMapping(typeMapping);
XMLDirectMapping jdbcTypeMapping = new XMLDirectMapping();
jdbcTypeMapping.setAttributeName("m_jdbcType");
jdbcTypeMapping.setGetMethodName("getJdbcType");
jdbcTypeMapping.setSetMethodName("setJdbcType");
jdbcTypeMapping.setXPath("@jdbc-type");
descriptor.addMapping(jdbcTypeMapping);
XMLDirectMapping jdbcTypeNameMapping = new XMLDirectMapping();
jdbcTypeNameMapping.setAttributeName("m_jdbcTypeName");
jdbcTypeNameMapping.setGetMethodName("getJdbcTypeName");
jdbcTypeNameMapping.setSetMethodName("setJdbcTypeName");
jdbcTypeNameMapping.setXPath("@jdbc-type-name");
descriptor.addMapping(jdbcTypeNameMapping);
return descriptor;
}