com.triactive.jdo.store
Interface PersistentMap

All Superinterfaces:
java.util.Map

public interface PersistentMap
extends java.util.Map

A map which is directly backed by the data store.

All operations on the map result in corresponding requests to the data store.

Author:
Mike Martin

Nested Class Summary
 
Nested classes inherited from class java.util.Map
java.util.Map.Entry
 
Method Summary
 boolean allowsNullValues()
          Indicates whether or not this map allows null values.
 boolean containsEntry(java.util.Map.Entry entry)
          Indicates whether or not this map contains the given entry.
 java.lang.Class getKeyType()
          Returns the type of keys in this map.
 java.lang.Class getValueType()
          Returns the type of values in this map.
 boolean removeEntry(java.util.Map.Entry entry)
          Removes the given entry from the map if it exists.
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Method Detail

getKeyType

public java.lang.Class getKeyType()
Returns the type of keys in this map.

Returns:
The type of keys in this map.

getValueType

public java.lang.Class getValueType()
Returns the type of values in this map.

Returns:
The type of values in this map.

allowsNullValues

public boolean allowsNullValues()
Indicates whether or not this map allows null values.

Returns:
true if null values are allowed, false otherwise.

containsEntry

public boolean containsEntry(java.util.Map.Entry entry)
Indicates whether or not this map contains the given entry.

Parameters:
entry - The entry to find.
Returns:
true if and only if the map contains an entry whose key and value both match the given entry.

removeEntry

public boolean removeEntry(java.util.Map.Entry entry)
Removes the given entry from the map if it exists.

Parameters:
entry - The entry to remove. Removal occurs if and only if the map contains an entry whose key and value both match the given entry.
Returns:
true if the map was modified, false otherwise.


Copyright © 2001-2007 The TJDO Project All Rights Reserved.