@Override public boolean isJdbcBind() { if (m_target.isPlainValue()) { return false; } else if (m_target.isPlainSql()) { return false; } else { return true; } }
@Override public SqlBind produceSqlBindAndSetReplaceToken(ISqlStyle sqlStyle) throws ProcessingException { Object value = null; if (m_batchIndex < m_filteredRowIndices.length) { try { value = m_getterMethod.invoke( m_table, new Object[] {new Integer(m_filteredRowIndices[m_batchIndex])}); } catch (Throwable e) { throw new ProcessingException("unexpected exception", e); } } // if (m_target.isPlainValue()) { m_target.setReplaceToken(sqlStyle.toPlainText(value)); return null; } else if (m_target.isPlainSql()) { m_target.setReplaceToken("" + value); return null; } else { m_target.setReplaceToken("?"); return sqlStyle.buildBindFor(value, m_getterMethod.getReturnType()); } }