public class Binder extends Object
| Constructor and Description |
|---|
Binder(TypeManager typeManager)
Set the PreparedStatement with which to bind variables to.
|
| Modifier and Type | Method and Description |
|---|---|
String |
bind(BindParams bindParams,
DataBind dataBind)
Bind the list of positionedParameters in BindParams.
|
void |
bind(BindParams bindParams,
DataBind dataBind,
StringBuilder bindLog)
Bind the list of positionedParameters in BindParams.
|
void |
bind(BindValues bindValues,
DataBind dataBind,
StringBuilder bindBuf)
Bind the values to the Prepared Statement.
|
void |
bind(List<BindParams.Param> list,
DataBind dataBind,
StringBuilder bindLog)
Bind the list of parameters..
|
void |
bindObject(DataBind dataBind,
Object value)
Bind an Object with unknown data type.
|
void |
bindObject(DataBind dataBind,
Object data,
int dbType)
bind a single value.
|
public Binder(TypeManager typeManager)
public void bind(BindValues bindValues, DataBind dataBind, StringBuilder bindBuf) throws SQLException
SQLExceptionpublic String bind(BindParams bindParams, DataBind dataBind) throws SQLException
SQLExceptionpublic void bind(BindParams bindParams, DataBind dataBind, StringBuilder bindLog) throws SQLException
SQLExceptionpublic void bind(List<BindParams.Param> list, DataBind dataBind, StringBuilder bindLog) throws SQLException
SQLExceptionpublic void bindObject(DataBind dataBind, Object value) throws SQLException
SQLExceptionpublic void bindObject(DataBind dataBind, Object data, int dbType) throws SQLException
Note that java.math.BigInteger is supported by converting it to a Long.
Note if we get a java.util.Date or java.util.Calendar then these have been anonymously passed in (UpdateSql etc). There is a global setting to convert then to a java.sql.Date or java.sql.Timestamp for binding. The default is that both are converted to java.sql.Timestamp.
SQLExceptionCopyright © 2014. All Rights Reserved.