com.im.df/1 5.9.1

com.im.df.query.ui
Class QueryFactories.FieldOperatorValueQueryTermFactory

java.lang.Object
  extended by com.im.df.query.ui.QueryFactories.QueryTermFactory
      extended by com.im.df.query.ui.QueryFactories.FieldOperatorValueQueryTermFactory
Enclosing class:
QueryFactories

public static final class QueryFactories.FieldOperatorValueQueryTermFactory
extends QueryFactories.QueryTermFactory


Field Summary
static String TYPE
           
 
Fields inherited from class com.im.df.query.ui.QueryFactories.QueryTermFactory
defaultWidgetFactoryType, widgetFactories
 
Constructor Summary
QueryFactories.FieldOperatorValueQueryTermFactory()
           
 
Method Summary
 DFTermExpression createQueryTerm(DFField field, boolean ignore)
           
 DFTermExpression createQueryTerm(DFField field, DFOperator op, Object... values)
           
 SQLWhereClauseElement createWhereClause(DFTermExpression query, com.im.df.impl.db.query.DFSQLElementFactory sqlFactory, String identifierQuoteString)
          Create an appropriate where clause for our type of query
protected  QueryFactories.WidgetFactory findPreferredWidgetType(DFTermExpression qt)
           
 String getType()
          The type is used as a hint so that the query term can be executed without having to make guesses about how to interpret it.
 
Methods inherited from class com.im.df.query.ui.QueryFactories.QueryTermFactory
findDefaultOperator, findWidgetFactory, findWidgetFactory, registerDefaultWidgetFactory, registerWidgetFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static final String TYPE
See Also:
Constant Field Values
Constructor Detail

QueryFactories.FieldOperatorValueQueryTermFactory

public QueryFactories.FieldOperatorValueQueryTermFactory()
Method Detail

getType

public String getType()
Description copied from class: QueryFactories.QueryTermFactory
The type is used as a hint so that the query term can be executed without having to make guesses about how to interpret it. When the query term is being created (e.g. by a query widget it should always be possible to specify its type. This should be specified in the DFTermExpression's options using the QUERY_TERM_TYPE constant as the key.

Specified by:
getType in class QueryFactories.QueryTermFactory
Returns:
A string that describes the type of this query term.

findPreferredWidgetType

protected QueryFactories.WidgetFactory findPreferredWidgetType(DFTermExpression qt)
Overrides:
findPreferredWidgetType in class QueryFactories.QueryTermFactory

createQueryTerm

public DFTermExpression createQueryTerm(DFField field,
                                        boolean ignore)

createQueryTerm

public DFTermExpression createQueryTerm(DFField field,
                                        DFOperator op,
                                        Object... values)

createWhereClause

public SQLWhereClauseElement createWhereClause(DFTermExpression query,
                                               com.im.df.impl.db.query.DFSQLElementFactory sqlFactory,
                                               String identifierQuoteString)
Description copied from class: QueryFactories.QueryTermFactory
Create an appropriate where clause for our type of query

Specified by:
createWhereClause in class QueryFactories.QueryTermFactory

com.im.df/1 5.9.1