View Javadoc
1 /* 2 * $Header: /cvsroot/ebxmlrr/ebxmlrr/src/share/com/sun/ebxml/registry/query/filter/ClassifiedByBranchProcessor.java,v 1.6 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 ClassifiedByBranchProcessor 14 * @see 15 * @author Nikola Stojanovic 16 */ 17 public class ClassifiedByBranchProcessor extends BranchProcessor { 18 19 private ClassifiedByBranch classifiedByBranch = null; 20 21 22 protected String getName() { 23 24 return ("Classification"); 25 } 26 27 28 protected void setNativeBranch(Object branch) { 29 30 classifiedByBranch = (ClassifiedByBranch)branch; 31 } 32 33 34 protected void buildFilterClauses() throws RegistryException { 35 36 convertClassificationFilter(); 37 } 38 39 40 protected void buildQueryClauses() throws RegistryException { 41 42 convertClassificationSchemeQuery(); 43 convertClassificationNodeQuery(); 44 } 45 46 47 protected void buildBranchClauses() throws RegistryException { 48 } 49 50 51 private void convertClassificationFilter() throws RegistryException { 52 53 if (classifiedByBranch.getClassificationFilter() != null) { 54 whereClause = filterProcessor.addNativeWhereClause(whereClause, classifiedByBranch.getClassificationFilter()); 55 } 56 } 57 58 59 private void convertClassificationSchemeQuery() throws RegistryException { 60 61 if (classifiedByBranch.getClassificationSchemeQuery() != null) { 62 ClassificationSchemeQueryProcessor queryProcessor = new ClassificationSchemeQueryProcessor(); 63 queryProcessor.setParentJoinColumn("classificationScheme"); 64 queryProcessor.setSelectColumn("id"); 65 whereClause = queryProcessor.addWhereClause(whereClause, classifiedByBranch.getClassificationSchemeQuery()); 66 } 67 } 68 69 70 private void convertClassificationNodeQuery() throws RegistryException { 71 72 if (classifiedByBranch.getClassificationNodeQuery() != null) { 73 ClassificationNodeQueryProcessor queryProcessor = new ClassificationNodeQueryProcessor(); 74 queryProcessor.setParentJoinColumn("classificationNode"); 75 queryProcessor.setSelectColumn("id"); 76 whereClause = queryProcessor.addWhereClause(whereClause, classifiedByBranch.getClassificationNodeQuery()); 77 } 78 } 79 }

This page was automatically generated by Maven