|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FarragoRepos
FarragoRepos represents a loaded repository containing Farrago metadata.
| Method Summary | ||
|---|---|---|
void |
addResourceBundles(List<ResourceBundle> bundles)
Defines localization for this repository. |
|
|
allOfClass(Class<T> clazz)
Returns a collection of all instances of a given class. |
|
|
allOfType(Class<T> clazz)
Returns a collection of all instances of a given type. |
|
void |
beginReposSession()
Begins a session on the metadata repository. |
|
void |
beginReposTxn(boolean writable)
Begins a metadata transaction on the repository. |
|
void |
endReposSession()
Ends a session on the metadata repository. |
|
void |
endReposTxn(boolean rollback)
Ends a metadata transaction on the repository. |
|
String |
expandProperties(String value)
Returns the input string with property values substituted for variables of the form ${VARNAME}, such as that done by FarragoProperties.expandProperties(String).. |
|
CwmCatalog |
getCatalog(String catalogName)
Looks up a catalog by name. |
|
FemFarragoConfig |
getCurrentConfig()
|
|
String |
getDefaultCharsetName()
|
|
String |
getDefaultCollationName()
|
|
EnkiMDRepository |
getEnkiMdrRepos()
Returns an EnkiMDRepository storing this Farrago repository. |
|
int |
getIdentifierPrecision()
|
|
String |
getLocalizedClassName(RefClass refClass)
Looks up the localized name for a class of metadata. |
|
String |
getLocalizedObjectName(CwmModelElement modelElement)
Formats the fully-qualified localized name for an existing object, including its type. |
|
String |
getLocalizedObjectName(CwmModelElement modelElement,
RefClass refClass)
Formats the fully-qualified localized name for an existing object. |
|
String |
getLocalizedObjectName(String name)
Formats the localized name for an unqualified typeless object. |
|
String |
getLocalizedObjectName(String qualifierName,
String objectName,
RefClass refClass)
Formats the fully-qualified localized name for an object that may not exist yet. |
|
MDRepository |
getMdrRepos()
|
|
Object |
getMetadataFactory(String prefix)
Returns the metadata factory for a particular plugin. |
|
JmiModelGraph |
getModelGraph()
|
|
FarragoModelLoader |
getModelLoader()
Returns the FarragoModelLoader for this repos. |
|
JmiModelView |
getModelView()
|
|
CwmCatalog |
getSelfAsCatalog()
|
|
FarragoSequenceAccessor |
getSequenceAccessor(String mofId)
Returns the an accessor for a sequence stored in the repository |
|
CwmTaggedValue |
getTag(CwmModelElement element,
String tagName)
Deprecated. use getTagAnnotation instead |
|
FemTagAnnotation |
getTagAnnotation(FemAnnotatedElement element,
String tagName)
Gets an element's annotation tag. |
|
String |
getTagAnnotationValue(FemAnnotatedElement element,
String tagName)
Gets a value tagged to an annotated element. |
|
String |
getTagValue(CwmModelElement element,
String tagName)
Deprecated. use getTagAnnotationValue instead |
|
FarragoPackage |
getTransientFarragoPackage()
|
|
boolean |
isFennelEnabled()
|
|
FarragoReposTxnContext |
newTxnContext()
Returns an instance of FarragoReposTxnContext for use in executing transactions against this repository without automatic repository session management. |
|
FarragoReposTxnContext |
newTxnContext(boolean manageReposSession)
Returns an instance of FarragoReposTxnContext for use in executing transactions against this repository. |
|
void |
setTagAnnotationValue(FemAnnotatedElement element,
String tagName,
String tagValue)
Tags an annotated element. |
|
void |
setTagValue(CwmModelElement element,
String tagName,
String tagValue)
Deprecated. use setTagAnnotationValue instead |
|
List<FarragoReposIntegrityErr> |
verifyIntegrity(RefObject refObj)
Verifies the integrity of the repository. |
|
| Methods inherited from interface org.eigenbase.util.ClosableAllocation |
|---|
closeAllocation |
| Method Detail |
|---|
MDRepository getMdrRepos()
EnkiMDRepository getEnkiMdrRepos()
getMdrRepos().
JmiModelGraph getModelGraph()
JmiModelView getModelView()
FarragoPackage getTransientFarragoPackage()
CwmCatalog getSelfAsCatalog()
int getIdentifierPrecision()
FemFarragoConfig getCurrentConfig()
String getDefaultCharsetName()
Charset for this
repositoryString getDefaultCollationName()
SqlParserUtil.parseCollation(String). The
default is "ISO-8859-1$en_US".boolean isFennelEnabled()
String getLocalizedObjectName(CwmModelElement modelElement)
Calling getLocalizedObjectName(e) is identical to calling
getLocalizedObjectName(e, e.refClass()).
modelElement - catalog object
String getLocalizedObjectName(String name)
name - object name
String getLocalizedObjectName(CwmModelElement modelElement,
RefClass refClass)
modelElement - catalog objectrefClass - if non-null, use this as the type of the object, e.g.
"table SCHEMA.TABLE"; if null, don't include type (e.g. just
"SCHEMA.TABLE")
String getLocalizedObjectName(String qualifierName,
String objectName,
RefClass refClass)
qualifierName - name of containing object, or null for unqualified
nameobjectName - name of objectrefClass - if non-null, the object type to use in the name; if null,
no type is prepended
String getLocalizedClassName(RefClass refClass)
refClass - class of metadata, e.g. CwmTableClass
CwmCatalog getCatalog(String catalogName)
catalogName - name of catalog to find
CwmTaggedValue getTag(CwmModelElement element,
String tagName)
element - the tagged elementtagName - name of tag to find
void setTagValue(CwmModelElement element,
String tagName,
String tagValue)
element - the element to tagtagName - name of tag to create; if a tag with this name already
exists, it will be updatedtagValue - value to set
String getTagValue(CwmModelElement element,
String tagName)
element - the tagged elementtagName - name of tag to find
FemTagAnnotation getTagAnnotation(FemAnnotatedElement element,
String tagName)
element - the tagged elementtagName - name of tag to find
void setTagAnnotationValue(FemAnnotatedElement element,
String tagName,
String tagValue)
element - the element to tagtagName - name of tag to create; if a tag with this name already
exists, it will be updatedtagValue - value to set
String getTagAnnotationValue(FemAnnotatedElement element,
String tagName)
element - the tagged elementtagName - name of tag to find
void addResourceBundles(List<ResourceBundle> bundles)
bundles - list of ResourceBundle instances to add
forFarragoReposTxnContext newTxnContext()
newTxnContext(false).
FarragoReposTxnContext newTxnContext(boolean manageReposSession)
FarragoReposTxnContext is responsible for
managing repository sessions. Otherwise the caller is responsible for
managing the repository session.
manageReposSession - if true, the FarragoReposTxnContext manages the
repository session
void beginReposSession()
newTxnContext(boolean)void beginReposTxn(boolean writable)
FarragoReposTxnContext instead.
writable - true for read/write; false for read-onlyvoid endReposTxn(boolean rollback)
rollback - true to rollback; false to commitvoid endReposSession()
newTxnContext(boolean)Object getMetadataFactory(String prefix)
getMetadataFactory("Fem") returns this.
prefix - The name of the prefix which identifies the metadata
factoryFarragoSequenceAccessor getSequenceAccessor(String mofId)
mofId - the identifier for the sequenceString expandProperties(String value)
${VARNAME}, such as that done by FarragoProperties.expandProperties(String)..
value - String we want to expand
<T extends RefObject> Collection<T> allOfClass(Class<T> clazz)
This method has the same effect as RefClass.refAllOfClass(),
but is preferable because it returns a typed collection.
<T extends RefObject> Collection<T> allOfType(Class<T> clazz)
This method has the same effect as RefClass.refAllOfType(),
but is preferable because it returns a typed collection.
List<FarragoReposIntegrityErr> verifyIntegrity(RefObject refObj)
refObj - a single object to check (independent of related objects)
or null to check the entire repository
FarragoModelLoader getModelLoader()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||