Package com.saperion.query.fulltext
Class ContainsClauseConverterMSSQL
java.lang.Object
com.saperion.query.fulltext.ContainsClauseConverterMSSQL
Util class that converts the given jcr query with a contains clause to SQL contains statement.
In order to get the list of the SQL CONTAINS clauses, instantiate the
In order to get the list of the SQL CONTAINS clauses, instantiate the
ConvertJCRFullText2SQL
instance with the jcr query string and call the
containsToSQL() method;- Author:
- lav
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionperforms a convertion from the jcr's contains statement to the SQL CONTAINS statement.protected String
convertColumnNames
(String incomingQuery) protected String
fullTextContainsClauseConverter
(String incomingQuery) Converts the fulltext clause.protected String
modifyColumnName
(String containsSubstring)
-
Constructor Details
-
Method Details
-
containsToSQL
performs a convertion from the jcr's contains statement to the SQL CONTAINS statement. (Works with java regular expressions).- Returns:
- the SQL statement which has been translated from the incoming jcr query
- Throws:
Exception
- exception by the converting the contains clause to sql
-
fullTextContainsClauseConverter
Converts the fulltext clause.- Parameters:
incomingQuery
- Incomming query- Returns:
- Converted query
- Throws:
SaRMISystemException
- exception raised at converting the contains clause
-
convertColumnNames
- Throws:
SaRMISystemException
-
modifyColumnName
-