velosurf.sql
Class ReadOnlyMap

java.lang.Object
  extended by velosurf.sql.ReadOnlyMap
All Implemented Interfaces:
java.util.Map<java.lang.String,java.lang.Object>

public class ReadOnlyMap
extends java.lang.Object
implements java.util.Map<java.lang.String,java.lang.Object>

A wrapper implementing the Map interface for some objets having only getters. Only get(key) and keySet() are implemented.

Author:
Claude Brisson

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Field Summary
private  RowHandler source
           
 
Constructor Summary
ReadOnlyMap(RowHandler source)
          Constructor.
 
Method Summary
 void clear()
          Not implemented.
 boolean containsKey(java.lang.Object key)
          Not implemented.
 boolean containsValue(java.lang.Object value)
          Not implemented.
 java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> entrySet()
          Not implemented.
 java.lang.Object get(java.lang.Object key)
          Get a value by key.
 boolean isEmpty()
          Not implemented.
 java.util.Set<java.lang.String> keySet()
          Returns the set of keys.
 java.lang.Object put(java.lang.String query, java.lang.Object key)
          Not implemented.
 void putAll(java.util.Map<? extends java.lang.String,? extends java.lang.Object> map)
          Not implemented.
 java.lang.Object remove(java.lang.Object key)
          Not implemented.
 int size()
          Not implemented.
 java.util.Collection<java.lang.Object> values()
          Not implemented.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

source

private RowHandler source
Constructor Detail

ReadOnlyMap

public ReadOnlyMap(RowHandler source)
Constructor.

Parameters:
source - the wrapped row handler
Method Detail

size

public int size()
Not implemented.

Specified by:
size in interface java.util.Map<java.lang.String,java.lang.Object>
Returns:
0

isEmpty

public boolean isEmpty()
Not implemented.

Specified by:
isEmpty in interface java.util.Map<java.lang.String,java.lang.Object>
Returns:
false

containsKey

public boolean containsKey(java.lang.Object key)
Not implemented.

Specified by:
containsKey in interface java.util.Map<java.lang.String,java.lang.Object>
Parameters:
key -
Returns:
false

containsValue

public boolean containsValue(java.lang.Object value)
Not implemented.

Specified by:
containsValue in interface java.util.Map<java.lang.String,java.lang.Object>
Parameters:
value -
Returns:
false

get

public java.lang.Object get(java.lang.Object key)
Get a value by key.

Specified by:
get in interface java.util.Map<java.lang.String,java.lang.Object>
Parameters:
key - value key
Returns:
value

put

public java.lang.Object put(java.lang.String query,
                            java.lang.Object key)
Not implemented.

Specified by:
put in interface java.util.Map<java.lang.String,java.lang.Object>
Parameters:
query -
key -
Returns:
null

remove

public java.lang.Object remove(java.lang.Object key)
Not implemented.

Specified by:
remove in interface java.util.Map<java.lang.String,java.lang.Object>
Parameters:
key -
Returns:
null

putAll

public void putAll(java.util.Map<? extends java.lang.String,? extends java.lang.Object> map)
Not implemented.

Specified by:
putAll in interface java.util.Map<java.lang.String,java.lang.Object>
Parameters:
map -

clear

public void clear()
Not implemented.

Specified by:
clear in interface java.util.Map<java.lang.String,java.lang.Object>

keySet

public java.util.Set<java.lang.String> keySet()
Returns the set of keys.

Specified by:
keySet in interface java.util.Map<java.lang.String,java.lang.Object>
Returns:
the set of keys

values

public java.util.Collection<java.lang.Object> values()
Not implemented.

Specified by:
values in interface java.util.Map<java.lang.String,java.lang.Object>
Returns:
null

entrySet

public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> entrySet()
Not implemented.

Specified by:
entrySet in interface java.util.Map<java.lang.String,java.lang.Object>
Returns:
null


~ooOoo~