Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Andreas Leitgeb Newsgroups: comp.lang.java.programmer Subject: Re: Which databases are the most used with Java Date: Sun, 13 Aug 2017 09:46:45 -0000 (UTC) Organization: A noiseless patient Spider Lines: 13 Message-ID: References: <87y3qovwjb.fsf@munus.decebal.nl> <87tw1bx2c9.fsf@munus.decebal.nl> Reply-To: avl@logic.at Injection-Date: Sun, 13 Aug 2017 09:46:45 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="c9f2ba19e1c5daa470c6851ce1636ea3"; logging-data="14277"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/1BF7N3qJ4UQObsiCHU1dg" User-Agent: slrn/1.0.2 (Linux) Cancel-Lock: sha1:NWMnrkxXfY+tlGb/s5eELPK4HKc= Xref: csiph.com comp.lang.java.programmer:37168 Cecil Westerhof wrote: > It started with that I really do not like: > try (Statement stmt = conn.createStatement(); > ResultSet rsOldest = sqlite3Conn.executeQuery(OLDEST_USED)) { > I now can do: > try (SQLResultSet rsOldest = sqlite3Conn.executeQuery(OLDEST_USED)) { I want one Lego(tm) brick, so I'm going to write a method that takes an acre of wood land, cuts down the trees, builds a factory that produces one brick then knocks down the factory and plants trees - all in one call! How convenient! ;-) And if I ever need ten bricks, I'll just call it ten times...