use of com.servoy.j2db.query.IPlaceholderKey in project servoy-client by Servoy.
the class SQLGenerator method isDynamicPKSetCondition.
static boolean isDynamicPKSetCondition(ISQLCondition condition) {
if (condition instanceof SetCondition) {
Object values = ((SetCondition) condition).getValues();
if (!(values instanceof Placeholder)) {
return false;
}
IPlaceholderKey key = ((Placeholder) values).getKey();
if (!(key instanceof TablePlaceholderKey)) {
return false;
}
if (!SQLGenerator.PLACEHOLDER_FOUNDSET_PKS.equals(((TablePlaceholderKey) key).getName())) {
return false;
}
return true;
}
return false;
}
Aggregations