Chapter 1 Java Classes and Interfaces


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. Use these classes in code that runs in a JDK 1.0.2 virtual machine.

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 "Holder classes for use with JDK 1.0.2".

<object>Holder(<object> initialValue)

Constructor that takes an initial value specified as initialValue. initialValue is an instance of the appropriate datatype as specified in "Holder classes for use with JDK 1.0.2".

value

The current value contained by the holder object."Holder classes for use with JDK 1.0.2" lists the datatypes and default values for the value field.

See Also

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

"Creating EAServer 1.1 Java Clients" in the EAServer Programmer's Guide

"Creating Java Components" in the EAServer Programmer's Guide

 


Copyright © 2001 Sybase, Inc. All rights reserved.