Class MultiValueBind
- java.lang.Object
-
- io.ebeaninternal.server.persist.platform.MultiValueBind
-
- Direct Known Subclasses:
PostgresMultiValueBind
public class MultiValueBind extends Object
Default implementation for multi value help.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
MultiValueBind.BindOne
-
Constructor Summary
Constructors Constructor Description MultiValueBind()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bindMultiValues(DataBind dataBind, Collection<?> values, ScalarType<?> type, MultiValueBind.BindOne bindOne)
Default for multi values.String
getInExpression(boolean not, ScalarType<?> type, int size)
Appends the 'in' expression to the request.boolean
isSupported()
Defaults to not supported and using a bind value per element.boolean
isTypeSupported(int jdbcType)
Defaults to not supported and using a bind value per element.
-
-
-
Constructor Detail
-
MultiValueBind
public MultiValueBind()
-
-
Method Detail
-
isSupported
public boolean isSupported()
Defaults to not supported and using a bind value per element.
-
isTypeSupported
public boolean isTypeSupported(int jdbcType)
Defaults to not supported and using a bind value per element.
-
bindMultiValues
public void bindMultiValues(DataBind dataBind, Collection<?> values, ScalarType<?> type, MultiValueBind.BindOne bindOne) throws SQLException
Default for multi values. They are appended one by one.- Throws:
SQLException
-
getInExpression
public String getInExpression(boolean not, ScalarType<?> type, int size)
Appends the 'in' expression to the request. Must add leading & trailing space!
-
-