private void setParameterObject(final PreparedStatement preparedStatement, final int parameterIndex,
			final Object param, final BindParameterMapperManager parameterMapperManager) throws SQLException {
		//JDBCの受け付ける型に変換
		Object jdbcParam = parameterMapperManager.toJdbc(param, preparedStatement.getConnection());
		if (Objects.equals(sqlType, SQL_TYPE_NOT_SET)) {
			if (jdbcParam instanceof java.sql.Array) {
				preparedStatement.setArray(parameterIndex, (java.sql.Array) jdbcParam);
			} else {
				preparedStatement.setObject(parameterIndex, jdbcParam);
			}
		} else {
			int targetSqlType = sqlType.getVendorTypeNumber();//各JDBCの対応状況が怪しいのでintで扱う
			if (jdbcParam != null) {
				if (jdbcParam instanceof java.sql.Array) {
					preparedStatement.setArray(parameterIndex, (java.sql.Array) jdbcParam);
				} else {
					preparedStatement.setObject(parameterIndex, jdbcParam, targetSqlType);
				}
			} else {
				preparedStatement.setNull(parameterIndex, targetSqlType);
			}
		}
	}
private void setParameterObject ( final PreparedStatement preparedStatement , final int parameterIndex , final Object param , final BindParameterMapperManager parameterMapperManager ) throws SQLException { Object jdbcParam = parameterMapperManager . toJdbc ( param , preparedStatement . getConnection ( ) ) ; if ( Objects . equals ( sqlType , SQL_TYPE_NOT_SET ) ) { if ( jdbcParam instanceof java . sql . Array ) { preparedStatement . setArray ( parameterIndex , ( java . sql . Array ) jdbcParam ) ; } else { preparedStatement . setObject ( parameterIndex , jdbcParam ) ; } } else { int targetSqlType = sqlType . getVendorTypeNumber ( ) ; if ( jdbcParam != null ) { if ( jdbcParam instanceof java . sql . Array ) { preparedStatement . setArray ( parameterIndex , ( java . sql . Array ) jdbcParam ) ; } else { preparedStatement . setObject ( parameterIndex , jdbcParam , targetSqlType ) ; } } else { preparedStatement . setNull ( parameterIndex , targetSqlType ) ; } } }
PreparedStatementへのパラメータセット処理

@param preparedStatement PreparedStatement
@param parameterIndex index
@param param オリジナルパラメータ
@param parameterMapperManager パラメータ変換管理クラス
@throws SQLException SQL例外