#1186 - Tidy, remove H2MultiValueBind for now

This commit is contained in:
rob bygrave committed 2017-10-31 22:14:01 +13:00
1 parent c00b1849ef
commit fb8db14f3a
2 files changed
+1 -30

No files matched your search

@@ -1,23 +0,0 @@
package io.ebeaninternal.server.persist.platform;
import io.ebeaninternal.server.type.ScalarType;
/**
* Multi value binder that uses SqlServers Table-value parameters
* @author Roland Praml, FOCONIS AG
*
*/
public class H2MultiValueBind extends AbstractMultiValueBind {
@Override
public String getInExpression(boolean not, ScalarType<?> type, int size) {
String arrayType = getArrayType(type.getJdbcType());
if (arrayType == null) {
return super.getInExpression(not, type, size);
} else {
StringBuilder sb = new StringBuilder(50);
sb.append(" in (select * from table(x ").append(arrayType).append(" = ?)) ");
return sb.toString();
}
}
}