Add Scalar
Convenience Methods
Declaration
voidadd(
java.lang.String fieldName,
scalar_typedata)
throws TibrvException
voidadd(
java.lang.String fieldName,
scalar_typedata,
int fieldId)
throws TibrvException
voidaddUbits(
java.lang.String fieldName,
scalar_typedata)
throws TibrvException
voidaddUbits(
java.lang.String fieldName,
scalar_typedata,
int fieldId)
throws TibrvException
Purpose
Add a field containing a scalar value.
Method Forms
The convenience methods named add() determine the field type from the numeric type of the data.
The convenience methods named addUnn() add unsigned integer fields, discarding the sign bit of a Java integer data value.
| 
                                 Method Name  | 
                            
                                 Java Data Type  | 
                            
                                 Field Type  | 
                            
                                 Type Description  | 
                        
| 
                                 
  | 
                            
                                 
  | 
                            
                                 
  | 
                            
                                 boolean  | 
                        
| 
                                 
  | 
                            
                                 
  | 
                            
                                 
  | 
                            
                                 32-bit floating point  | 
                        
| 
                                 
  | 
                            
                                 
  | 
                            
                                 
  | 
                            
                                 64-bit floating point  | 
                        
| 
                                 
  | 
                            
                                 
  | 
                            
                                 
  | 
                            
                                 8-bit integer  | 
                        
| 
                                 
  | 
                            
                                 
  | 
                            
                                 
  | 
                            
                                 16-bit integer  | 
                        
| 
                                 
  | 
                            
                                 
  | 
                            
                                 
  | 
                            
                                 32-bit integer  | 
                        
| 
                                 
  | 
                            
                                 
  | 
                            
                                 
  | 
                            
                                 64-bit integer  | 
                        
| 
                                 
  | 
                            
                                 
  | 
                            
                                 
  | 
                            
                                 8-bit unsigned integer  | 
                        
| 
                                 
  | 
                            
                                 
  | 
                            
                                 
  | 
                            
                                 16-bit unsigned integer  | 
                        
| 
                                 
  | 
                            
                                 
  | 
                            
                                 
  | 
                            
                                 32-bit unsigned integer  | 
                        
| 
                                 
  | 
                            
                                 
  | 
                            
                                 
  | 
                            
                                 64-bit unsigned integer  | 
                        
| 
                                 Parameter  | 
                            
                                 Description  | 
                        
| 
                                 
  | 
                            
                                 Add a field with this name. 
  | 
                        
| 
                                 
  | 
                            
                                 Add a field with this data value. 
  | 
                        
| 
                                 
  | 
                            
                                 Add a field with this identifier. All field identifiers must be unique within each message. When absent, add a field without an identifier. Zero is a special value, indicating no identifier. It is illegal to add a field that has both a   |