|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface supported by all RMsg objects. This interface is patterned on the MapMessage interface found in the JMS messaging library.
Method Summary | |
void |
addField(RFld fld)
Get a field to this message. |
int |
apply(RFunctor func)
Apply a functor to all fields in the message. |
boolean |
apply(RFunctor func,
java.lang.String name)
Apply a functor to a named field in the message. |
boolean |
fieldExists(java.lang.String name)
Check if a named field exists in this message. |
boolean |
getBoolean(java.lang.String name)
Get the value of a boolean field. |
byte |
getByte(java.lang.String name)
Get the value of a byte field. |
byte[] |
getBytes(java.lang.String name)
Get the value of a opaque field. |
java.util.Date |
getDate(java.lang.String name)
Get the value of a datetime field. |
double |
getDouble(java.lang.String name)
Get the value of a double field. |
RFld |
getField(java.lang.String fldName)
Get a named field from this message. |
RFld |
getFieldIfExists(java.lang.String fldName)
Get a named field from this message. |
java.util.Iterator |
getFieldNames()
Get names of all fields in this message. |
java.util.Iterator |
getFields()
Get all fields in the message. |
RFld[] |
getFieldsAsArray()
Get all fields in the message as an array. |
java.lang.Object |
getFieldValueAsObject(java.lang.String name)
Get the value of a field. |
java.lang.String |
getFieldValueAsString(java.lang.String name)
Get field value as string. |
float |
getFloat(java.lang.String name)
Get the value of a float field. |
int |
getInt(java.lang.String name)
Get the value of a integer field. |
long |
getLong(java.lang.String name)
Get the value of a long field. |
java.lang.String |
getMemo(java.lang.String name)
Get the value of a memos field. |
java.lang.String |
getName()
Get the name of the message. |
byte[] |
getOpaque(java.lang.String name)
Get the value of a Opaque field. |
short |
getShort(java.lang.String name)
Get the value of a short field. |
java.lang.String |
getString(java.lang.String name)
Get the value of a string field. |
java.lang.Object |
getTibrvMsg(java.lang.String name)
Get the value of a RFldTibrvMsg field. |
boolean |
isConstrained(java.lang.String name)
Determine if a named message field has constrains on it. |
boolean |
isEmptyMsg()
Check if this is an empty message. |
boolean |
isLocked(java.lang.String name)
Determine if a named message field is locked. |
boolean |
isValSet(java.lang.String name)
Determine if the value of a named message field has been set. |
void |
setBoolean(java.lang.String name,
boolean val)
Get the value of a boolean field. |
void |
setBytes(java.lang.String name,
byte[] val)
Get the value of a opaque field. |
void |
setDate(java.lang.String name,
java.util.Date val)
Set the value of a datetime field. |
void |
setDate(java.lang.String name,
long val)
Set the value of a datetime field. |
void |
setDouble(java.lang.String name,
double val)
Set the value of a double field. |
void |
setFieldFromObject(java.lang.String name,
java.lang.Object val)
Set the value of a field from an object. |
void |
setFloat(java.lang.String name,
float val)
Set the value of a float field. |
void |
setInt(java.lang.String name,
int val)
Set the value of a integer field. |
void |
setLong(java.lang.String name,
long val)
Set the value of a long field. |
void |
setMemo(java.lang.String name,
java.lang.String val)
Get the value of a memo field. |
void |
setOpaque(java.lang.String name,
byte[] val)
Get the value of a opaque field. |
void |
setShort(java.lang.String name,
short val)
Set the value of a short field. |
void |
setString(java.lang.String name,
java.lang.String val)
Get the value of a string field. |
void |
setTibrvMsg(java.lang.String name,
java.lang.Object val)
Get the value of a RFldTibrvMsg field. |
Method Detail |
public int apply(RFunctor func) throws ProtocolException, FieldValidationException
func
- Functor
ProtocolException
FieldValidationException
RFunctor
public boolean apply(RFunctor func, java.lang.String name) throws ProtocolException, FieldValidationException
func
- Functor
ProtocolException
FieldValidationException
RFunctor
public java.util.Date getDate(java.lang.String name) throws FieldValidationException
name
- Field name.
FieldValidationException
public java.lang.String getName()
public boolean getBoolean(java.lang.String name) throws FieldValidationException
name
- Field name.
FieldValidationException
public byte[] getBytes(java.lang.String name) throws FieldValidationException
name
- Field name.
FieldValidationException
public float getFloat(java.lang.String name) throws FieldValidationException
name
- Field name.
FieldValidationException
RFldF32
public double getDouble(java.lang.String name) throws FieldValidationException
name
- Field name.
FieldValidationException
public byte getByte(java.lang.String name) throws FieldValidationException
name
- Field name.
FieldValidationException
public short getShort(java.lang.String name) throws FieldValidationException
name
- Field name.
FieldValidationException
public int getInt(java.lang.String name) throws FieldValidationException
name
- Field name.
FieldValidationException
public long getLong(java.lang.String name) throws FieldValidationException
name
- Field name.
FieldValidationException
public java.lang.String getString(java.lang.String name) throws FieldValidationException
name
- Field name.
FieldValidationException
public java.lang.String getMemo(java.lang.String name) throws FieldValidationException
name
- Field name.
FieldValidationException
public java.lang.Object getTibrvMsg(java.lang.String name) throws FieldValidationException
name
- Field name.
FieldValidationException
public byte[] getOpaque(java.lang.String name) throws FieldValidationException
name
- Field name.
FieldValidationException
public java.lang.Object getFieldValueAsObject(java.lang.String name) throws FieldValidationException
name
- Field name.
FieldValidationException
public java.lang.String getFieldValueAsString(java.lang.String name) throws FieldValidationException
name
- Field name.
FieldValidationException
public void setDate(java.lang.String name, java.util.Date val) throws FieldValidationException
name
- Field name.val
- Field value.
FieldValidationException
RFldDatetime
public void setDate(java.lang.String name, long val) throws FieldValidationException
name
- Field name.val
- Field value.
FieldValidationException
RFldDatetime
public void setBoolean(java.lang.String name, boolean val) throws FieldValidationException
name
- Field name.val
- Field value.
FieldValidationException
RFldBool
public void setFloat(java.lang.String name, float val) throws FieldValidationException
name
- Field name.val
- Field value.
FieldValidationException
RFldF32
public void setDouble(java.lang.String name, double val) throws FieldValidationException
name
- Field name.val
- Field value.
FieldValidationException
RFldF64
public void setShort(java.lang.String name, short val) throws FieldValidationException
name
- Field name.val
- Field value.
FieldValidationException
RFldI16
public void setInt(java.lang.String name, int val) throws FieldValidationException
name
- Field name.val
- Field value.
FieldValidationException
RFldI32
public void setLong(java.lang.String name, long val) throws FieldValidationException
name
- Field name.val
- Field value.
FieldValidationException
RFldI64
public void setFieldFromObject(java.lang.String name, java.lang.Object val) throws FieldValidationException
name
- Field name.val
- Field value.
FieldValidationException
RFld
public void setString(java.lang.String name, java.lang.String val) throws FieldValidationException
name
- Field name.val
- Field value.
FieldValidationException
RFldString
public void setMemo(java.lang.String name, java.lang.String val) throws FieldValidationException
name
- Field name.val
- Field value.
FieldValidationException
RFldString
public void setTibrvMsg(java.lang.String name, java.lang.Object val) throws FieldValidationException
name
- Field name.val
- Field value.
FieldValidationException
RFldOpaque
public void setOpaque(java.lang.String name, byte[] val) throws FieldValidationException
name
- Field name.val
- Field value.
FieldValidationException
RFldOpaque
public void setBytes(java.lang.String name, byte[] val) throws FieldValidationException
name
- Field name.val
- Field value.
FieldValidationException
RFldOpaque
public java.util.Iterator getFields()
getFieldsAsArray()
public RFld[] getFieldsAsArray()
getFields()
public RFld getFieldIfExists(java.lang.String fldName) throws FieldValidationException
fldName
- Field name.
FieldValidationException
public RFld getField(java.lang.String fldName) throws FieldValidationException
fldName
- Field name.
FieldValidationException
public void addField(RFld fld) throws FieldValidationException
fld
- Field.
FieldValidationException
public java.util.Iterator getFieldNames()
public boolean fieldExists(java.lang.String name)
name
- Field name.
public boolean isEmptyMsg()
public boolean isValSet(java.lang.String name) throws FieldValidationException
name
- Field name.
FieldValidationException
public boolean isLocked(java.lang.String name) throws FieldValidationException
name
- Field name.
FieldValidationException
public boolean isConstrained(java.lang.String name) throws FieldValidationException
name
- Field name.
FieldValidationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |