Chapter 1 Java Classes and Interfaces
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:
| 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. | ||
<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.
The current value contained by the holder object.Table 1-4 lists the datatypes and default values for the value field.
jaguar.util.<object>Holder class, jaguar.util.jdbc102.<object>Holder class
| Copyright (C) 2004. Sybase Inc. All rights reserved. |
| |