public abstract class AbstractPropertyContainerUpdater extends java.lang.Object implements PropertyContainerUpdater
PropertyContainerUpdater
Note this contains the logic for building a default table specification by reflection and/or
querying the config service.AutoTable,
OptionalTable
| Constructor and Description |
|---|
AbstractPropertyContainerUpdater() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
endParse()
End a batch parse this de-allocates any temporary storage and
and perform any final operations.
|
PropExpressionMap |
getDerivedProperties(PropExpressionMap previous)
return a set of derived property definitions.
|
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.
|
void |
startParse(PropertyContainer staticProps)
Start a batch parse.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitFinderpublic 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 PropertyContainerUpdaterc - AppContextspec - TableSpecification or nullprotected void unique(java.lang.String name)
name - Field namepublic java.lang.String endParse()
PropertyContainerUpdaterendParse in interface PropertyContainerUpdaterpublic PropExpressionMap getDerivedProperties(PropExpressionMap previous)
PropertyContainerUpdaterDefinitions are allowed for properties that are also generated directly in the parse phase. In this case the parse value should always be used by preference and the derived definition only provides a fall-back implementation if the parse value is unavailable. For example if not persisted in the database layer. This allows one parser/policy to specify a default implementation as a derived property definition which is then overridden by having the same property generated in a parse method of a different policy/parser
getDerivedProperties in interface PropertyContainerUpdaterprevious - Previous definitionspublic void startParse(PropertyContainer staticProps) throws java.lang.Exception
PropertyContainerUpdaterstartParse in interface PropertyContainerUpdaterjava.lang.ExceptionstaticProps - properties constant for this accounting run.