jaguar.util.jdbc11.<object>Holder class

Description

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

The com.sybase.jaguar.util.jdbc11 holder classes are used to pass java.sql and java.math objects as INOUT parameters. Use these classes in code that runs in a JDK 1.1 or later virtual machine. See jaguar.util.jdbc102.<object>Holder class for similar classes that are compatible with JDK 1.0.2.

For code that will be run in a JDK 1.1 or later virtual machine, use these imports:

import java.sql.*;
import java.math.*;
import com.sybase.jaguar.util.jdbc11.*;

The holder classes for JDK 1.1 are summarized in Table 1-4:

Table 1-4: Holder for use with JDK 1.1

Holder class

Datatype for value field

Default for value

BigDecimalHolder

java.math.BigDecimal

null

DateHolder

java.sql.Date

null

TimeHolder

java.sql.Time

null

TimestampHolder

java.sql.Timestamp

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-4.

<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-4.

Methods

value

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

See also

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