com.edustructures.sifworks.tools.queries
Interface QueryField


public interface QueryField

This interface defines an optional interface that can be implemented by a class and mapped to an element to satisfy a SIF_Query.

When mapped to a a SIF_Query element and passed in as part of the table to the QueryFormatter.format(Query, Map) method, this class will be invoked if the query contains a condition that maps to the field


Method Summary
 java.lang.String render(QueryFormatter formatter, Query query, Condition cond)
          Returns a portion of an SQL query that should be used to satisfy this specific query condition
 

Method Detail

render

java.lang.String render(QueryFormatter formatter,
                        Query query,
                        Condition cond)
                        throws QueryFormatterException
Returns a portion of an SQL query that should be used to satisfy this specific query condition

Parameters:
formatter - The formatter that is formatting the query
query - The SIF_Query that is being processed
cond - The specific condition that this class should render
Returns:
an sql query snippet appropriate for the formatter being used
Throws:
QueryFormatterException


Copyright © 2001-2007 Edustructures LLC. All Rights Reserved. SIFWorks® and ADK® are registered trademarks of Edustructures LLC. SIF™ and Schools Interoperability Framework are trademarks of the Schools Interoperability Framework Association.