🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.database
2 messages
2 total messages Started by kei Wed, 21 Mar 2007 11:37
what is the meaning of column1.setSqlType(4);
#296
Author: kei
Date: Wed, 21 Mar 2007 11:37
5 lines
1156 bytes
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!! 
Re: what is the meaning of column1.setSqlType(4);
#299
Author: John Moore (TeamB)
Date: Sat, 24 Mar 2007 18:36
40 lines
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
====================================================
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads