public final class Updater
extends Object
Constructor and Description |
---|
Updater(TheStoreConnection connection,
boolean dropDeleted)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes.
|
void |
commit()
Commits.
|
int |
delete(VersionedValue versionedValue)
Deletes a point value.
|
TheStoreConnection |
getConnection()
Gets the store connection.
|
int |
purge(UUID pointUUID,
TimeInterval timeInterval)
Purges values of a point.
|
void |
rollback()
Rolls back.
|
void |
update(VersionedValue versionedValue)
Updates a value.
|
public Updater(@Nonnull TheStoreConnection connection, boolean dropDeleted)
connection
- The connection to use for database services.dropDeleted
- The drop deleted indicator.public void close()
public void commit()
@CheckReturnValue public int delete(@Nonnull VersionedValue versionedValue)
versionedValue
- The point value to delete.@Nonnull @CheckReturnValue public TheStoreConnection getConnection()
@CheckReturnValue public int purge(@Nonnull UUID pointUUID, @Nonnull TimeInterval timeInterval)
pointUUID
- The UUID of the point.timeInterval
- The purge interval.public void rollback()
public void update(@Nonnull VersionedValue versionedValue)
versionedValue
- The new Point value.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.