Don't make getNode throw XML-specific Exceptions.
This commit is contained in:
parent
3a4877f84b
commit
40a3b57be3
2 changed files with 2 additions and 10 deletions
|
@ -19,8 +19,6 @@ package helma.objectmodel;
|
||||||
import helma.objectmodel.INode;
|
import helma.objectmodel.INode;
|
||||||
import helma.objectmodel.db.IDGenerator;
|
import helma.objectmodel.db.IDGenerator;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import org.xml.sax.SAXException;
|
|
||||||
import javax.xml.parsers.ParserConfigurationException;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interface that is implemented by Database wrappers
|
* Interface that is implemented by Database wrappers
|
||||||
|
@ -57,8 +55,7 @@ public interface IDatabase {
|
||||||
|
|
||||||
// node-related
|
// node-related
|
||||||
public INode getNode(ITransaction transaction, String key)
|
public INode getNode(ITransaction transaction, String key)
|
||||||
throws IOException, ObjectNotFoundException,
|
throws IOException, ObjectNotFoundException;
|
||||||
SAXException, ParserConfigurationException;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
|
@ -20,9 +20,7 @@ import helma.objectmodel.*;
|
||||||
import helma.objectmodel.dom.IDGenParser;
|
import helma.objectmodel.dom.IDGenParser;
|
||||||
import helma.objectmodel.dom.XmlDatabaseReader;
|
import helma.objectmodel.dom.XmlDatabaseReader;
|
||||||
import helma.objectmodel.dom.XmlWriter;
|
import helma.objectmodel.dom.XmlWriter;
|
||||||
import org.xml.sax.SAXException;
|
|
||||||
|
|
||||||
import javax.xml.parsers.ParserConfigurationException;
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
@ -162,12 +160,9 @@ public final class XmlDatabase implements IDatabase {
|
||||||
* @return
|
* @return
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
* @throws ObjectNotFoundException
|
* @throws ObjectNotFoundException
|
||||||
* @throws ParserConfigurationException
|
|
||||||
* @throws SAXException
|
|
||||||
*/
|
*/
|
||||||
public INode getNode(ITransaction txn, String kstr)
|
public INode getNode(ITransaction txn, String kstr)
|
||||||
throws IOException, ObjectNotFoundException,
|
throws IOException, ObjectNotFoundException {
|
||||||
ParserConfigurationException, SAXException {
|
|
||||||
File f = new File(dbHomeDir, kstr + ".xml");
|
File f = new File(dbHomeDir, kstr + ".xml");
|
||||||
|
|
||||||
if (!f.exists()) {
|
if (!f.exists()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue