com.jenkov.mrpersister.scope
Interface IScopeBoundary

All Known Implementing Classes:
ConnectionScope, TransactionScope

public interface IScopeBoundary

Represents the boundaries of a scope. A scope is started, the scope action executed, and the scope ended. The object returned is the return value of the scope action.

Author:
Jakob Jenkov - Copyright 2005 Jenkov Development

Method Summary
 java.lang.Object scope(IScopeAction action)
          Executes the given action within this scope.
 

Method Detail

scope

java.lang.Object scope(IScopeAction action)
Executes the given action within this scope.

Parameters:
action - The action to be executed within this scope.
Returns:
The return value of the scope action's inScope() method.