public class DatabaseReferenceWorker.Helper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
ATTR_NAME
XML attribute for the table and field name
|
private static java.lang.String |
ELEM_TAG_FIELD
XML tag for the field element
|
private static java.lang.String |
ELEM_TAG_ROOT
XML tag for the root element
|
private static java.lang.String |
ELEM_TAG_TABLE
XML tag for the table element
|
Constructor and Description |
---|
Helper() |
Modifier and Type | Method and Description |
---|---|
java.util.Map |
loadMap(java.lang.String file)
Restore map which contains information about referenced tables and
fields from XML.
|
boolean |
persistMap(java.util.Map map,
java.lang.String file)
Store map into the XML file.
|
private static final java.lang.String ELEM_TAG_ROOT
private static final java.lang.String ELEM_TAG_TABLE
private static final java.lang.String ELEM_TAG_FIELD
private static final java.lang.String ATTR_NAME
public boolean persistMap(java.util.Map map, java.lang.String file) throws javax.xml.parsers.ParserConfigurationException
Each map element represents a table referenced by Progress code and holds another map which contains fields referenced.
map
- Map which describes referenced tables and fields.file
- XML file name.true
if operation was successful.javax.xml.parsers.ParserConfigurationException
- forwarded from XmlHelper
methods.public java.util.Map loadMap(java.lang.String file) throws java.io.FileNotFoundException, javax.xml.parsers.ParserConfigurationException, java.io.IOException, org.xml.sax.SAXException
file
- XML file name.Map
if operation was successful
or null
if not.org.xml.sax.SAXException
- forwarded from XmlHelper
methods.java.io.IOException
- forwarded from XmlHelper
methods.javax.xml.parsers.ParserConfigurationException
- forwarded from XmlHelper
methods.java.io.FileNotFoundException
- forwarded from XmlHelper
methods.