/*
* Walk-thru sqlType, building PLSQLCollection/PLSQLrecord helper objects,
* ObjectRelationalDataTypeDescriptors and mappings, XMLDescriptors and mappings
*/
PLSQLHelperObjectsBuilder helperObjectsBuilder = new PLSQLHelperObjectsBuilder(this, procOpModel);
PLSQLORDescriptorBuilder orDescriptorBuilder = new PLSQLORDescriptorBuilder();
PLSQLOXDescriptorBuilder oxDescriptorBuilder = new PLSQLOXDescriptorBuilder(getTargetNamespace());
PublisherListenerChainAdapter chain = new PublisherListenerChainAdapter();
chain.addListener(helperObjectsBuilder);
chain.addListener(orDescriptorBuilder);
chain.addListener(oxDescriptorBuilder);
PublisherWalker walker = new PublisherWalker(chain);
procOpModel.getJPubType().accept(walker);
if (orDescriptorBuilder.getDescriptors() != null) {
for (ObjectRelationalDataTypeDescriptor ordtDescriptor : orDescriptorBuilder.getDescriptors()) {
orProject.addDescriptor(ordtDescriptor);
}
}
if (oxDescriptorBuilder.getDescriptors() != null) {
for (XMLDescriptor xdesc : oxDescriptorBuilder.getDescriptors()) {