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 chronicleT2DBException
void willUpdate(UpdatableSeries<?> series, ch.agent.t2.time.Range range) throws T2DBException
series
- a seriesrange
- the new rangeT2DBException
void willDelete(UpdatableChronicle chronicle) throws T2DBException
chronicle
- a chronicleT2DBException
void willDelete(UpdatableSeries<?> series) throws T2DBException
series
- a seriesT2DBException
void willDelete(UpdatableSeries<?> series, ch.agent.t2.time.TimeIndex index) throws T2DBException
series
- a seriesindex
- a time indexT2DBException
boolean 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 chronicleT2DBException
boolean 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 seriesT2DBException
boolean 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 indexT2DBException
boolean 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 rangeT2DBException
Copyright © 2017. All rights reserved.