public interface ChronicleUpdatePolicy extends UpdatePolicy
ChronicleUpdatePolicyExtension which declares the same methods.
Implementations of this interface take care of invoking corresponding methods
in the extension interface.| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteChronicle(UpdatableChronicle chronicle)
Perform actions required as a consequence of deleting a chronicle.
|
boolean |
deleteSeries(UpdatableSeries<?> series)
Perform actions required as a consequence of deleting a series.
|
boolean |
deleteValue(UpdatableSeries<?> series,
ch.agent.t2.time.TimeIndex index)
Perform actions required as a consequence of deleting a value.
|
boolean |
update(UpdatableSeries<?> series,
ch.agent.t2.time.Range range)
Perform actions required as a consequence of updating the range of a series.
|
void |
willDelete(UpdatableChronicle chronicle)
Throw an exception if the chronicle cannot be deleted.
|
void |
willDelete(UpdatableSeries<?> series)
Throw an exception if the series cannot be deleted.
|
void |
willDelete(UpdatableSeries<?> series,
ch.agent.t2.time.TimeIndex index)
Throw an exception if the value cannot be deleted.
|
void |
willUpdate(UpdatableChronicle chronicle)
Throw an exception if the intended update is rejected.
|
void |
willUpdate(UpdatableSeries<?> series,
ch.agent.t2.time.Range range)
Throw an exception if the intended update is rejected.
|
void willUpdate(UpdatableChronicle chronicle) throws T2DBException
chronicle - a chronicleT2DBExceptionvoid willUpdate(UpdatableSeries<?> series, ch.agent.t2.time.Range range) throws T2DBException
series - a seriesrange - the new rangeT2DBExceptionvoid willDelete(UpdatableChronicle chronicle) throws T2DBException
chronicle - a chronicleT2DBExceptionvoid willDelete(UpdatableSeries<?> series) throws T2DBException
series - a seriesT2DBExceptionvoid willDelete(UpdatableSeries<?> series, ch.agent.t2.time.TimeIndex index) throws T2DBException
series - a seriesindex - a time indexT2DBExceptionboolean deleteChronicle(UpdatableChronicle chronicle) throws T2DBException
The method does not manage relationships or dependencies in the core system. Its responsibility is to call the relevant extension methods.
chronicle - a chronicleT2DBExceptionboolean deleteSeries(UpdatableSeries<?> series) throws T2DBException
The method does not manage relationships or dependencies in the core system. Its responsibility is to call the relevant extension methods.
series - a seriesT2DBExceptionboolean deleteValue(UpdatableSeries<?> series, ch.agent.t2.time.TimeIndex index) throws T2DBException
The method does not manage relationships or dependencies in the core system. Its responsibility is to call the relevant extension methods.
series - a seriesindex - a time indexT2DBExceptionboolean update(UpdatableSeries<?> series, ch.agent.t2.time.Range range) throws T2DBException
The method does not manage relationships or dependencies in the core system. Its responsibility is to call the relevant extension methods.
series - a seriesrange - the new rangeT2DBExceptionCopyright © 2017. All rights reserved.