Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Kevin Nathan Newsgroups: comp.lang.java.databases Subject: Re: Local database library Date: Sat, 5 Oct 2013 11:28:26 -0700 Lines: 38 Message-ID: <20131005112826.2b95626d@efreet.linux> References: <20131001135230.66af12f9@efreet.linux> <524b40ba$0$304$14726298@news.sunsite.dk> <20131001154157.7f37e588@efreet.linux> <524b6e8d$0$304$14726298@news.sunsite.dk> <20131002100935.0eacf609@efreet.linux> <524cd0e4$0$298$14726298@news.sunsite.dk> <20131004105704.7e132036@efreet.linux> <524f72c2$0$300$14726298@news.sunsite.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: individual.net Ll0xpUo03SaLI87WByzqQQq0vqr2DCPeCID1aKGFWtxYrfDMeB Cancel-Lock: sha1:OESM/ZsudIt8n2JV1Ucf5Iy6bnU= X-Newsreader: Claws Mail 3.9.0 (GTK+ 2.24.18; i586-suse-linux-gnu) X-Face: %/gp4MCQT=`#JS##?-]V9ksid6OSR@(wbF"bK6wSLO$u,%(N@X~bVhAD+\A_[gRhx*T6=fq "N_5H8.v[&;q0iw!s_wuL05B0xg#OYUkbn#@&U_]fL%o==~2sphc?*L+bicO!POJLG#p'N.]J0/p_w Z^(.kOB%Ob914-V>?GI; Xref: csiph.com comp.lang.java.databases:632 On Fri, 04 Oct 2013 22:00:31 -0400 Arne Vajh=C3=B8j wrote: >I am somewhat skeptical about a class to encapsulate Connection - they >are often unnecesarry complexity. > Ok, I will do more research on the Connection item. >My point was that you should have two classes: >- Transaction, to have data for a single transaction >- TransactionManager, to retrieve one or retrieve all or save one=20 >Transaction > That makes sense. I should move to a higher level, but I have all the raw SQL from the C++ program for all the complex statements with the appropriate JOINs, sub SELECTs, etc., that have been working for years and I'm not sure I'm up to the task of modelling that, yet. >Note that by convention Java classes names start with an uppercase >letter. > Yes, I name my classes with initial uppercaes -- I'm just so used to naming files with lowercase and dashes. I'm going to have to work on that -- it's hard to break a decades-long habit! :-) --=20 Kevin Nathan (Arizona, USA) =20 Linux is not a destination, it's a journey -- enjoy the trip! Linux 3.7.10-1.16-desktop 11:20am up 16 days 21:33, 14 users, load average: 0.44, 0.54, 0.58