Revision 44748 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.db/org.gvsig.fmap.dal.db.jdbc/src/main/java/org/gvsig/fmap/dal/store/jdbc2/spi/JDBCHelperBase.java
JDBCHelperBase.java | ||
---|---|---|
562 | 562 |
public boolean isThreadSafe() { |
563 | 563 |
return true; |
564 | 564 |
} |
565 |
|
|
565 |
|
|
566 | 566 |
@Override |
567 |
public void replaceForeingValueFunction(
|
|
567 |
public void processSpecialFunctions(
|
|
568 | 568 |
SQLBuilder sqlbuilder, |
569 | 569 |
FeatureType type, |
570 | 570 |
List<String> extra_column_names) { |
571 |
replaceForeingValueFunction(sqlbuilder, type, extra_column_names); |
|
572 |
replaceExistsFunction(sqlbuilder, type, extra_column_names); |
|
573 |
} |
|
574 |
|
|
575 |
private void replaceExistsFunction( |
|
576 |
SQLBuilder sqlbuilder, |
|
577 |
FeatureType type, |
|
578 |
List<String> extra_column_names) { |
|
579 |
// TODO: replaceExistsFunction |
|
580 |
} |
|
581 |
|
|
582 |
private void replaceForeingValueFunction( |
|
583 |
SQLBuilder sqlbuilder, |
|
584 |
FeatureType type, |
|
585 |
List<String> extra_column_names) { |
|
571 | 586 |
try { |
572 | 587 |
// See test SQLBuilderTest->testForeingValue() |
573 | 588 |
final ExpressionBuilder where = sqlbuilder.select().where(); |
... | ... | |
603 | 618 |
if (function.parameters().size() != 1) { |
604 | 619 |
return; |
605 | 620 |
} |
606 |
ExpressionBuilder.Value arg = function.parameters().get(0); |
|
621 |
ExpressionBuilder.Value arg = function.parameters().get(0).getValue();
|
|
607 | 622 |
if (!(arg instanceof ExpressionBuilder.Constant)) { |
608 | 623 |
return; |
609 | 624 |
} |
Also available in: Unified diff