public interface Interpreter
Interpreter
gets called by a AggregateChange
for each DbAction
and is tasked with
executing that action against a database. While the DbAction
is just an abstract representation of a database
action it's the task of an interpreter to actually execute it. This typically involves creating some SQL and running
it using JDBC, but it may also use some third party technology like MyBatis or jOOQ to do this.Modifier and Type | Method and Description |
---|---|
<T> void |
interpret(DbAction.Delete<T> delete) |
<T> void |
interpret(DbAction.DeleteAll<T> delete) |
<T> void |
interpret(DbAction.DeleteAllRoot<T> deleteAllRoot) |
<T> void |
interpret(DbAction.DeleteRoot<T> deleteRoot) |
<T> void |
interpret(DbAction.Insert<T> insert) |
<T> void |
interpret(DbAction.InsertRoot<T> insert) |
<T> void |
interpret(DbAction.Merge<T> update) |
<T> void |
interpret(DbAction.Update<T> update)
Interpret an
DbAction.Update . |
<T> void |
interpret(DbAction.UpdateRoot<T> update) |
<T> void interpret(DbAction.Insert<T> insert)
<T> void interpret(DbAction.InsertRoot<T> insert)
<T> void interpret(DbAction.Update<T> update)
DbAction.Update
. Interpreting normally means "executing".T
- the type of entity to work on.update
- the DbAction.Update
to be executed<T> void interpret(DbAction.UpdateRoot<T> update)
<T> void interpret(DbAction.Merge<T> update)
<T> void interpret(DbAction.Delete<T> delete)
<T> void interpret(DbAction.DeleteRoot<T> deleteRoot)
<T> void interpret(DbAction.DeleteAll<T> delete)
<T> void interpret(DbAction.DeleteAllRoot<T> deleteAllRoot)
Copyright © 2017–2020 Pivotal Software, Inc.. All rights reserved.