at-m42:lecture14
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
at-m42:lecture14 [2009/04/26 10:15] – eechris | at-m42:lecture14 [2011/01/14 12:45] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 462: | Line 462: | ||
* If you have a pool of connections you'd want to release your connection (returning it to the pool) when you've finished. | * If you have a pool of connections you'd want to release your connection (returning it to the pool) when you've finished. | ||
| | ||
- | ====== Simplified Queries with Groovy ===== | + | ===== Simplified Queries with Groovy ===== |
+ | |||
<code groovy 1|Example 2; Database lookup in Groovy (at-m42/ | <code groovy 1|Example 2; Database lookup in Groovy (at-m42/ | ||
Line 562: | Line 563: | ||
===== Persistence Patterns: Transaction script ===== | ===== Persistence Patterns: Transaction script ===== | ||
In many applications it is natural to work directly with the relational model, issuing SQL queries and parsing result sets. | In many applications it is natural to work directly with the relational model, issuing SQL queries and parsing result sets. | ||
- | * This is known as the // | + | * This is known as the // |
* Direct use of SQL is also well suited for aggregating queries and set-based updates (accessing large amounts of data or updating many tables in the same transaction) | * Direct use of SQL is also well suited for aggregating queries and set-based updates (accessing large amounts of data or updating many tables in the same transaction) | ||
+ | |||
===== Persistence Patterns: ORM ===== | ===== Persistence Patterns: ORM ===== | ||
at-m42/lecture14.1240740905.txt.gz · Last modified: 2011/01/14 12:24 (external edit)