org.eigenbase.util
Interface ClosableAllocationOwner

All Superinterfaces:
ClosableAllocation
All Known Subinterfaces:
FarragoAllocationOwner, FarragoSessionExecutableStmt, FarragoSessionRuntimeContext, FarragoSessionStmtValidator
All Known Implementing Classes:
CompoundClosableAllocation, DdlValidator, FarragoCompoundAllocation, FarragoDatabase, FarragoDataWrapperCache, FarragoDbSession, FarragoDbSessionIndexMap, FarragoDbSingleton, FarragoExecutableExplainStmt, FarragoExecutableFennelStmt, FarragoExecutableJavaStmt, FarragoExecutableStmtImpl, FarragoMdrTestContext, FarragoPluginCache, FarragoRuntimeContext, FarragoRuntimeContext.StreamOwner, FarragoSequenceAccessor, FarragoStmtValidator, LucidDbRuntimeContext, MockSessionStmtValidator

public interface ClosableAllocationOwner
extends ClosableAllocation

ClosableAllocationOwner represents an object which can take ownership of ClosableAllocations and guarantee that they will be cleaned up correctly when its own closeAllocation() is called.

Version:
$Id: //open/dev/farrago/src/org/eigenbase/util/ClosableAllocationOwner.java#6 $
Author:
John V. Sichi

Method Summary
 void addAllocation(ClosableAllocation allocation)
          Assigns ownership of a ClosableAllocation to this owner.
 
Methods inherited from interface org.eigenbase.util.ClosableAllocation
closeAllocation
 

Method Detail

addAllocation

void addAllocation(ClosableAllocation allocation)
Assigns ownership of a ClosableAllocation to this owner.

Parameters:
allocation - the ClosableAllocation to take over