* @param key Key to set
* @param value Value to set or null
*/
- protected void addToDataSet (final String key, final String value) {
+ protected void addToDataSet (final String key, final Object value) {
// Trace message
this.getLogger().trace(MessageFormat.format("key={0},value={1} - CALLED!", key, value)); //NOI18N
this.getLogger().trace("EXIT!"); //NOI18N
}
- /**
- * Adds given key-value pair for any numbers to dataset instance. Both must not be null.
- *
- * @param key Key to set
- * @param value Value to set
- */
- protected void addToDataSet (final String key, final Number value) {
- // Trace message
- this.getLogger().trace(MessageFormat.format("key={0},value={1} - CALLED!", key, value)); //NOI18N
-
- // Is key/value null?
- if (key == null) {
- // Key is null
- throw new NullPointerException("key is null"); //NOI18N
- } else if (value == null) {
- // Key is null
- throw new NullPointerException("value is null"); //NOI18N
- }
-
- // Add it to map
- this.dataset.put(key, value);
-
- // Trace message
- this.getLogger().trace("EXIT!"); //NOI18N
- }
-
- /**
- * Adds given key-value pair for any boolean to dataset instance. Both must not be null.
- *
- * @param key Key to set
- * @param value Value to set
- */
- protected void addToDataSet (final String key, final Boolean value) {
- // Trace message
- this.getLogger().trace(MessageFormat.format("key={0},value={1} - CALLED!", key, value)); //NOI18N
-
- // Is key/value null?
- if (key == null) {
- // Key is null
- throw new NullPointerException("key is null"); //NOI18N
- } else if (value == null) {
- // Key is null
- throw new NullPointerException("value is null"); //NOI18N
- }
-
- // Add it to map
- this.dataset.put(key, value);
-
- // Trace message
- this.getLogger().trace("EXIT!"); //NOI18N
- }
-
/**
* Clears dataset instance. You should call this before you use it for
* inserting data into your database.