com.ibatis.sqlmap.engine.scope
Class BaseScope

java.lang.Object
  extended bycom.ibatis.sqlmap.engine.scope.BaseScope
All Implemented Interfaces:
Scope
Direct Known Subclasses:
RequestScope, SessionScope

public abstract class BaseScope
extends java.lang.Object
implements Scope

Abstract implementation of the Scope interface


Constructor Summary
BaseScope()
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.Object key)
          Gets a named object out of the scope
 void reset()
          Clears all data out of the scope
 void setAttribute(java.lang.Object key, java.lang.Object value)
          Puts a named value into the scope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseScope

public BaseScope()
Method Detail

getAttribute

public java.lang.Object getAttribute(java.lang.Object key)
Description copied from interface: Scope
Gets a named object out of the scope

Specified by:
getAttribute in interface Scope
Parameters:
key - - the name of the object to get
Returns:
the object

setAttribute

public void setAttribute(java.lang.Object key,
                         java.lang.Object value)
Description copied from interface: Scope
Puts a named value into the scope

Specified by:
setAttribute in interface Scope
Parameters:
key - - the name of the object to put
value - - the value to associate with that name

reset

public void reset()
Description copied from interface: Scope
Clears all data out of the scope

Specified by:
reset in interface Scope