??? from the jdk 1.4 javadoc for java.sql.CallableStatement. Works for me
with linux jdk 1.4. This is a jdbc 3 method, however its part of jdk 1.4
david jencks
---
setNull
public void setNull(String parameterName,
int sqlType,
String typeName)
throws SQLException
Sets the designated parameter to SQL NULL. This version of the method
setNull should be used for user-defined types and REF type parameters.
Examples of user-defined types include: STRUCT, DISTINCT, JAVA_OBJECT, and
named array types.
Note: To be portable, applications must give the SQL type code and the
fully-qualified SQL type name when specifying a NULL user-defined or REF
parameter. In the case of a user-defined type the name is the type name of
the parameter itself. For a REF parameter, the name is the type name of the
referenced type. If a JDBC driver does not need the type code or type name
information, it may ignore it. Although it is intended for user-defined and
Ref parameters, this method may be used to set a null parameter of any JDBC
type. If the parameter does not have a user-defined or REF type, the given
typeName is ignored.
Parameters:
sqlType - a value from java.sql.TypestypeName - the fully-qualified
name of an SQL user-defined type; ignored if the parameter is not a
user-defined type or SQL REF value Throws:
SQLException - if a database access error occursSince:
1.4
On 2002.04.29 16:06:34 -0400 marc fleury wrote:
> ok second time today I do a clean co (yeah the one where I nuke my
> repository) and I can't compile.
>
> I get
>
> compile-source-jdbc-version:
>
> compile-classes:
> [mkdir] Created dir:
> C:\cygwin\home\Administrator\jboss-all\connector\output
> \classes
> [javac] Compiling 55 source files to
> C:\cygwin\home\Administrator\jboss-all\
> connector\output\classes
> C:\cygwin\home\Administrator\jboss-all\connector\output\gen-src\org\jboss\re
> sour
> ce\adapter\jdbc\local\LocalPreparedStatement.java:42: warning:
> setUnicodeStream(
> int,java.io.InputStream,int) in java.sql.PreparedStatement has been
> deprecated
> public class LocalPreparedStatement
> ^
> C:\cygwin\home\Administrator\jboss-all\connector\output\gen-src\org\jboss\re
> sour
> ce\adapter\jdbc\local\LocalPreparedStatement.java:529: warning:
> setUnicodeStream
> (int,java.io.InputStream,int) in java.sql.PreparedStatement has been
> deprecated
> ps.setUnicodeStream(parameterIndex, stream, length);
> ^
> C:\cygwin\home\Administrator\jboss-all\connector\output\gen-src\org\jboss\re
> sour
> ce\adapter\jdbc\local\LocalCallableStatement.java:66: warning:
> getBigDecimal(int
> ,int) in java.sql.CallableStatement has been deprecated
> public class LocalCallableStatement
> ^
> C:\cygwin\home\Administrator\jboss-all\connector\output\gen-src\org\jboss\re
> sour
> ce\adapter\jdbc\local\LocalCallableStatement.java:66: warning:
> setUnicodeStream(
> int,java.io.InputStream,int) in java.sql.PreparedStatement has been
> deprecated
> public class LocalCallableStatement
> ^
> C:\cygwin\home\Administrator\jboss-all\connector\output\gen-src\org\jboss\re
> sour
> ce\adapter\jdbc\local\LocalCallableStatement.java:980: warning:
> getBigDecimal(in
> t,int) in java.sql.CallableStatement has been deprecated
> return cs.getBigDecimal(parameterIndex, scale);
> ^
> C:\cygwin\home\Administrator\jboss-all\connector\output\gen-src\org\jboss\re
> sour
> ce\adapter\jdbc\local\LocalCallableStatement.java:1516: cannot resolve
> symbol
> symbol : method setNull (java.lang.String,int,java.lang.String)
> location: interface java.sql.CallableStatement
> cs.setNull(parameterName, sqlType, typeName);
> ^
> 1 error
> 5 warnings
>
> BUILD FAILED
>
> C:\cygwin\home\Administrator\jboss-all\connector\build.xml:344: Compile
> failed,
> messages should have been provided.
>
> Total time: 11 minutes 35 seconds
>
> $ java -version
> java version "1.4.0"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
> Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)
>
> is anyone else seeing this in jdk1.4??? (windows XP)
>
> what gives?
>
> marcf
>
>
>
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development