bea.jolt
Class JoltServiceBase

java.lang.Object
  |
  +--bea.jolt.JoltServiceBase
Direct Known Subclasses:
JoltRemoteService

public class JoltServiceBase
extends java.lang.Object

JoltServiceBase is the common base class for JoltRemoteService and JoltServiceRequest


Constructor Summary
JoltServiceBase()
           
 
Method Summary
 void addByte(java.lang.String name, byte val)
          Add a byte value occurrence of an item referred by its name.
 void addBytes(java.lang.String name, byte[] val, int len)
          Add a byte-array value occurrence of an item referred by its name.
 void addDouble(java.lang.String name, double val)
          Add a double value occurrence of an item referred by its name.
 void addFloat(java.lang.String name, float val)
          Add a float value occurrence of an item referred by its name.
 void addInt(java.lang.String name, int val)
          Add a int value occurrence of an item referred by its name.
 void addShort(java.lang.String name, short val)
          Add a short value occurrence of an item referred by its name.
 void addString(java.lang.String name, java.lang.String val)
          Add a string value occurrence of an item referred by its name.
 void delete(java.lang.String name)
          Delete the first instance of an item referred by its name.
 void deleteItem(java.lang.String name, int itemNo)
          Delete a particular occurrence of an item referred by its name.
 byte getByteDef(java.lang.String name, byte def)
          Get the byte value of the first occurrence of the item.
 byte getByteItemDef(java.lang.String name, int itemNo, byte def)
          Get the byte value of an occurrence of the item.
 byte[] getBytesDef(java.lang.String name, byte[] def)
          Get the byte-array value of the first occurrence of the item.
 byte[] getBytesItemDef(java.lang.String name, int itemNo, byte[] def)
          Get the byte-array value of an occurrence of the item.
 double getDoubleDef(java.lang.String name, double def)
          Get the double value of the first occurrence of the item.
 double getDoubleItemDef(java.lang.String name, int itemNo, double def)
          Get the double value of an occurrence of the item.
 float getFloatDef(java.lang.String name, float def)
          Get the float value of the first occurrence of the item.
 float getFloatItemDef(java.lang.String name, int itemNo, float def)
          Get the float value of an occurrence of the item.
 int getIntDef(java.lang.String name, int def)
          Get the int value of the first occurrence of the item.
 int getIntItemDef(java.lang.String name, int itemNo, int def)
          Get the int value of an occurrence of the item.
 int getObufIntItemDef(java.lang.String name, int itemNo, int def)
           
 int getObufOccurrenceCount(java.lang.String propertyname)
           
 java.lang.String getObufStringItemDef(java.lang.String name, int itemNo, java.lang.String def)
           
 int getOccurrenceCount(java.lang.String name)
          Get the occurrence count of an item referred by its name.
 short getShortDef(java.lang.String name, short def)
          Get the short value of the first occurrence of the item.
 short getShortItemDef(java.lang.String name, int itemNo, short def)
          Get the short value of an occurrence of the item.
 java.lang.String getStringDef(java.lang.String name, java.lang.String def)
          Get the string value of the first occurrence of the item.
 java.lang.String getStringItemDef(java.lang.String name, int itemNo, java.lang.String def)
          Get the string value of an occurrence of the item.
 void setByte(java.lang.String name, byte val)
          Set or change the byte value of the first occurrence of an item referred by its name.
 void setByteItem(java.lang.String name, int itemNo, byte val)
          Set or change the byte value of a particular item referred by its name.
 void setBytes(java.lang.String name, byte[] val, int len)
          Set or change the byte-array value of the first occurrence of an item referred by its name.
 void setBytesItem(java.lang.String name, int itemNo, byte[] val, int len)
          Set or change the byte-array value of a particular item referred by its name.
 void setDouble(java.lang.String name, double val)
          Set or change the double value of the first occurrence of an item referred by its name.
 void setDoubleItem(java.lang.String name, int itemNo, double val)
          Set or change the double value of a particular item referred by its name.
 void setFloat(java.lang.String name, float val)
          Set or change the float value of the first occurrence of an item referred by its name.
 void setFloatItem(java.lang.String name, int itemNo, float val)
          Set or change the float value of a particular item referred by its name.
 void setInt(java.lang.String name, int val)
          Set or change the int value of the first occurrence of an item referred by its name.
 void setIntItem(java.lang.String name, int itemNo, int val)
          Set or change the int value of a particular item referred by its name.
 void setShort(java.lang.String name, short val)
          Set or change the short value of the first occurrence of an item referred by its name.
 void setShortItem(java.lang.String name, int itemNo, short val)
          Set or change the short value of a particular item referred by its name.
 void setString(java.lang.String name, java.lang.String val)
          Set or change the string value of the first occurrence of an item referred by its name.
 void setStringItem(java.lang.String name, int itemNo, java.lang.String val)
          Set or change the string value of a particular item referred by its name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JoltServiceBase

public JoltServiceBase()
Method Detail

addByte

public void addByte(java.lang.String name,
                    byte val)
Add a byte value occurrence of an item referred by its name.
Parameters:
name - The name of the item.
val - The byte value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an output field.

addShort

public void addShort(java.lang.String name,
                     short val)
Add a short value occurrence of an item referred by its name.
Parameters:
name - The name of the item.
val - The short value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an output field.

addInt

public void addInt(java.lang.String name,
                   int val)
Add a int value occurrence of an item referred by its name.
Parameters:
name - The name of the item.
val - The int value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an output field.

addFloat

public void addFloat(java.lang.String name,
                     float val)
Add a float value occurrence of an item referred by its name.
Parameters:
name - The name of the item.
val - The float value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an output field.

addDouble

public void addDouble(java.lang.String name,
                      double val)
Add a double value occurrence of an item referred by its name.
Parameters:
name - The name of the item.
val - The double value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an output field.

addString

public void addString(java.lang.String name,
                      java.lang.String val)
Add a string value occurrence of an item referred by its name.
Parameters:
name - The name of the item.
val - The string value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an output field.

addBytes

public void addBytes(java.lang.String name,
                     byte[] val,
                     int len)
Add a byte-array value occurrence of an item referred by its name.
Parameters:
name - The name of the item.
val - The byte-array value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an output field.

setByte

public void setByte(java.lang.String name,
                    byte val)
Set or change the byte value of the first occurrence of an item referred by its name.
Parameters:
name - The name of the item.
val - The byte value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an output field.

setShort

public void setShort(java.lang.String name,
                     short val)
Set or change the short value of the first occurrence of an item referred by its name.
Parameters:
name - The name of the item.
val - The short value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an output field.

setInt

public void setInt(java.lang.String name,
                   int val)
Set or change the int value of the first occurrence of an item referred by its name.
Parameters:
name - The name of the item.
val - The int value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an output field.

setFloat

public void setFloat(java.lang.String name,
                     float val)
Set or change the float value of the first occurrence of an item referred by its name.
Parameters:
name - The name of the item.
val - The float value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an output field.

setDouble

public void setDouble(java.lang.String name,
                      double val)
Set or change the double value of the first occurrence of an item referred by its name.
Parameters:
name - The name of the item.
val - The double value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an output field.

setString

public void setString(java.lang.String name,
                      java.lang.String val)
Set or change the string value of the first occurrence of an item referred by its name.
Parameters:
name - The name of the item.
val - The string value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an output field.

setBytes

public void setBytes(java.lang.String name,
                     byte[] val,
                     int len)
Set or change the byte-array value of the first occurrence of an item referred by its name.
Parameters:
name - The name of the item.
val - The byte-array value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an output field.

setByteItem

public void setByteItem(java.lang.String name,
                        int itemNo,
                        byte val)
Set or change the byte value of a particular item referred by its name. The instance starts from 0.
Parameters:
name - The name of the item.
itemNo - The occurrence number.
val - The byte value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an output field.

setShortItem

public void setShortItem(java.lang.String name,
                         int itemNo,
                         short val)
Set or change the short value of a particular item referred by its name. The instance starts from 0.
Parameters:
name - The name of the item.
itemNo - The occurrence number.
val - The short value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an output field.

setIntItem

public void setIntItem(java.lang.String name,
                       int itemNo,
                       int val)
Set or change the int value of a particular item referred by its name. The instance starts from 0.
Parameters:
name - The name of the item.
itemNo - The occurrence number.
val - The int value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an output field.

setFloatItem

public void setFloatItem(java.lang.String name,
                         int itemNo,
                         float val)
Set or change the float value of a particular item referred by its name. The instance starts from 0.
Parameters:
name - The name of the item.
itemNo - The occurrence number.
val - The float value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an output field.

setDoubleItem

public void setDoubleItem(java.lang.String name,
                          int itemNo,
                          double val)
Set or change the double value of a particular item referred by its name. The instance starts from 0.
Parameters:
name - The name of the item.
itemNo - The occurrence number.
val - The double value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an output field.

setStringItem

public void setStringItem(java.lang.String name,
                          int itemNo,
                          java.lang.String val)
Set or change the string value of a particular item referred by its name. The instance starts from 0.
Parameters:
name - The name of the item.
itemNo - The occurrence number.
val - The string value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an output field.

setBytesItem

public void setBytesItem(java.lang.String name,
                         int itemNo,
                         byte[] val,
                         int len)
Set or change the byte-array value of a particular item referred by its name. The instance starts from 0.
Parameters:
name - The name of the item.
itemNo - The occurrence number.
val - The byte-array value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an output field.

delete

public void delete(java.lang.String name)
Delete the first instance of an item referred by its name.
Parameters:
name - The name of the item.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an input field.

deleteItem

public void deleteItem(java.lang.String name,
                       int itemNo)
Delete a particular occurrence of an item referred by its name.
Parameters:
name - The name of the item.
itemNo - The occurrence number.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an input field.

getOccurrenceCount

public int getOccurrenceCount(java.lang.String name)
Get the occurrence count of an item referred by its name.
Parameters:
name - The name of the item.
Returns:
The number of occurrence.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an input field.

getByteDef

public byte getByteDef(java.lang.String name,
                       byte def)
Get the byte value of the first occurrence of the item. If the item does not exist, the default value will be returned.
Parameters:
name - The name fo the item.
def - The default byte value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an input field.

getShortDef

public short getShortDef(java.lang.String name,
                         short def)
Get the short value of the first occurrence of the item. If the item does not exist, the default value will be returned.
Parameters:
name - The name fo the item.
def - The default short value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an input field.

getIntDef

public int getIntDef(java.lang.String name,
                     int def)
Get the int value of the first occurrence of the item. If the item does not exist, the default value will be returned.
Parameters:
name - The name fo the item.
def - The default int value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an input field.

getFloatDef

public float getFloatDef(java.lang.String name,
                         float def)
Get the float value of the first occurrence of the item. If the item does not exist, the default value will be returned.
Parameters:
name - The name fo the item.
def - The default float value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an input field.

getDoubleDef

public double getDoubleDef(java.lang.String name,
                           double def)
Get the double value of the first occurrence of the item. If the item does not exist, the default value will be returned.
Parameters:
name - The name fo the item.
def - The default double value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an input field.

getStringDef

public java.lang.String getStringDef(java.lang.String name,
                                     java.lang.String def)
Get the string value of the first occurrence of the item. If the item does not exist, the default value will be returned.
Parameters:
name - The name fo the item.
def - The default string value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an input field.

getBytesDef

public byte[] getBytesDef(java.lang.String name,
                          byte[] def)
Get the byte-array value of the first occurrence of the item. If the item does not exist, the default value will be returned.
Parameters:
name - The name fo the item.
def - The default byte-array value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an input field.

getByteItemDef

public byte getByteItemDef(java.lang.String name,
                           int itemNo,
                           byte def)
Get the byte value of an occurrence of the item. If the item or its occurrence does not exist, the default value will be returned. The occurence number starts at 0.
Parameters:
name - The name of the item.
itemNo - The occurrence number.
def - The default byte value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an input field.

getShortItemDef

public short getShortItemDef(java.lang.String name,
                             int itemNo,
                             short def)
Get the short value of an occurrence of the item. If the item or its occurrence does not exist, the default value will be returned. The occurence number starts at 0.
Parameters:
name - The name of the item.
itemNo - The occurrence number.
def - The default short value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an input field.

getIntItemDef

public int getIntItemDef(java.lang.String name,
                         int itemNo,
                         int def)
Get the int value of an occurrence of the item. If the item or its occurrence does not exist, the default value will be returned. The occurence number starts at 0.
Parameters:
name - The name of the item.
itemNo - The occurrence number.
def - The default int value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an input field.

getFloatItemDef

public float getFloatItemDef(java.lang.String name,
                             int itemNo,
                             float def)
Get the float value of an occurrence of the item. If the item or its occurrence does not exist, the default value will be returned. The occurence number starts at 0.
Parameters:
name - The name of the item.
itemNo - The occurrence number.
def - The default float value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an input field.

getDoubleItemDef

public double getDoubleItemDef(java.lang.String name,
                               int itemNo,
                               double def)
Get the double value of an occurrence of the item. If the item or its occurrence does not exist, the default value will be returned. The occurence number starts at 0.
Parameters:
name - The name of the item.
itemNo - The occurrence number.
def - The default double value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an input field.

getStringItemDef

public java.lang.String getStringItemDef(java.lang.String name,
                                         int itemNo,
                                         java.lang.String def)
Get the string value of an occurrence of the item. If the item or its occurrence does not exist, the default value will be returned. The occurence number starts at 0.
Parameters:
name - The name of the item.
itemNo - The occurrence number.
def - The default string value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an input field.

getBytesItemDef

public byte[] getBytesItemDef(java.lang.String name,
                              int itemNo,
                              byte[] def)
Get the byte-array value of an occurrence of the item. If the item or its occurrence does not exist, the default value will be returned. The occurence number starts at 0.
Parameters:
name - The name of the item.
itemNo - The occurrence number.
def - The default byte-array value.
Throws:
java.lang.NoSuchFieldError - It is an invalid name.
IllegalAccessError - It is not an input field.

getObufOccurrenceCount

public int getObufOccurrenceCount(java.lang.String propertyname)

getObufIntItemDef

public int getObufIntItemDef(java.lang.String name,
                             int itemNo,
                             int def)

getObufStringItemDef

public java.lang.String getObufStringItemDef(java.lang.String name,
                                             int itemNo,
                                             java.lang.String def)