OSMQ
v2.0.1

osmq.records
Class CoreRecord

java.lang.Object
  extended byosmq.records.CoreRecord
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class CoreRecord
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

An implementation of a multi-object container that uses an array to store its values. The container's value can be set individually or using a delimited String, and a delimited String can be generated that represents the many values.

See Also:
Serialized Form

Field Summary
static java.lang.String DELIMITER_STRING
           
 
Constructor Summary
CoreRecord()
           
 
Method Summary
 java.lang.Object clone()
           
 java.lang.Object get(int p)
          Returns an element in the record.
 java.lang.Object[] getAll()
          Returns all elements as an array
 java.lang.String getAsDelimitedString()
          Returns the element values as a delimited string.
 void resetSize(int size)
          Resets the number of elements in the record, and clears the value of each element.
 void set(int p, java.lang.Object o)
          Sets a record element to the value of an object.
 void setAll(java.lang.Object[] elements)
          Sets all elements from an array of object
 void setFromDelimitedString(java.lang.String value)
          Sets the element values from those contained in a delimited string.
 int size()
           
 boolean wasNull()
          Returns true if the last get() returned a null object, or the last get() object had a string length of zero
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DELIMITER_STRING

public static final java.lang.String DELIMITER_STRING
See Also:
Constant Field Values
Constructor Detail

CoreRecord

public CoreRecord()
Method Detail

setFromDelimitedString

public void setFromDelimitedString(java.lang.String value)
Sets the element values from those contained in a delimited string. Parsing of the string is deferred until an element is referrenced.


getAsDelimitedString

public java.lang.String getAsDelimitedString()
Returns the element values as a delimited string.


wasNull

public boolean wasNull()
Returns true if the last get() returned a null object, or the last get() object had a string length of zero


get

public java.lang.Object get(int p)
Returns an element in the record.


set

public void set(int p,
                java.lang.Object o)
Sets a record element to the value of an object.


resetSize

public void resetSize(int size)
Resets the number of elements in the record, and clears the value of each element.


size

public int size()

setAll

public void setAll(java.lang.Object[] elements)
Sets all elements from an array of object


getAll

public java.lang.Object[] getAll()
Returns all elements as an array


clone

public java.lang.Object clone()

(c) 2000 - 2003 MQue Systems
All Rights Reserved