mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-17 22:56:28 +00:00
#1186 - ENH: Support using TableValues / Array for select prop in (?) queries
This commit is contained in:
1 parent
89dac3820b
commit
6e62b72fb9
43 files changed
+756
-131
No files matched your search
@@ -331,7 +331,7 @@ public class CQueryEngine {
|
||||
* deemed to be a be a paging query - check that the order by contains the id
|
||||
* property to ensure unique row ordering for predicable paging but only in
|
||||
* case, this is not a distinct query
|
||||
*
|
||||
*
|
||||
* @param request
|
||||
*/
|
||||
private <T> void prepareForPaging(OrmQueryRequest<T> request) {
|
||||
|
||||
@@ -10,6 +10,7 @@ import io.ebeaninternal.api.SpiTransaction;
|
||||
import io.ebeaninternal.server.core.OrmQueryEngine;
|
||||
import io.ebeaninternal.server.core.OrmQueryRequest;
|
||||
import io.ebeaninternal.server.deploy.BeanDescriptor;
|
||||
import io.ebeaninternal.server.persist.Binder;
|
||||
|
||||
import javax.persistence.PersistenceException;
|
||||
import java.sql.SQLException;
|
||||
@@ -28,11 +29,14 @@ public class DefaultOrmQueryEngine implements OrmQueryEngine {
|
||||
*/
|
||||
private final CQueryEngine queryEngine;
|
||||
|
||||
private final Binder binder;
|
||||
|
||||
/**
|
||||
* Create the Finder.
|
||||
*/
|
||||
public DefaultOrmQueryEngine(CQueryEngine queryEngine) {
|
||||
public DefaultOrmQueryEngine(CQueryEngine queryEngine, Binder binder) {
|
||||
this.queryEngine = queryEngine;
|
||||
this.binder = binder;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -40,6 +44,11 @@ public class DefaultOrmQueryEngine implements OrmQueryEngine {
|
||||
return queryEngine.translate(request, bindLog, sql, e);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isMultiValueSupported(Class<?> cls) {
|
||||
return binder.isMultiValueSupported(cls);
|
||||
}
|
||||
|
||||
/**
|
||||
* Flushes the jdbc batch by default unless explicitly turned off on the transaction.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user