net.sf.farrago.test
Class FarragoMdrTestContext

java.lang.Object
  extended by org.eigenbase.util.CompoundClosableAllocation
      extended by net.sf.farrago.util.FarragoCompoundAllocation
          extended by net.sf.farrago.test.FarragoMdrTestContext
All Implemented Interfaces:
FarragoAllocation, FarragoAllocationOwner, ClosableAllocation, ClosableAllocationOwner

public class FarragoMdrTestContext
extends FarragoCompoundAllocation

FarragoMdrTestContext holds information needed by a test UDR which accesses catalog metadata via an MDR foreign server.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/test/FarragoMdrTestContext.java#5 $
Author:
John Sichi

Field Summary
private  FarragoDatabase db
           
private  FemDataServer femServer
           
private  MDRepository mdrRepos
           
private  MedMdrDataServer mdrServer
           
private  JmiModelGraph modelGraph
           
private  JmiModelView modelView
           
private  FarragoObjectCache objCache
           
private  RefPackage refPackage
           
private  FarragoSession session
           
private  FarragoDataWrapperCache wrapperCache
           
 
Fields inherited from class org.eigenbase.util.CompoundClosableAllocation
allocations
 
Constructor Summary
FarragoMdrTestContext()
           
 
Method Summary
 FarragoDatabase getDatabase()
           
 FemDataServer getFemDataServer()
           
 MDRepository getMdrRepos()
           
 MedMdrDataServer getMedDataServer()
           
 JmiModelGraph getModelGraph()
           
 JmiModelView getModelView()
           
 RefPackage getRefPackage()
           
 FarragoSession getSession()
           
 void init(String foreignServerName)
           
 
Methods inherited from class org.eigenbase.util.CompoundClosableAllocation
addAllocation, closeAllocation, forgetAllocation, hasAllocations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eigenbase.util.ClosableAllocationOwner
addAllocation
 
Methods inherited from interface org.eigenbase.util.ClosableAllocation
closeAllocation
 
Methods inherited from interface org.eigenbase.util.ClosableAllocation
closeAllocation
 

Field Detail

session

private FarragoSession session

db

private FarragoDatabase db

objCache

private FarragoObjectCache objCache

wrapperCache

private FarragoDataWrapperCache wrapperCache

femServer

private FemDataServer femServer

mdrServer

private MedMdrDataServer mdrServer

refPackage

private RefPackage refPackage

modelGraph

private JmiModelGraph modelGraph

modelView

private JmiModelView modelView

mdrRepos

private MDRepository mdrRepos
Constructor Detail

FarragoMdrTestContext

public FarragoMdrTestContext()
Method Detail

init

public void init(String foreignServerName)
          throws Exception
Throws:
Exception

getSession

public FarragoSession getSession()

getDatabase

public FarragoDatabase getDatabase()

getFemDataServer

public FemDataServer getFemDataServer()

getMedDataServer

public MedMdrDataServer getMedDataServer()

getRefPackage

public RefPackage getRefPackage()

getModelGraph

public JmiModelGraph getModelGraph()

getModelView

public JmiModelView getModelView()

getMdrRepos

public MDRepository getMdrRepos()