ADL_query_translator modules/paradigms/Adaptor_Constant.py

modules / paradigms / Adaptor_Constant.py 


 SYNOPSIS

     Adaptor_Constant (uri, paradigm)

         uri
             The (single) valid field URI, e.g.,
             "http://purl.org/dc/elements/1.1/creator".

         paradigm
             The underlying paradigm.

 DESCRIPTION

     An adaptor that adds support for field-level searching to a
     paradigm (the "underlying" paradigm) in a trivial way by
     equating bucket-level and field-level searches.

     This adaptor passes all bucket-level constraints, and all
     field-level constraints matching 'uri', through to the
     underlying paradigm.  Field-level constraints that don't match
     'uri' result in the query

         SELECT idColumn FROM table
             WHERE 1 = 0

     being returned.

     Thus this adaptor is useful in situations when all of a bucket's
     values per collection item are associated with a single field
     URI.

     Exceptions thrown:

         none

 AUTHOR

     Greg Janee
     gjanee@alexandria.ucsb.edu

 HISTORY

     $Log: Adaptor_Constant.py,v $
     Revision 1.2  2003/10/28 21:18:33  gjanee
     Per revision 1.8 of UniversalTranslator.py, this paradigm now
     invokes field-level methods of the underlying paradigm if the
     latter supports field-level searching.

     Revision 1.1  2002/10/16 21:42:30  gjanee
     Initial revision
Imported Modules   

import UniversalTranslator
import edu.ucsb.adl.middleware
import types

Classes   

Adaptor_Constant


This document was automatically generated Thu Mar 4 12:45:25 2004 by HappyDoc version WORKING