@Test public void testNoMetadataKeyForInputParam() throws Exception { message.removeMetadata(metadata); JdbcMetadataParameter param = new JdbcMetadataParameter(); try { param.applyInputParam(message); } catch(JdbcParameterException ex) { } }
@Override public Object applyInputParam(AdaptrisMessage msg) throws JdbcParameterException { this.checkMetadataKey(); if (!msg.headersContainsKey(this.getMetadataKey())) throw new JdbcParameterException("Metadata does not exist for key: " + this.getMetadataKey()); return normalize(msg.getMetadataValue(getMetadataKey())); }
JdbcMetadataParameter extends NullableParameter { @Override public Object applyInputParam(AdaptrisMessage msg) throws JdbcParameterException { this.checkMetadataKey(); if (!msg.headersContainsKey(this.getMetadataKey())) throw new JdbcParameterException("Metadata does not exist for key: " + this.getMetadataKey()); return normalize(msg.getMetadataValue(getMetadataKey())); } }
JdbcMetadataParameter extends NullableParameter { @Override public Object applyInputParam(AdaptrisMessage msg) throws JdbcParameterException { this.checkMetadataKey(); if (!msg.headersContainsKey(this.getMetadataKey())) throw new JdbcParameterException("Metadata does not exist for key: " + this.getMetadataKey()); return normalize(msg.getMetadataValue(getMetadataKey())); }  }
JdbcMetadataParameter extends NullableParameter { @Override public Object applyInputParam(AdaptrisMessage msg) throws JdbcParameterException { this.checkMetadataKey(); if (!msg.headersContainsKey(this.getMetadataKey())) throw new JdbcParameterException("Metadata does not exist for key: " + this.getMetadataKey()); return normalize(msg.getMetadataValue(getMetadataKey())); }  @Override Object applyInputParam(AdaptrisMessage msg); @Override void applyOutputParam(Object dbValue, AdaptrisMessage msg); String getMetadataKey(); void setMetadataKey(String metadataKey); }
JdbcMetadataParameter extends NullableParameter { @Override public Object applyInputParam(AdaptrisMessage msg) throws JdbcParameterException { this.checkMetadataKey(); if (!msg.headersContainsKey(this.getMetadataKey())) throw new JdbcParameterException("Metadata does not exist for key: " + this.getMetadataKey()); return normalize(msg.getMetadataValue(getMetadataKey())); }  @Override Object applyInputParam(AdaptrisMessage msg); @Override void applyOutputParam(Object dbValue, AdaptrisMessage msg); String getMetadataKey(); void setMetadataKey(String metadataKey);  }