EDMRepository
edm.edom3
Interface EDMRepository
All Superinterfaces:EDMContextDependent, EDMData, EDMInstance
public interface EDMRepository extends EDMInstance
This interface represents a existing or non-existing repository in local or remote context. Mostly used for local/remote interchange operations (now).
Method Summary
All Methods Instance Methods Abstract MethodsÂ
Modifier and Type Method and Description void
closeRepository()
This method will close the repository.void
create()
Create repository using name and context for this wrappervoid
delete()
Delete repository using name and context for this wrapperEDMModel
getModel(java.lang.String name)
Retrieve a model in this repositoryint
getOpenMode()
Check open modeEDMModel[]
listModels()
Retrieve all models in this repositoryvoid
openRepository(int openMode)
This method will open the model based on the given model.void
setOpenMode(int openMode)
Open or close the Repository with specified modeMethods inherited from interface edm.edom3.EDMInstance
create, createAggrAttrBN, delete, getAccessManager, getAttrBN, getAttrsBN, getInstanceReferences, getInstanceType, isInstanceOf, isKindOf, putAttrBN, putAttrsBN, putProtectedAttrBN, setAttrBN, setAttrBN, setAttrBN, setAttrBN, setAttrBN, testAttrBN, testAttrsBN
Methods inherited from interface edm.edom3.EDMData
exists, getInstanceId, getName, getOwner, isLocal, isRemote
Methods inherited from interface edm.edom3.EDMContextDependent
getContext
Method Detail
create
void create() throws EdmiException
Create repository using name and context for this wrapperThrows:EdmiException - If the method fails.
delete
void delete() throws EdmiException
Delete repository using name and context for this wrapperThrows:EdmiException - If the method fails.
getModel
EDMModel getModel(java.lang.String name) throws EdmiException
Retrieve a model in this repositoryParameters:name - model nameReturns:model wrapper, null if not foundThrows:EdmiException - f the method fails
listModels
EDMModel[]Â listModels() throws EdmiException
Retrieve all models in this repositoryReturns:list of modelsThrows:EdmiException - if the method fails
getOpenMode
int getOpenMode() throws EdmiException
Check open modeReturns:current open modeThrows:EdmiException - if the method failsSee Also:EDMConstants.OpenModes
setOpenMode
void setOpenMode(int openMode) throws EdmiException
Open or close the Repository with specified modeParameters:openMode - requested modeThrows:EdmiException - if the method fails
openRepository
void openRepository(int openMode) throws EdmiException
This method will open the model based on the given model.Parameters:openMode - An integer based on EDMCOnstants.openModesThrows:EdmiException - if the method fails
closeRepository
void closeRepository() throws EdmiException
This method will close the repository.Throws:EdmiException - if the method fails