View Javadoc
1 /* 2 * $Header: /cvsroot/ebxmlrr/ebxmlrr/src/share/com/sun/ebxml/registry/query/filter/SlotBranchProcessor.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 SlotBranchProcessor 14 * @see 15 * @author Nikola Stojanovic 16 */ 17 public class SlotBranchProcessor extends BranchProcessor { 18 19 private SlotBranch slotBranch = null; 20 21 22 protected String getName() { 23 24 return "Slot"; 25 } 26 27 28 protected void setNativeBranch(Object branch) { 29 30 slotBranch = (SlotBranch)branch; 31 } 32 33 34 protected void buildFilterClauses() throws RegistryException { 35 36 convertSlotFilter(); 37 convertSlotValueFilters(); 38 } 39 40 41 protected void buildQueryClauses() throws RegistryException { 42 } 43 44 45 protected void buildBranchClauses() throws RegistryException { 46 } 47 48 49 50 private void convertSlotFilter() throws RegistryException { 51 52 if (slotBranch.getSlotFilter() != null) { 53 whereClause = filterProcessor.addNativeWhereClause(whereClause, slotBranch.getSlotFilter()); 54 } 55 } 56 57 58 private void convertSlotValueFilters() throws RegistryException { 59 60 SlotValueFilter[] slotValueFilter = slotBranch.getSlotValueFilter(); 61 62 if (slotValueFilter.length > 0) { 63 filterProcessor.setSelectColumn("parent"); 64 65 for (int i=0; i<slotValueFilter.length; i++) { 66 whereClause = filterProcessor.addNativeWhereClause(whereClause, slotValueFilter[i]); 67 } 68 } 69 } 70 }

This page was automatically generated by Maven