/** {@inheritDoc} */ public final void bind(PreparedStatement st, J value, int index, WrapperOptions options) throws SQLException { if (value == null) { if (LOG.isTraceEnabled()) { LOG.trace( String.format( NULL_BIND_MSG_TEMPLATE, index, JdbcTypeNameMapper.getTypeName(sqlDescriptor.getSqlType()))); } st.setNull(index, sqlDescriptor.getSqlType()); } else { if (LOG.isTraceEnabled()) { LOG.trace( String.format( BIND_MSG_TEMPLATE, index, JdbcTypeNameMapper.getTypeName(sqlDescriptor.getSqlType()), getJavaDescriptor().extractLoggableRepresentation(value))); } doBind(st, value, index, options); } }
public void addDescriptor(SqlTypeDescriptor sqlTypeDescriptor) { descriptorMap.put(sqlTypeDescriptor.getSqlType(), sqlTypeDescriptor); }