com.jenkov.mrpersister.itf.mapping
Interface IKeyValue

All Known Implementing Classes:
KeyValue

public interface IKeyValue

This interface represents a concrete compound key. You can add values for each column in the key.

Author:
Jakob Jenkov - Copyright 2005 Jenkov Development

Method Summary
 void addColumnValue(java.lang.String column, java.lang.Object value)
          Adds a value to a column of this key.
 java.lang.Object getColumnValue(java.lang.String column)
          Returns the value for the given column.
 java.util.Map getColumnValues()
          Returns a map of all column values in this key value.
 void removeColumnValue(java.lang.String column)
          Removes a column value from this key value.
 

Method Detail

addColumnValue

void addColumnValue(java.lang.String column,
                    java.lang.Object value)
Adds a value to a column of this key.

Parameters:
column - The column to specify the value of.
value - The column value.

removeColumnValue

void removeColumnValue(java.lang.String column)
Removes a column value from this key value.

Parameters:
column - The column to remove the value of.

getColumnValue

java.lang.Object getColumnValue(java.lang.String column)
Returns the value for the given column. If there is no value for that column null is returned.

Parameters:
column - The column to return the value of.
Returns:
The column value if present. Otherwise null.

getColumnValues

java.util.Map getColumnValues()
Returns a map of all column values in this key value.

Returns:
A map of all column values in this key value.