comp.lang.java.programmer http://groups-beta.google.com/group/comp.lang.java.programmer [EMAIL PROTECTED]
Today's topics: * emacs Vs Eclipse? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/58b6f53b3e1b91e1 * Detecting if a table in a database already exists ? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9fe9a0b1cc67fe14 * Integer.getInteger() why there? - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3831772f7db2048f * Short avi clip of me fucking a goat. Enjoy - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d4af5cf808a6dcf7 ========================================================================== TOPIC: emacs Vs Eclipse? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/58b6f53b3e1b91e1 ========================================================================== == 1 of 1 == Date: Tues, Oct 12 2004 8:00 pm From: [EMAIL PROTECTED] (Yakov) The OP is a troll and it won't get us anywhere. Let's just stop this thread Regards, Yakov Fain ========================================================================== TOPIC: Detecting if a table in a database already exists ? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9fe9a0b1cc67fe14 ========================================================================== == 1 of 1 == Date: Tues, Oct 12 2004 4:57 pm From: Sudsy <[EMAIL PROTECTED]> Thorsten Meininger wrote: > Sorry for this newbie question: > How do I find out from a java source if a table in a database already exists? > > I cannot believe that I have to execute a SELECT statement and if there is an > exception > I know that the table does not exist. But this is a really inconvenient solution. > There must be a direct request statement. > > Thorsten You're looking for java.sql.DatabaseMetaData. Obtain it via java.sql.Connection#getMetaData. It's javadocs time! -- Java/J2EE/JSP/Struts/Tiles/C/UNIX consulting and remote development. ========================================================================== TOPIC: Integer.getInteger() why there? http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3831772f7db2048f ========================================================================== == 1 of 1 == Date: Tues, Oct 12 2004 8:30 pm From: "andreas kinell" <[EMAIL PROTECTED]> >> They are located as they are because they have to do with the behavior of >> Integer instances. > > Hmm, what do you mean? > > I can create a system property with any name I want that holds whatever > int-value I want. > > The getInteger method just calls the System.getProperty method and > converts the returned String to an Integer. > > What does this have to do with the behavior of Integers? > > it clearly doesn't belong to the System class. also, there is no Property class. if there was a class Property, one could argue that getInteger(String nm) should be a method of Property rather than of Integer. why isn't it in class Properties? because Properties extends a HashTable for (String, String) pairs. key and value are Strings, Integer has nothing to do with it. instead, methods extracting an Integer from a String are static methods of Integer. following your argumentation, static Integer decode(String nm) static Integer valueOf(String s) should be offered by String. andreas ========================================================================== TOPIC: Short avi clip of me fucking a goat. Enjoy http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/d4af5cf808a6dcf7 ========================================================================== == 1 of 1 == Date: Thurs, Oct 14 2004 6:02 am From: [EMAIL PROTECTED] Cancelled because of virus: Backdoor.Win32.Hackarmy.w ======================================================================= You received this message because you are subscribed to the Google Groups "comp.lang.java.programmer". comp.lang.java.programmer [EMAIL PROTECTED] Change your subscription type & other preferences: * click http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe Report abuse: * send email explaining the problem to [EMAIL PROTECTED] Unsubscribe: * click http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe ======================================================================= Google Groups: http://groups-beta.google.com
