Class BaseQueryGenerator

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected com.saperion.rmi.SaQueryInfo.CustomIndexState customIndexState
      CustomIndexState defines Value and limit of index state field
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract com.saperion.rmi.SaQueryInfo generateQuery()
      Generates a query string.
      com.saperion.rmi.SaQueryInfo.CustomIndexState getCustomIndexState()
      Returns value of CustomIndexState
      protected boolean isCaseSensitive​(java.lang.String fieldName)  
      protected void setParameterPrefix​(java.lang.String prefix)
      Sets the prefix to use for parameter-names.
      protected void setPrefix​(java.lang.String prefixString)
      Sets the prefix to use as DDC-alias and field-selector-prefix.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • customIndexState

        protected com.saperion.rmi.SaQueryInfo.CustomIndexState customIndexState
        CustomIndexState defines Value and limit of index state field
    • Constructor Detail

      • BaseQueryGenerator

        @Deprecated
        public BaseQueryGenerator​(java.lang.String databaseType)
        Deprecated.
        Use BaseQueryGenerator(DDC) instead. Will be removed in 8.1.
        Constructor.
        Parameters:
        databaseType - type of the database in use
      • BaseQueryGenerator

        public BaseQueryGenerator​(com.saperion.intf.DDC ddc)
        Constructor.
        Parameters:
        ddc - the name of the main-ddc used in the query to be generated
    • Method Detail

      • setPrefix

        protected void setPrefix​(java.lang.String prefixString)
        Sets the prefix to use as DDC-alias and field-selector-prefix. The default is 'd.'.
        Parameters:
        prefixString - prefix to use
      • setParameterPrefix

        protected void setParameterPrefix​(java.lang.String prefix)
        Sets the prefix to use for parameter-names. The default is 'ngc'.
        Parameters:
        prefix - prefix to use
      • generateQuery

        public abstract com.saperion.rmi.SaQueryInfo generateQuery()
        Generates a query string.
        Returns:
        query
      • isCaseSensitive

        protected boolean isCaseSensitive​(java.lang.String fieldName)
      • getCustomIndexState

        public com.saperion.rmi.SaQueryInfo.CustomIndexState getCustomIndexState()
        Returns value of CustomIndexState
        Returns: