|
BEA Systems, Inc. | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.common.ParamValue
A ParamValue is the value part of a name/value pair used for events and remote procedures.
A ParamSet has keynames, and each keyname has a ParamValue associated with it. A ParamValue may be made up of a vector of ParamValues, in which case the elements in the vector are accessible by index position.
The variables in this class are used for setting attributes for IN, OUT and IN/OUT parameters used for database stored procedures.
Conversions among the various datatypes are handled automatically in a "Java" way, i.e., the conversion can be accomplished either of these ways:
float f = 1.2; int i = (int) f;
boolean b = Boolean.booleanValue("t");
ParamSet
,
Serialized FormField Summary | |
protected String |
paramDesc
Variable used for IN, OUT, and IN/OUT parameters to set the descriptor of the parameter. |
protected int |
paramMode
Variable used for IN, OUT, and IN/OUT parameters to set the mode of the parameter. |
protected String |
paramName
Variable used for IN, OUT, and IN/OUT parameters to set the name of the parameter. |
protected int |
paramType
Variable used for IN, OUT, and IN/OUT parameters to set the type of the parameter. |
Constructor Summary | |
ParamValue()
Internal use only. |
|
ParamValue(String name,
int datatype,
int inouttype,
String paramDesc)
Constructs a ParamValue with the specified name, of the specified data type, of the specified parameter type, and of the specified parameter description. |
Method Summary | |
boolean |
asBoolean()
Returns a ParamValue as a boolean. |
byte |
asByte()
Returns a ParamValue as a byte. |
char |
asChar()
Returns a ParamValue as a char. |
Date |
asDate()
Returns a ParamValue as a Date. |
double |
asDouble()
Returns a ParamValue as a double. |
float |
asFloat()
Returns a ParamValue as a float. |
int |
asInt()
Returns a ParamValue as a int. |
long |
asLong()
Returns a ParamValue as a long. |
Object |
asObject()
Returns a ParamValue as an Object. |
short |
asShort()
Returns a ParamValue as a short. |
String |
asString()
Returns a ParamValue as a String. |
Object |
clone()
Clones a ParamValue. |
void |
destroy()
Destroys a ParamValue object. |
String |
dump()
Returns a formatted string representation of a ParamValue. |
ParamValue |
elementAt(int index)
Used for accessing ParamValues in a Vector of ParamValues. |
void |
initialize()
Initializes a ParamValue. |
boolean |
isBoolean()
Determines whether a ParamValue is of type boolean. |
boolean |
isByte()
Determines whether a ParamValue is of type byte. |
boolean |
isChar()
Determines whether a ParamValue is of type char. |
boolean |
isDate()
Determines whether a ParamValue is of type Date. |
boolean |
isDouble()
Determines whether a ParamValue is of type double. |
boolean |
isFloat()
Determines whether a ParamValue is of type float. |
boolean |
isInt()
Determines whether a ParamValue is of type int. |
boolean |
isLong()
Determines whether a ParamValue is of type long. |
boolean |
isNull()
Determines whether a ParamValue is null. |
boolean |
isNull(int index)
Determines whether a ParamValue that is a vector of ParamValues is null at the specified index position. |
boolean |
isObject()
Determines whether a ParamValue is of type Object. |
boolean |
isScalar()
Determines whether a ParamValue is scalar. |
boolean |
isShort()
Determines whether a ParamValue is of type short. |
boolean |
isString()
Determines whether a ParamValue is of type String. |
boolean |
isVector()
Determines whether a ParamValue is a Vector. |
String |
name()
Returns the paramName of a ParamValue. |
String |
paramDesc()
Returns the paramDesc of a ParamValue. |
int |
paramMode()
Returns the paramMode of a ParamValue. |
String |
paramModeString()
Returns the paramMode of a ParamValue as a String. |
int |
paramType()
Returns the paramType of a ParamValue. |
String |
paramTypeString()
Returns the paramType of a ParamValue as a String. |
void |
readExternal(ObjectInput oi)
Constructs a ParamValue from the specified serialization stream |
ParamValue |
set(boolean val)
Sets the value of a ParamValue to a boolean. |
ParamValue |
set(boolean val,
int index)
Sets the value at the specified index into a Vector of ParamValues to the specified boolean. |
ParamValue |
set(byte val)
Sets the value of a ParamValue to a byte. |
ParamValue |
set(char val)
Sets the value of a ParamValue to a char. |
ParamValue |
set(char val,
int index)
Sets the value at the specified index into a Vector of ParamValues to the specified char. |
ParamValue |
set(Date val)
Sets the value of a ParamValue to a Date. |
ParamValue |
set(Date val,
int index)
Sets the value at the specified index into a Vector of ParamValues to the specified date. |
ParamValue |
set(double val)
Sets the value of a ParamValue to a double. |
ParamValue |
set(double val,
int index)
Sets the value at the specified index into a Vector of ParamValues to the specified double. |
ParamValue |
set(float val)
Sets the value of a ParamValue to a float. |
ParamValue |
set(float val,
int index)
Sets the value at the specified index into a Vector of ParamValues to the specified float. |
ParamValue |
set(int val)
Sets the value of a ParamValue to an int. |
ParamValue |
set(int val,
int index)
Sets the value at the specified index into a Vector of ParamValues to the specified int. |
ParamValue |
set(long val)
Sets the value of a ParamValue to a long. |
ParamValue |
set(long val,
int index)
Sets the value at the specified index into a Vector of ParamValues to the specified long. |
ParamValue |
set(Object val)
Sets the value of a ParamValue to an Object. |
ParamValue |
set(Object val,
int index)
Sets the value at the specified index into a Vector of ParamValues to the specified Object. |
ParamValue |
set(ParamValue val)
Sets the value of a ParamValue to a ParamValue. |
ParamValue |
set(ParamValue val,
int index)
Sets the value at the specified index into a Vector of ParamValues to the specified ParamValue. |
ParamValue |
set(short val)
Sets the value of a ParamValue to a short. |
ParamValue |
set(short val,
int index)
Sets the value at the specified index into a Vector of ParamValues to the specified integer. |
ParamValue |
set(String val)
Sets the value of a ParamValue to a String. |
ParamValue |
set(String val,
int index)
Sets the value at the specified index into a Vector of ParamValues to the specified string. |
void |
setElementAt(Object value,
int index)
Sets the element at the specified index into Vector of ParamValues to the specified value. |
int |
size()
Returns the size of a Vector of ParamValues. |
String |
toString()
Returns a string representation of a ParamValue. |
void |
writeExternal(ObjectOutput oo)
Writes a ParamValue object to a serialization stream. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected String paramDesc
protected int paramMode
ParamTypes
protected String paramName
protected int paramType
ParamTypes
Constructor Detail |
public ParamValue()
public ParamValue(String name, int datatype, int inouttype, String paramDesc)
ParamTypes
Method Detail |
public boolean asBoolean() throws weblogic.common.ParamSetException
weblogic.common.ParamSetException
- if there is a conversion errorpublic byte asByte() throws weblogic.common.ParamSetException
weblogic.common.ParamSetException
- if there is a conversion errorpublic char asChar() throws weblogic.common.ParamSetException
weblogic.common.ParamSetException
- if there is a conversion errorpublic Date asDate() throws weblogic.common.ParamSetException
weblogic.common.ParamSetException
- if there is a conversion errorpublic double asDouble() throws weblogic.common.ParamSetException
weblogic.common.ParamSetException
- if there is a conversion errorpublic float asFloat() throws weblogic.common.ParamSetException
weblogic.common.ParamSetException
- if there is a conversion errorpublic int asInt() throws weblogic.common.ParamSetException
weblogic.common.ParamSetException
- if there is a conversion errorpublic long asLong() throws weblogic.common.ParamSetException
weblogic.common.ParamSetException
- if there is a conversion errorpublic Object asObject() throws weblogic.common.ParamSetException
weblogic.common.ParamSetException
- if there is a conversion errorpublic short asShort() throws weblogic.common.ParamSetException
weblogic.common.ParamSetException
- if there is a conversion errorpublic String asString() throws weblogic.common.ParamSetException
weblogic.common.ParamSetException
- if there is a conversion errorpublic Object clone()
public void destroy()
public String dump()
public ParamValue elementAt(int index) throws weblogic.common.ParamSetException
index
- Index position
weblogic.common.ParamSetException
- if there is an error with the ParamSetParamTypes
public void initialize()
public boolean isBoolean()
public boolean isByte()
public boolean isChar()
public boolean isDate()
public boolean isDouble()
public boolean isFloat()
public boolean isInt()
public boolean isLong()
public boolean isNull()
public boolean isNull(int index) throws weblogic.common.ParamSetException
index
- Index into the vector of a ParamValue
weblogic.common.ParamSetException
- if there is an error with the ParamSetpublic boolean isObject()
public boolean isScalar()
public boolean isShort()
public boolean isString()
public boolean isVector()
public String name()
public String paramDesc()
public int paramMode()
ParamTypes
public String paramModeString()
public int paramType()
ParamTypes
public String paramTypeString()
public void readExternal(ObjectInput oi) throws IOException
readExternal
in interface Externalizable
IOException
- if there is an IO errorpublic ParamValue set(boolean val) throws weblogic.common.ParamSetException
val
- boolean
weblogic.common.ParamSetException
- if the value cannot be setpublic ParamValue set(boolean val, int index) throws weblogic.common.ParamSetException
val
- boolean valueindex
- Index into a Vector of ParamValues
weblogic.common.ParamSetException
- if the value cannot be setParamTypes
public ParamValue set(byte val) throws weblogic.common.ParamSetException
val
- byte
weblogic.common.ParamSetException
- if the value cannot be setpublic ParamValue set(char val) throws weblogic.common.ParamSetException
val
- char
weblogic.common.ParamSetException
- if the value cannot be setpublic ParamValue set(char val, int index) throws weblogic.common.ParamSetException
val
- charindex
- Index into a Vector of ParamValues
weblogic.common.ParamSetException
- if the value cannot be setParamTypes
public ParamValue set(Date val) throws weblogic.common.ParamSetException
val
- Date
weblogic.common.ParamSetException
- if the value cannot be setpublic ParamValue set(Date val, int index) throws weblogic.common.ParamSetException
val
- Dateindex
- Index into a Vector of ParamValues
weblogic.common.ParamSetException
- if the value cannot be setParamTypes
public ParamValue set(double val) throws weblogic.common.ParamSetException
val
- double
weblogic.common.ParamSetException
- if the value cannot be setpublic ParamValue set(double val, int index) throws weblogic.common.ParamSetException
val
- doubleindex
- Index into a Vector of ParamValues
weblogic.common.ParamSetException
- if the value cannot be setParamTypes
public ParamValue set(float val) throws weblogic.common.ParamSetException
val
- float
weblogic.common.ParamSetException
- if the value cannot be setpublic ParamValue set(float val, int index) throws weblogic.common.ParamSetException
val
- floatindex
- Index into a Vector of ParamValues
weblogic.common.ParamSetException
- if the value cannot be setParamTypes
public ParamValue set(int val) throws weblogic.common.ParamSetException
val
- int
weblogic.common.ParamSetException
- if the value cannot be setpublic ParamValue set(int val, int index) throws weblogic.common.ParamSetException
val
- intindex
- Index into a Vector of ParamValues
weblogic.common.ParamSetException
- if the value cannot be setParamTypes
public ParamValue set(long val) throws weblogic.common.ParamSetException
val
- long
weblogic.common.ParamSetException
- if the value cannot be setpublic ParamValue set(long val, int index) throws weblogic.common.ParamSetException
val
- longindex
- Index into a Vector of ParamValues
weblogic.common.ParamSetException
- if the value cannot be setParamTypes
public ParamValue set(Object val) throws weblogic.common.ParamSetException
val
- Object
weblogic.common.ParamSetException
- if the value cannot be setpublic ParamValue set(Object val, int index) throws weblogic.common.ParamSetException
val
- Objectindex
- Index into a Vector of ParamValues
weblogic.common.ParamSetException
- if the value cannot be setParamTypes
public ParamValue set(ParamValue val) throws weblogic.common.ParamSetException
val
- ParamValue
weblogic.common.ParamSetException
- if the value cannot be setpublic ParamValue set(ParamValue val, int index) throws weblogic.common.ParamSetException
val
- Value of type ParamValueindex
- Index into a Vector of ParamValues
weblogic.common.ParamSetException
- if the value cannot be setpublic ParamValue set(short val) throws weblogic.common.ParamSetException
val
- short
weblogic.common.ParamSetException
- if the value cannot be setpublic ParamValue set(short val, int index) throws weblogic.common.ParamSetException
val
- shortindex
- Index into a Vector of ParamValues
weblogic.common.ParamSetException
- if the value cannot be setParamTypes
public ParamValue set(String val) throws weblogic.common.ParamSetException
val
- String
weblogic.common.ParamSetException
- if the value cannot be setpublic ParamValue set(String val, int index) throws weblogic.common.ParamSetException
val
- Stringindex
- Index into a Vector of ParamValues
weblogic.common.ParamSetException
- if the value cannot be setParamTypes
public void setElementAt(Object value, int index) throws weblogic.common.ParamSetException
value
- Valueindex
- Index position
weblogic.common.ParamSetException
- if the value cannot be setpublic int size() throws weblogic.common.ParamSetException
weblogic.common.ParamSetException
- if there is an error with the ParamSetpublic String toString()
public void writeExternal(ObjectOutput oo) throws IOException
writeExternal
in interface Externalizable
IOException
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs90 Copyright 2005 BEA Systems Inc. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |