velosurf.sql
Class ReadOnlyWrapper

java.lang.Object
  extended by velosurf.sql.ReadOnlyWrapper
All Implemented Interfaces:
ReadOnlyMap

public class ReadOnlyWrapper
extends java.lang.Object
implements ReadOnlyMap

This class encapsulates a Map as a DataAccessor

Author:
Claude Brisson

Field Summary
protected  java.util.Map innerMap
          the wrapped Map
 
Constructor Summary
ReadOnlyWrapper(java.util.Map innerMap)
          builds a new MapDataAccessor
 
Method Summary
 java.lang.Object get(java.lang.Object key)
          get the property named key in the wrapped Map
 java.util.Set keySet()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

innerMap

protected java.util.Map innerMap
the wrapped Map

Constructor Detail

ReadOnlyWrapper

public ReadOnlyWrapper(java.util.Map innerMap)
builds a new MapDataAccessor

Parameters:
innerMap - the Map object to encapsulate
Method Detail

get

public java.lang.Object get(java.lang.Object key)
get the property named key in the wrapped Map

Specified by:
get in interface ReadOnlyMap
Parameters:
key - the name of the property
Returns:
the property value or null if not found
See Also:
ReadOnlyMap.get(java.lang.Object)

keySet

public java.util.Set keySet()
                     throws java.sql.SQLException
Specified by:
keySet in interface ReadOnlyMap
Throws:
java.sql.SQLException


~ooOoo~