public String getSQLSeek ( String strSeekSign , boolean bUseCurrentValues , Vector < BaseField > vParamList ) { boolean bIsQueryRecord = this . isQueryRecord ( ) ; String strRecordset = this . makeTableNames ( false ) ; String strFields = this . getSQLFields ( DBConstants . SQL_SELECT_TYPE , bUseCurrentValues ) ; String strSortParams = this . addSortParams ( bIsQueryRecord , false ) ; KeyArea keyArea = this . getKeyArea ( - 1 ) ; // Current index keyArea . setupKeyBuffer ( null , DBConstants . TEMP_KEY_AREA ) ; // Move params String sFilter = keyArea . addSelectParams ( strSeekSign , DBConstants . TEMP_KEY_AREA , false , bIsQueryRecord , bUseCurrentValues , vParamList , false , false ) ; // Always add!? if ( sFilter . length ( ) > 0 ) { if ( strRecordset . indexOf ( " WHERE " ) == - 1 ) sFilter = " WHERE " + sFilter ; else sFilter = " AND " + sFilter ; } strRecordset = "SELECT" + strFields + " FROM " + strRecordset + sFilter + strSortParams ; return strRecordset ; }
Get the SQL Seek string .