@Test public void testNoMetadataKeyForInputParam() throws Exception { JdbcObjectMetadataParameter param = new JdbcObjectMetadataParameter(); try { param.applyInputParam(message); } catch(JdbcParameterException ex) { } }
@Override public Object applyInputParam(AdaptrisMessage msg) throws JdbcParameterException { super.checkMetadataKey(); @SuppressWarnings("unchecked") Map<Object, Object> objectMetadata = (Map<Object, Object>) msg.getObjectHeaders(); if(!objectMetadata.containsKey(getMetadataKey())) throw new JdbcParameterException("Object metadata does not exist for key: " + this.getMetadataKey()); return normalize(objectMetadata.get(this.getMetadataKey())); }
JdbcObjectMetadataParameter extends JdbcMetadataParameter { @Override public Object applyInputParam(AdaptrisMessage msg) throws JdbcParameterException { super.checkMetadataKey(); @SuppressWarnings("unchecked") Map<Object, Object> objectMetadata = (Map<Object, Object>) msg.getObjectHeaders(); if(!objectMetadata.containsKey(getMetadataKey())) throw new JdbcParameterException("Object metadata does not exist for key: " + this.getMetadataKey()); return normalize(objectMetadata.get(this.getMetadataKey())); } }
JdbcObjectMetadataParameter extends JdbcMetadataParameter { @Override public Object applyInputParam(AdaptrisMessage msg) throws JdbcParameterException { super.checkMetadataKey(); @SuppressWarnings("unchecked") Map<Object, Object> objectMetadata = (Map<Object, Object>) msg.getObjectHeaders(); if(!objectMetadata.containsKey(getMetadataKey())) throw new JdbcParameterException("Object metadata does not exist for key: " + this.getMetadataKey()); return normalize(objectMetadata.get(this.getMetadataKey())); }  }
JdbcObjectMetadataParameter extends JdbcMetadataParameter { @Override public Object applyInputParam(AdaptrisMessage msg) throws JdbcParameterException { super.checkMetadataKey(); @SuppressWarnings("unchecked") Map<Object, Object> objectMetadata = (Map<Object, Object>) msg.getObjectHeaders(); if(!objectMetadata.containsKey(getMetadataKey())) throw new JdbcParameterException("Object metadata does not exist for key: " + this.getMetadataKey()); return normalize(objectMetadata.get(this.getMetadataKey())); }  @Override Object applyInputParam(AdaptrisMessage msg); @Override void applyOutputParam(Object dbValue, AdaptrisMessage msg); }
JdbcObjectMetadataParameter extends JdbcMetadataParameter { @Override public Object applyInputParam(AdaptrisMessage msg) throws JdbcParameterException { super.checkMetadataKey(); @SuppressWarnings("unchecked") Map<Object, Object> objectMetadata = (Map<Object, Object>) msg.getObjectHeaders(); if(!objectMetadata.containsKey(getMetadataKey())) throw new JdbcParameterException("Object metadata does not exist for key: " + this.getMetadataKey()); return normalize(objectMetadata.get(this.getMetadataKey())); }  @Override Object applyInputParam(AdaptrisMessage msg); @Override void applyOutputParam(Object dbValue, AdaptrisMessage msg);  }