Article View: borland.public.jbuilder.database
Article #299Re: what is the meaning of column1.setSqlType(4);
From: John Moore (TeamB)
Date: Sat, 24 Mar 2007 18:36
Date: Sat, 24 Mar 2007 18:36
40 lines
2031 bytes
2031 bytes
kei wrote:
> I want to know what is the meaning of the number in the setSqlType? where
> can I find the information? I know it is related to datatype, but I can't
> find the exact meaning of 1 = ?, 2 = ?....etc.
>
> Thx!!
>
>
These refer to java.sql.Types and you should never use the actual value..
DX Source comments..
/** Gets JDBC SqlType of the Column. Refer to java.sql.Types for more
information
* on the types.
*
* @return The JDBC SqlType of the Column.
*/
public final int getSqlType() { return sqlType; }
..you should always use it this way..
java.sql.Types.ARRAY
..this is because the actual integer value could change in future
versions of Java..
John..
--
=============================================
TeamB are volunteer helpers. Please DO NOT REPLY VIA EMAIL!
Post all questions and replies to this newsgroup ONLY
For papers on DataExpress, Applets, JSP, and Web Development go to:
http://www.microps.com/mps/paperFAQ.html
====================================================
Technical Details
Message-ID:
<46056fa7$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<46011902$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1073da,5589f9c644533860 X-Google-Attributes: gid1073da,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sat, 24 Mar 2007 11:36:24 -0700 From: "John Moore (TeamB)" <jbm@microps.com> User-Agent: Thunderbird 1.5.0.10 (Macintosh/20070221) MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.database Subject: Re: what is the meaning of column1.setSqlType(4); References: <46011902$1@newsgroups.borland.com> In-Reply-To: <46011902$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 207.137.13.178 Message-ID: <46056fa7$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1174761383 207.137.13.178 (24 Mar 2007 11:36:23 -0800) Lines: 40 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail