public class DefaultBinderConfiguration extends java.lang.Object implements BinderConfiguration
BinderConfiguration
, used by default by DbSetup
.Modifier and Type | Field and Description |
---|---|
static DefaultBinderConfiguration |
INSTANCE
A shareable, reusable instance of this class.
|
Modifier | Constructor and Description |
---|---|
protected |
DefaultBinderConfiguration()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Binder |
getBinder(java.sql.ParameterMetaData metadata,
int param)
Uses the parameter type of the given parameter and returns the following Binders depending on the type
got from the metadata.
|
java.lang.String |
toString() |
public static final DefaultBinderConfiguration INSTANCE
protected DefaultBinderConfiguration()
public Binder getBinder(java.sql.ParameterMetaData metadata, int param) throws java.sql.SQLException
Binders.defaultBinder()
Binders.stringBinder()
Binders.dateBinder()
Binders.timeBinder()
Binders.timestampBinder()
Binders.integerBinder()
Binders.decimalBinder()
Binders.defaultBinder()
getBinder
in interface BinderConfiguration
metadata
- the metadata allowing to decide which Binder to return. null
if the Insert has been
configured to not use metadata, or if the JDBC driver returned null metadata, or the JDBC driver threw a
SQLException when asked for the metadataparam
- the param for which a binder is requestedjava.sql.SQLException
- if a SQLException occurs while using the metadatapublic java.lang.String toString()
toString
in class java.lang.Object