Class General

java.lang.Object
  |
  +--General

public class General
extends java.lang.Object

A non-instantiable class with static methods to illustrate technical points regarding Java-SQL datatype mappings and null values.


Method Summary
static int identity1(int I)
          An int identity method.
static java.lang.Integer identity2(java.lang.Integer I)
          An Integer identity method.
static Address identity3(Address A)
          An Address identity method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

identity1

public static int identity1(int I)
An int identity method.

You can call this method from SQL, with an INTEGER argument. But, if the runtime value of the argument is null, an SQL exception will be raised.


identity2

public static java.lang.Integer identity2(java.lang.Integer I)
An Integer identity method.

You can call this method from SQL, with an INTEGER argument. If the runtime value of the argument is null, The Java parameter will be null.


identity3

public static Address identity3(Address A)
An Address identity method.

You can call this method from SQL, with an Address argument. If the runtime value of the argument is null, The Java parameter will be null.