99 */
1010package net .sf .jsqlparser .expression .operators .relational ;
1111
12+ import java .util .Arrays ;
13+ import java .util .Collection ;
14+ import java .util .Iterator ;
15+ import java .util .Optional ;
1216import net .sf .jsqlparser .expression .Expression ;
1317import net .sf .jsqlparser .expression .ExpressionVisitor ;
1418import net .sf .jsqlparser .expression .JdbcNamedParameter ;
1721import net .sf .jsqlparser .parser .ASTNodeAccessImpl ;
1822import net .sf .jsqlparser .schema .Column ;
1923
20- import java .util .Arrays ;
21- import java .util .Collection ;
22- import java .util .Iterator ;
23- import java .util .Optional ;
24-
2524public class FullTextSearch extends ASTNodeAccessImpl implements Expression {
2625
2726 private ExpressionList <Column > _matchColumns ;
@@ -44,16 +43,20 @@ public Expression getAgainstValue() {
4443 return this ._againstValue ;
4544 }
4645
47- public void setAgainstValue (StringValue val ) {
46+ public void setAgainstValue (Expression val ) {
4847 this ._againstValue = val ;
4948 }
5049
50+ public void setAgainstValue (StringValue val ) {
51+ setAgainstValue ((Expression ) val );
52+ }
53+
5154 public void setAgainstValue (JdbcNamedParameter val ) {
52- this . _againstValue = val ;
55+ setAgainstValue (( Expression ) val ) ;
5356 }
5457
5558 public void setAgainstValue (JdbcParameter val ) {
56- this . _againstValue = val ;
59+ setAgainstValue (( Expression ) val ) ;
5760 }
5861
5962 public String getSearchModifier () {
@@ -92,6 +95,10 @@ public FullTextSearch withMatchColumns(ExpressionList<Column> matchColumns) {
9295 }
9396
9497 public FullTextSearch withAgainstValue (StringValue againstValue ) {
98+ return withAgainstValue ((Expression ) againstValue );
99+ }
100+
101+ public FullTextSearch withAgainstValue (Expression againstValue ) {
95102 this .setAgainstValue (againstValue );
96103 return this ;
97104 }
0 commit comments