jaguar.util.jdbc102.<object>Holder class

Description

package com.sybase.jaguar.util.jdbc102;
public class <object>Holder extends Object 

The com.sybase.jaguar.util.jdbc102 holder classes are used to pass jdbc.sql and jdbc.math objects as INOUT parameters.

For code that runs in a JDK 1.0.2 virtual machine, use these imports:

import jdbc.sql.*;
import jdbc.math.*;
import com.sybase.jaguar.util.jdbc102.*;

The jdbc.sql package contains classes that are equivalent to JDK 1.1 java.sql classes that have the same name. The jdbc.math package contains classes that are equivalent to JDK 1.1 java.math classes that have the same name. For details, see the JDK 1.1 documentation of the java.math and java.sql packages.

The holder classes for JDK 1.0.2 are summarized in Table 1-3:

Table 1-3: Holder classes for use with JDK 1.0.2

Holder class

Datatype for value field

Default for value

BigDecimalHolder

jdbc.math.BigDecimal

null

DateHolder

jdbc.sql.Date

null

TimeHolder

jdbc.sql.Time

null

TimestampHolder

jdbc.sql.Time

null

WARNING! Null parameter values are not supported. Use the constructor that takes an initial value, or set the value field explicitly.

Constructors

<object>Holder()

Default constructor that assigns the default value specified in Table 1-3.

<object>Holder(<object> initialValue)

Constructor that takes an initial value specified as initialValue. initialValue is an instance of the appropriate datatype as specified in Table 1-3.

Methods

value

The current value contained by the holder object.Table 1-3 lists the datatypes and default values for the value field.

See also

jaguar.util.<object>Holder class, jaguar.util.jdbc11.<object>Holder class