View Javadoc
1 /* 2 * $Header: /cvsroot/ebxmlrr/ebxmlrr/src/share/com/sun/ebxml/registry/query/filter/SpecificationLinkBranchProcessor.java,v 1.5 2002/03/06 04:40:40 nstojano Exp $ 3 */ 4 5 package com.sun.ebxml.registry.query.filter; 6 7 import com.sun.ebxml.registry.*; 8 9 import org.oasis.ebxml.registry.bindings.query.*; 10 import org.oasis.ebxml.registry.bindings.rs.*; 11 12 /*** 13 * Class Declaration for SpecificationLinkBranchProcessor 14 * @see 15 * @author Nikola Stojanovic 16 */ 17 public class SpecificationLinkBranchProcessor extends BranchProcessor { 18 19 private SpecificationLinkBranch specificationLinkBranch = null; 20 21 22 protected String getName() { 23 24 return "SpecificationLink"; 25 } 26 27 28 protected void setNativeBranch(Object branch) { 29 30 specificationLinkBranch = (SpecificationLinkBranch)branch; 31 } 32 33 34 protected void buildFilterClauses() throws RegistryException { 35 36 convertSpecificationLinkFilter(); 37 } 38 39 40 protected void buildQueryClauses() throws RegistryException { 41 42 convertRegistryObjectQuery(); 43 convertRegistryEntryQuery(); 44 } 45 46 47 protected void buildBranchClauses() throws RegistryException { 48 } 49 50 51 private void convertSpecificationLinkFilter() throws RegistryException { 52 53 if (specificationLinkBranch.getSpecificationLinkFilter() != null) { 54 whereClause = filterProcessor.addNativeWhereClause(whereClause, specificationLinkBranch.getSpecificationLinkFilter()); 55 } 56 } 57 58 59 private void convertRegistryObjectQuery() throws RegistryException { 60 61 if (specificationLinkBranch.getRegistryObjectQuery() != null) { 62 RegistryObjectQueryProcessor queryProcessor = new RegistryObjectQueryProcessor(); 63 queryProcessor.setParentJoinColumn("specificationObject"); 64 queryProcessor.setSelectColumn("id"); 65 whereClause = queryProcessor.addWhereClause(whereClause, specificationLinkBranch.getRegistryObjectQuery()); 66 } 67 } 68 69 70 private void convertRegistryEntryQuery() throws RegistryException { 71 72 if (specificationLinkBranch.getRegistryEntryQuery() != null) { 73 RegistryEntryQueryProcessor queryProcessor = new RegistryEntryQueryProcessor(); 74 queryProcessor.setParentJoinColumn("specificationObject"); 75 queryProcessor.setSelectColumn("id"); 76 whereClause = queryProcessor.addWhereClause(whereClause, specificationLinkBranch.getRegistryEntryQuery()); 77 } 78 } 79 }

This page was automatically generated by Maven