com.sas.framework.expojo
Class ModelExposerComponent

java.lang.Object
  extended by com.sas.framework.expojo.ModelExposerComponent
Direct Known Subclasses:
RepositoryComponent, ServiceComponent

public abstract class ModelExposerComponent
extends java.lang.Object

Superclass for all service and repository components that expose the model.


Field Summary
 ModelExposer modelExposer
           
protected  java.lang.String name
          Name of the component.
 
Constructor Summary
ModelExposerComponent()
           
 
Method Summary
abstract  java.lang.String getName()
          Overridden in derived classes to return the name of the model exposer component.
 PersistenceProvider getPersistenceProvider()
          Returns a ThreadLocal version of the appropriate PersistenceProvider.
 void init(ModelExposer modelExposer)
          Overridden in derived classes to allow initialization.
 void setModelExposer(ModelExposer iModelExposer)
          Sets the model exposer of which this component forms a part.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected transient java.lang.String name
Name of the component.


modelExposer

public transient ModelExposer modelExposer
Constructor Detail

ModelExposerComponent

public ModelExposerComponent()
Method Detail

init

public void init(ModelExposer modelExposer)
Overridden in derived classes to allow initialization.


getName

public abstract java.lang.String getName()
Overridden in derived classes to return the name of the model exposer component.


getPersistenceProvider

public PersistenceProvider getPersistenceProvider()
Returns a ThreadLocal version of the appropriate PersistenceProvider. Each thread that calls this will then end up with a unique connection to the persistence service with which to access the data store.


setModelExposer

public void setModelExposer(ModelExposer iModelExposer)
Sets the model exposer of which this component forms a part. There should be no need to ever call this explicitly. This is called automatically by the addService and addRepository methods when a model exposer component is added to the model exposer.