View Javadoc
1 /* 2 * $Header: /cvsroot/ebxmlrr/ebxmlrr/src/share/com/sun/ebxml/registry/query/filter/AssociationQueryProcessor.java,v 1.4 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 AssociationQueryProcessor 14 * @see 15 * @author Nikola Stojanovic 16 */ 17 public class AssociationQueryProcessor extends RegistryObjectQueryProcessor { 18 19 private AssociationQuery associationQuery = null; 20 21 22 protected String getName() { 23 24 return "Association"; 25 } 26 27 28 protected void setNativeQuery(RegistryObjectQueryType query) { 29 30 associationQuery = (AssociationQuery)query; 31 super.setNativeQuery((RegistryObjectQueryType)associationQuery); 32 } 33 34 35 protected void buildFilterClauses() throws RegistryException { 36 37 convertAssociationFilter(); 38 super.buildFilterClauses(); 39 } 40 41 42 protected void buildQueryClauses() throws RegistryException { 43 44 super.buildQueryClauses(); 45 } 46 47 48 protected void buildBranchClauses() throws RegistryException { 49 50 super.buildBranchClauses(); 51 } 52 53 54 private void convertAssociationFilter() throws RegistryException { 55 56 if (associationQuery.getAssociationFilter() != null) { 57 whereClause = filterProcessor.addNativeWhereClause(whereClause, associationQuery.getAssociationFilter()); 58 } 59 } 60 }

This page was automatically generated by Maven