java.lang.Object
io.ebeaninternal.server.persist.Binder
Binds bean values to a PreparedStatement.
-
Constructor Summary
ConstructorsConstructorDescriptionBinder(TypeManager typeManager, SpiLogManager logManager, int asOfBindCount, boolean asOfStandardsBased, DbExpressionHandler dbExpressionHandler, DataTimeZone dataTimeZone, io.ebeaninternal.server.persist.platform.MultiValueBind multiValueBind) -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(BindParams bindParams, io.ebeaninternal.server.bind.DataBind dataBind, StringBuilder bindLog) Bind the list of positionedParameters in BindParams.bind(BindParams bindParams, PreparedStatement statement, Connection connection) Bind the parameters to the preparedStatement returning the bind log.voidbindObject(io.ebeaninternal.server.bind.DataBind dataBind, Object value) Bind an Object with unknown data type.createDataReader(ResultSet resultSet) io.ebeaninternal.server.bind.DataBinddataBind(PreparedStatement stmt, Connection connection) Create and return a DataBind for the statement.intReturn the bind count per predicate for 'As Of' query predicates.Return the DB platform specific expression handler (for JSON and ARRAY types).getInExpression(boolean not, List<Object> bindValues) Return the SQL in clause taking into account Multi-value support.ScalarType<?> getScalarType(Class<?> clazz) booleanReturn true if the 'as of' history support is SQL2011 standards based.booleanReturn true if bind log is enabled.booleanisMultiValueSupported(Class<?> cls) Return true if MultiValue binding is supported for the given type.
-
Constructor Details
-
Binder
public Binder(TypeManager typeManager, SpiLogManager logManager, int asOfBindCount, boolean asOfStandardsBased, DbExpressionHandler dbExpressionHandler, DataTimeZone dataTimeZone, io.ebeaninternal.server.persist.platform.MultiValueBind multiValueBind)
-
-
Method Details
-
isEnableBindLog
public boolean isEnableBindLog()Return true if bind log is enabled. -
getAsOfBindCount
public int getAsOfBindCount()Return the bind count per predicate for 'As Of' query predicates. -
isAsOfStandardsBased
public boolean isAsOfStandardsBased()Return true if the 'as of' history support is SQL2011 standards based. -
bind
public String bind(BindParams bindParams, PreparedStatement statement, Connection connection) throws SQLException Bind the parameters to the preparedStatement returning the bind log.- Throws:
SQLException
-
bind
public void bind(BindParams bindParams, io.ebeaninternal.server.bind.DataBind dataBind, StringBuilder bindLog) throws SQLException Bind the list of positionedParameters in BindParams.- Throws:
SQLException
-
isMultiValueSupported
Return true if MultiValue binding is supported for the given type. -
getScalarType
-
bindObject
public void bindObject(io.ebeaninternal.server.bind.DataBind dataBind, Object value) throws SQLException Bind an Object with unknown data type.- Throws:
SQLException
-
getInExpression
Return the SQL in clause taking into account Multi-value support. -
getDbExpressionHandler
Return the DB platform specific expression handler (for JSON and ARRAY types). -
dataBind
public io.ebeaninternal.server.bind.DataBind dataBind(PreparedStatement stmt, Connection connection) Create and return a DataBind for the statement. -
createDataReader
-