public abstract class AbstractPropertyContainerParser extends AbstractPropertyContainerUpdater implements PropertyContainerParser
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DUPLICATE_KEY |
| Constructor and Description |
|---|
AbstractPropertyContainerParser() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<PropertyTag> |
getDefaultUniqueProperties()
Get the default set of unique properties for this parser
|
uk.ac.ed.epcc.webapp.jdbc.table.TableSpecification |
modifyDefaultTableSpecification(uk.ac.ed.epcc.webapp.AppContext c,
uk.ac.ed.epcc.webapp.jdbc.table.TableSpecification spec,
java.lang.String table_name)
Modify the default table specification if appropriate
A null specification denotes that a table should not be auto-created.
|
java.util.Iterator<java.lang.String> |
splitRecords(java.lang.String update)
split a multiple record update into individual records
in the way appropriate to this accountng scheme.
|
protected void |
unique(java.lang.String name)
extension point called when creating the table specification when a field
is labelled as part of the unique key.
|
endParse, getDerivedProperties, startParseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparseendParse, getDerivedProperties, initFinder, startParsepublic static final java.lang.String DUPLICATE_KEY
protected final void unique(java.lang.String name)
AbstractPropertyContainerUpdaterunique in class AbstractPropertyContainerUpdatername - Field namepublic uk.ac.ed.epcc.webapp.jdbc.table.TableSpecification modifyDefaultTableSpecification(uk.ac.ed.epcc.webapp.AppContext c,
uk.ac.ed.epcc.webapp.jdbc.table.TableSpecification spec,
java.lang.String table_name)
PropertyContainerUpdatermodifyDefaultTableSpecification in interface PropertyContainerUpdatermodifyDefaultTableSpecification in class AbstractPropertyContainerUpdaterc - AppContextspec - TableSpecification or nullpublic java.util.Set<PropertyTag> getDefaultUniqueProperties()
PropertyContainerParsergetDefaultUniqueProperties in interface PropertyContainerParserpublic java.util.Iterator<java.lang.String> splitRecords(java.lang.String update)
throws AccountingParseException
splitRecords in interface PropertyContainerParserAccountingParseException - If a problem occurs while splitting the recordsupdate -