Speedment is an open-source implementation of the Stream interface that lazily evaluates the operations performed on it to produce an optimal SQL query, fetching only the results needed for the terminating operation. Speedment also comes with a handy Maven plugin that generates all the entity and manager classes needed to model the database using the database metadata as the domain. This means that you can get a database application up-and-running in no time.
JShell Queries in Java 9In this video, Per Minborg and I demonstrate the database streams using JShell, the new REPL loop that comes with Java 9. We also explain how the Speedment implementation can optimize the streams before execution and why this is legal according to the Stream documentation. At the end of the video you have all the tools you need to quickly write Java 9-ready database applications using Streams instead of SQL.
No comments:
Post a Comment