Class PostgresMultiValueBind
- java.lang.Object
-
- io.ebeaninternal.server.persist.platform.MultiValueBind
-
- io.ebeaninternal.server.persist.platform.PostgresMultiValueBind
-
public class PostgresMultiValueBind extends MultiValueBind
Multi value binder that uses Postgres Array.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.ebeaninternal.server.persist.platform.MultiValueBind
MultiValueBind.BindOne
-
-
Constructor Summary
Constructors Constructor Description PostgresMultiValueBind()
-
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
-
PostgresMultiValueBind
public PostgresMultiValueBind()
-
-
Method Detail
-
getInExpression
public String getInExpression(boolean not, ScalarType<?> type, int size)
Description copied from class:MultiValueBind
Appends the 'in' expression to the request. Must add leading & trailing space!- Overrides:
getInExpression
in classMultiValueBind
-
isSupported
public boolean isSupported()
Description copied from class:MultiValueBind
Defaults to not supported and using a bind value per element.- Overrides:
isSupported
in classMultiValueBind
-
isTypeSupported
public boolean isTypeSupported(int jdbcType)
Description copied from class:MultiValueBind
Defaults to not supported and using a bind value per element.- Overrides:
isTypeSupported
in classMultiValueBind
-
bindMultiValues
public void bindMultiValues(DataBind dataBind, Collection<?> values, ScalarType<?> type, MultiValueBind.BindOne bindOne) throws SQLException
Description copied from class:MultiValueBind
Default for multi values. They are appended one by one.- Overrides:
bindMultiValues
in classMultiValueBind
- Throws:
SQLException
-
-