|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.farrago.FarragoMetadataFactoryImpl net.sf.farrago.catalog.FarragoReposImpl net.sf.farrago.catalog.FarragoMdrReposImpl
public class FarragoMdrReposImpl
Implementation of FarragoRepos
using a MDR repository.
Nested Class Summary | |
---|---|
private class |
FarragoMdrReposImpl.FactoryImpl
|
protected class |
FarragoMdrReposImpl.FarragoMemFactory
|
Field Summary | |
---|---|
private String |
currentConfigMofId
MofId for current instance of FemFarragoConfig. |
private FennelPackage |
fennelPackage
Fennel package in repository. |
private EnkiMDRepository |
mdrRepository
The underlying MDR repository. |
protected FarragoMdrReposImpl.FarragoMemFactory |
memFactory
|
private FarragoModelLoader |
modelLoader
The loader for the underlying MDR repository. |
private static Logger |
tracer
|
private FarragoPackage |
transientFarragoPackage
Root package in transient repository. |
Fields inherited from class net.sf.farrago.catalog.FarragoReposImpl |
---|
allocations |
Constructor Summary | |
---|---|
FarragoMdrReposImpl(FarragoAllocationOwner owner,
FarragoModelLoader modelLoader,
boolean userRepos)
Opens a Farrago repository. |
Method Summary | |
---|---|
void |
beginReposSession()
Begins a session on the metadata repository. |
void |
beginReposTxn(boolean writable)
Begins a metadata transaction on the repository. |
private void |
checkModelTimestamp(String extentName)
|
void |
closeAllocation()
Closes this object. |
void |
endReposSession()
Ends a session on the metadata repository. |
void |
endReposTxn(boolean rollback)
Ends a metadata transaction on the repository. |
FemFarragoConfig |
getCurrentConfig()
|
EnkiMDRepository |
getEnkiMdrRepos()
Returns an EnkiMDRepository storing this Farrago repository. |
FennelPackage |
getFennelPackage()
|
MDRepository |
getMdrRepos()
|
FarragoModelLoader |
getModelLoader()
Returns the FarragoModelLoader for this repos. |
FarragoPackage |
getTransientFarragoPackage()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Logger tracer
private final FarragoPackage transientFarragoPackage
private final FennelPackage fennelPackage
private FarragoModelLoader modelLoader
private final EnkiMDRepository mdrRepository
private final String currentConfigMofId
protected FarragoMdrReposImpl.FarragoMemFactory memFactory
Constructor Detail |
---|
public FarragoMdrReposImpl(FarragoAllocationOwner owner, FarragoModelLoader modelLoader, boolean userRepos)
Method Detail |
---|
private void checkModelTimestamp(String extentName)
public MDRepository getMdrRepos()
public EnkiMDRepository getEnkiMdrRepos()
FarragoRepos
FarragoRepos.getMdrRepos()
.
getEnkiMdrRepos
in interface FarragoRepos
getEnkiMdrRepos
in class FarragoReposImpl
public FarragoPackage getTransientFarragoPackage()
public FennelPackage getFennelPackage()
getFennelPackage
in interface FarragoMetadataFactory
getFennelPackage
in class FarragoMetadataFactoryImpl
public FemFarragoConfig getCurrentConfig()
public void closeAllocation()
ClosableAllocation
public void beginReposSession()
FarragoRepos
beginReposSession
in interface FarragoRepos
beginReposSession
in class FarragoReposImpl
FarragoRepos.newTxnContext(boolean)
public void beginReposTxn(boolean writable)
FarragoRepos
FarragoReposTxnContext
instead.
writable
- true for read/write; false for read-onlypublic void endReposTxn(boolean rollback)
FarragoRepos
rollback
- true to rollback; false to commitpublic void endReposSession()
FarragoRepos
endReposSession
in interface FarragoRepos
endReposSession
in class FarragoReposImpl
FarragoRepos.newTxnContext(boolean)
public FarragoModelLoader getModelLoader()
FarragoRepos
getModelLoader
in interface FarragoRepos
getModelLoader
in class FarragoReposImpl
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |