Class AbstractQlt<T extends com.tibco.patterns.learn.jaxb.model.SearchQueryBaseType>

  • All Implemented Interfaces:
    Querylet
    Direct Known Subclasses:
    DateQlt, PredicateQlt, TextQlt

    public abstract class AbstractQlt<T extends com.tibco.patterns.learn.jaxb.model.SearchQueryBaseType>
    extends java.lang.Object
    implements Querylet
    Stores a single querylet in an XML structure. The XML structure of the querylet corresponds to one of the subclasses of SearchQueryBaseType.
    • Method Detail

      • getDftFieldWeight

        public static double getDftFieldWeight()
        Returns:
        default field weight used in simple, cognate, date querylets.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getFieldIndex

        public final int getFieldIndex​(int queryletFieldIndex)
        Description copied from interface: Querylet
        Converts from field index in the list of querylet fields to the field index in the list of all non-key table fields.
        Specified by:
        getFieldIndex in interface Querylet
        Parameters:
        queryletFieldIndex - - the index of the used field (from 0 to getNFields()-1 )
        Returns:
        the field index (in the list of all fields)
      • getNFields

        public final int getNFields()
        Specified by:
        getNFields in interface Querylet
        Returns:
        the number of fields used in this querylet.
        Throws:
        java.lang.NullPointerException - if field indexes are not assigned.