Package oracle.rules.sdk2.repository
Class MDSUpdater
java.lang.Object
oracle.rules.sdk2.repository.MDSUpdater
- All Implemented Interfaces:
DictionaryUpdater
-
Method Summary
Modifier and TypeMethodDescriptionvoidabortUpdate(String path) Abort the edit of a dictionary previously loaded withloadForEdit.voidclose()Close this DictionaryUpdater and release resources it holds.loadForUpdate(String path, DictionaryFinder finder) Load a dictionary from the repository for the purpose of updating it.voidupdateDictionary(String path, RuleDictionary dictionary) Update a dictionary previously loaded for update.
-
Method Details
-
loadForUpdate
public RuleDictionary loadForUpdate(String path, DictionaryFinder finder) throws RepositoryException, SDKException Description copied from interface:DictionaryUpdaterLoad a dictionary from the repository for the purpose of updating it. If any error occurs after a dictionary is loaded and prior to a successful update of the dictionary viaupdateDictionary, the dictionary must be reloaded since an error results in the discard of the pending update.- Specified by:
loadForUpdatein interfaceDictionaryUpdater- Parameters:
path- the path to the dictionaryfinder- the DictionaryFinder used to resolve dictionary links.- Returns:
- the
RuleDictionary. - Throws:
RepositoryException- if an error occurred during the load of the dictionarySDKException
-
updateDictionary
public void updateDictionary(String path, RuleDictionary dictionary) throws RepositoryException, SDKException Description copied from interface:DictionaryUpdaterUpdate a dictionary previously loaded for update.- Specified by:
updateDictionaryin interfaceDictionaryUpdater- Parameters:
path- the path to the dictionarydictionary- the rule dictionary to save- Throws:
RepositoryException- an error occured during the save of dictionary.SDKException- if an error occured serializing the dictionary to XML.
-
abortUpdate
Description copied from interface:DictionaryUpdaterAbort the edit of a dictionary previously loaded withloadForEdit.- Specified by:
abortUpdatein interfaceDictionaryUpdater- Parameters:
path- the path to the dictionary- Throws:
RepositoryException- if an error occurred during the abort
-
close
Description copied from interface:DictionaryUpdaterClose this DictionaryUpdater and release resources it holds.- Specified by:
closein interfaceDictionaryUpdater- Throws:
RepositoryException- an exception occured during closing the repository
-