|
OSMQ v2.0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectosmq.records.DataRecordWrapper
Field Summary |
Fields inherited from interface osmq.records.DataRecord |
DEFAULT_DELIMITER |
Constructor Summary | |
DataRecordWrapper(DataRecord ds)
|
Method Summary | |
void |
clear(int p)
Clears the value at the designated position, setting it to null (or zero if numeric) |
void |
clearAll()
Clears all the elements in the DataRecord object, setting them to null (or zero if numeric) |
java.lang.Object |
clone()
|
java.lang.Object[] |
getAsArray()
Returns an array that contains all element values |
java.math.BigDecimal |
getBigDecimal(int p)
Returns the value at the designated position in the DataRecord object as a BigDecimal |
boolean |
getBoolean(int p)
Returns the value at the designated position in the DataRecord object as a boolean |
byte |
getByte(int p)
Returns the value at the designated position in the DataRecord object as a byte |
byte[] |
getBytes()
Returns the dataset elements as an array of bytes. |
char |
getChar(int p)
Returns the value at the designated position in the DataRecord object as a char |
java.util.Date |
getDate(int p)
Returns the value at the designated position in the DataRecord object as a Java Date |
char |
getDefaultDelimiter()
Returns the character that is used to delimit the various elements when the elements are strung together. |
double |
getDouble(int p)
Returns the value at the designated position in the DataRecord object as a double |
int |
getElementCount()
Returns the number of positions in the DataRecord (including those that are empty) |
float |
getFloat(int p)
Returns the value at the designated position in the DataRecord object as a float |
java.lang.String |
getFormattedDateString(int posn)
Returns the value at the designated position as a formatted date string in CCYY-MM-DD format. |
int |
getInt(int p)
Returns the value at the designated position in the DataRecord object as an integer. |
long |
getLong(int p)
Returns the value at the designated position in the DataRecord object as a long integer |
java.lang.Object |
getObject(int p)
Returns the value of the designated position in the DataRecord. |
int |
getOffsetIndex()
Returns the base index currently used to reference elements in the DataRecord. |
short |
getShort(int p)
Returns the value at the designated position in the DataRecord object as a short integer |
java.sql.Date |
getSQLDate(int posn)
Returns the value at the designated position as a java.SQL.Date |
java.lang.String |
getString(int p)
Returns the value of the designated position in the DataRecord object as a String |
java.lang.String |
getText()
Creates a delimited String from the DataRecord elements The first character in the String is assumed to be the delimiting character. |
java.lang.String |
getUnformattedDateString(int posn)
Returns the value at the designated position as an unformatted date string in CCYYMMDD format. |
java.lang.String |
getUpperCaseString(int p)
Returns the value at the designated position in the DataRecord object as a String with all characters forced into upper case. |
boolean |
hasADelimiter()
|
boolean |
hasAValue(int p)
Determines whether a position has a value (versus null) |
boolean |
isADataRecord()
|
boolean |
isEmpty(int p)
Determines if a position has no value (is empty). |
boolean |
isImmutable()
Returns true if this is an immutable message. |
boolean |
isNull(int p)
Determines if a position has no value (is a null value). |
void |
resetSize(int newsize)
Resets the size (number of elements) in the DataRecord object, and clears all the values |
void |
setBigDecimal(int p,
java.math.BigDecimal value)
Sets the element at the designated position in the DataRecord object to a BigDecimal value |
void |
setBoolean(int p,
boolean value)
Sets the element at the designated position in the DataRecord object to a boolean value |
void |
setByte(int p,
byte value)
Sets the element at the designated position in the DataRecord object to a byte value |
void |
setBytes(byte[] value)
Sets the DataRecord elements to the values found in a delimited array of bytes. |
void |
setChar(int p,
char value)
Sets the element at the designated position in the DataRecord object to a char value |
void |
setDate(int p,
java.util.Date value)
Sets the element at the designated position in the DataRecord object to a Date value |
void |
setDateString(int posn,
java.lang.String value)
|
void |
setDecimalString(int p,
java.lang.String value)
Sets the element at the designated position in the DataRecord object to a decimal String value |
void |
setDouble(int p,
double value)
Sets the element at the designated position in the DataRecord object to a double value |
void |
setFloat(int p,
float value)
Sets the element at the designated position in the DataRecord object to a float value |
void |
setFromArray(java.lang.Object[] s)
Sets the data elements from the values in an array. |
void |
setImmutable()
Sets the DataRecord's state to immutable. The values of an immutable DataRecord cannot be modified. |
void |
setInt(int p,
int value)
Sets the element at the designated position in the DataRecord object to an int value |
void |
setLong(int p,
long value)
Sets the element at the designated position in the DataRecord object to a long value |
void |
setNull(int p)
Sets the value at the designated position in the DataRecord to null |
void |
setObject(int p,
java.lang.Object value)
Sets the value at the designated position in the DataRecord object |
void |
setOffsetIndex(int value)
Sets the base index used to reference elements in the DataRecord. |
void |
setShort(int p,
short value)
Sets the element at the designated position in the DataRecord object to a short value |
void |
setString(int p,
java.lang.String s)
Sets the element at the designated position in the DataRecord object to a String value |
void |
setText(java.lang.String value)
Sets the DataRecord elements to the values found in a delimited String. |
void |
setTrimmedString(int p,
java.lang.String s)
Sets the element at the designated position to a String value. |
void |
setUpperCaseString(int p,
java.lang.String value)
Sets the element at the designated position in the DataRecord object to an upper-case String value |
java.lang.String |
toString()
|
boolean |
wasNull()
Returns true if the lastfetched element was a null object, or an object with a string length of zero. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DataRecordWrapper(DataRecord ds)
Method Detail |
public boolean isImmutable()
isImmutable
in interface Immutable
setImmutable()
public void setImmutable()
setImmutable
in interface Immutable
ImmutableException
public void clearAll()
clearAll
in interface DataRecord
ImmutableDataException
- if the DataRecord object is immutable.public void clear(int p)
clear
in interface DataRecord
ImmutableDataException
- if the DataRecord object is immutable.clearAll()
public java.lang.String toString()
public java.lang.String getText()
getText
in interface DataRecord
public byte[] getBytes()
getBytes
in interface DataRecord
public java.lang.Object getObject(int p)
getObject
in interface DataRecord
p
- the first position is 1, the second is 2, ...
java.lang.ArrayIndexOutOfBoundsException
- if positionIndex is not a
valid position.public java.lang.Object[] getAsArray()
DataRecord
getAsArray
in interface DataRecord
public char getChar(int p)
getChar
in interface DataRecord
p
- the first position is 1, the second is 2, ...
java.lang.ArrayIndexOutOfBoundsException
- if positionIndex is not a valid position.public byte getByte(int p)
getByte
in interface DataRecord
p
- the first position is 1, the second is 2, ...
java.lang.ArrayIndexOutOfBoundsException
- if positionIndex is not a valid position.public boolean getBoolean(int p)
getBoolean
in interface DataRecord
p
- the first position is 1, the second is 2, ...
java.lang.ArrayIndexOutOfBoundsException
- if positionIndex is not a valid position.public float getFloat(int p)
getFloat
in interface DataRecord
p
- the first position is 1, the second is 2, ...
java.lang.ArrayIndexOutOfBoundsException
- if positionIndex is not a
valid position.public double getDouble(int p)
getDouble
in interface DataRecord
p
- the first position is 1, the second is 2, ...
java.lang.ArrayIndexOutOfBoundsException
- if positionIndex is not a
valid position.public java.math.BigDecimal getBigDecimal(int p)
getBigDecimal
in interface DataRecord
p
- the first position is 1, the second is 2, ...
java.lang.ArrayIndexOutOfBoundsException
- if positionIndex is not a
valid position.public int getElementCount()
getElementCount
in interface DataRecord
java.lang.ArrayIndexOutOfBoundsException
- if positionIndex is not a valid position.public int getInt(int p)
getInt
in interface DataRecord
p
- the first position is 1, the second is 2, ...
java.lang.ArrayIndexOutOfBoundsException
- if positionIndex is not a valid position.public long getLong(int p)
getLong
in interface DataRecord
p
- the first position is 1, the second is 2, ...
java.lang.ArrayIndexOutOfBoundsException
- if columnIndex is not a valid element position.public short getShort(int p)
getShort
in interface DataRecord
p
- the first position is 1, the second is 2, ...
java.lang.ArrayIndexOutOfBoundsException
- if columnIndex is not a valid element position.public java.lang.String getString(int p)
getString
in interface DataRecord
p
- the first position is 1, the second is 2, ...
java.lang.ArrayIndexOutOfBoundsException
- if positionIndex is not a valid position.public java.lang.String getUpperCaseString(int p)
getUpperCaseString
in interface DataRecord
p
- the first position is 1, the second is 2, ...
java.lang.ArrayIndexOutOfBoundsException
- if positionIndex is not a valid element position.public java.util.Date getDate(int p)
getDate
in interface DataRecord
p
- the first position is 1, the second is 2, ...
java.lang.ArrayIndexOutOfBoundsException
- if columnIndex is not a valid element position.public boolean hasAValue(int p)
hasAValue
in interface DataRecord
p
- the position containing the value to be tested
java.lang.ArrayIndexOutOfBoundsException
- if positionIndex is not a valid position.public boolean isEmpty(int p)
isEmpty
in interface DataRecord
p
- the position containing the value to be tested
java.lang.ArrayIndexOutOfBoundsException
- if positionIndex is not a valid position.public boolean isNull(int p)
isNull
in interface DataRecord
p
- the position containing the value to be tested
java.lang.ArrayIndexOutOfBoundsException
- if positionIndex is not a valid position.public void resetSize(int newsize)
resetSize
in interface DataRecord
newsize
- the number of elements in the resized object
ImmutableDataException
- if the DataRecord object is immutablepublic void setText(java.lang.String value)
setText
in interface DataRecord
ImmutableDataException
- if the DataRecord object is immutable.public void setBytes(byte[] value)
setBytes
in interface DataRecord
ImmutableDataException
- if the DataRecord object is immutable.public void setObject(int p, java.lang.Object value)
setObject
in interface DataRecord
value
- the element's new valuep
- the first position is 1, the second is 2, ...
java.lang.ArrayIndexOutOfBoundsException
- if p is not a valid element position.
ImmutableException
- if the DataRecord object is immutable.public void setString(int p, java.lang.String s)
setString
in interface DataRecord
p
- the element's relative position (1 to n)s
- the element's new value
java.lang.ArrayIndexOutOfBoundsException
- if p is not a valid element position.
ImmutableException
- if the DataRecord object is immutable.public void setTrimmedString(int p, java.lang.String s)
DataRecord
setTrimmedString
in interface DataRecord
p
- the first position is 1, the second is 2, ...s
- the element's new valuepublic void setNull(int p)
setNull
in interface DataRecord
p
- the first position is 1, the second is 2, ...
java.lang.ArrayIndexOutOfBoundsException
- if p is not a valid element position.
ImmutableException
- if the DataRecord object is immutable.public void setByte(int p, byte value)
setByte
in interface DataRecord
value
- the element's new valuep
- the first position is 1, the second is 2, ...
java.lang.ArrayIndexOutOfBoundsException
- if positionIndex is not a valid position.
ImmutableException
- if the DataRecord object is immutable.public void setBoolean(int p, boolean value)
setBoolean
in interface DataRecord
value
- the element's new valuep
- the first position is 1, the second is 2, ...
java.lang.ArrayIndexOutOfBoundsException
- if positionIndex is not a valid position.
ImmutableException
- if the DataRecord object is immutable.public void setChar(int p, char value)
setChar
in interface DataRecord
value
- the element's new valuep
- the first position is 1, the second is 2, ...
java.lang.ArrayIndexOutOfBoundsException
- if positionIndex is not a valid position.
ImmutableException
- if the DataRecord object is immutable.public void setFloat(int p, float value)
setFloat
in interface DataRecord
value
- the element's new valuep
- the first position is 1, the second is 2, ...
java.lang.ArrayIndexOutOfBoundsException
- if positionIndex is not a valid position.
ImmutableException
- if the DataRecord object is immutable.public void setDouble(int p, double value)
setDouble
in interface DataRecord
value
- the element's new valuep
- the first position is 1, the second is 2, ...
java.lang.ArrayIndexOutOfBoundsException
- if positionIndex is not a valid position.
ImmutableException
- if the DataRecord object is immutable.public void setDecimalString(int p, java.lang.String value)
setDecimalString
in interface DataRecord
value
- the element's new value
java.lang.ArrayIndexOutOfBoundsException
- if positionIndex is not a valid position.
ImmutableException
- if the DataRecord object is immutable.public void setBigDecimal(int p, java.math.BigDecimal value)
setBigDecimal
in interface DataRecord
value
- the element's new valuep
- the first position is 1, the second is 2, ...
java.lang.ArrayIndexOutOfBoundsException
- if positionIndex is not a valid position.
ImmutableException
- if the DataRecord object is immutable.public void setDate(int p, java.util.Date value)
setDate
in interface DataRecord
value
- the element's new valuep
- the first position is 1, the second is 2, ...
java.lang.ArrayIndexOutOfBoundsException
- if positionIndex is not a valid position.
ImmutableException
- if the DataRecord object is immutable.public void setFromArray(java.lang.Object[] s)
setFromArray
in interface DataRecord
ImmutableException
- if the data elements are immutable.public void setInt(int p, int value)
setInt
in interface DataRecord
value
- the element's new valuep
- the first position is 1, the second is 2, ...
java.lang.ArrayIndexOutOfBoundsException
- if positionIndex is not a valid position.
ImmutableException
- if the DataRecord object is immutable.public void setLong(int p, long value)
setLong
in interface DataRecord
value
- the element's new valuep
- the first position is 1, the second is 2, ...
java.lang.ArrayIndexOutOfBoundsException
- if positionIndex is not a valid position.
ImmutableException
- if the DataRecord object is immutable.public void setShort(int p, short value)
setShort
in interface DataRecord
value
- the element's new valuep
- the first position is 1, the second is 2, ...
java.lang.ArrayIndexOutOfBoundsException
- if positionIndex is not a valid position.
ImmutableException
- if the DataRecord object is immutable.public void setUpperCaseString(int p, java.lang.String value)
setUpperCaseString
in interface DataRecord
value
- the element's new valuep
- the first position is 1, the second is 2, ...
java.lang.ArrayIndexOutOfBoundsException
- if positionIndex is not a valid position.
ImmutableException
- if the DataRecord object is immutable.public void setOffsetIndex(int value)
setOffsetIndex
in interface DataRecord
value
- the new base index valuepublic int getOffsetIndex()
getOffsetIndex
in interface DataRecord
setOffsetIndex(int)
public boolean wasNull()
getXXX()
method call.)
wasNull
in interface DataRecord
public void setDateString(int posn, java.lang.String value)
setDateString
in interface DataRecord
public java.lang.String getFormattedDateString(int posn)
DataRecord
getFormattedDateString
in interface DataRecord
public java.lang.String getUnformattedDateString(int posn)
DataRecord
getUnformattedDateString
in interface DataRecord
DataRecord.setDateString(int, String)
public java.sql.Date getSQLDate(int posn)
DataRecord
getSQLDate
in interface DataRecord
DataRecord.setDateString(int, String)
public char getDefaultDelimiter()
DataRecord
getDefaultDelimiter
in interface DataRecord
public boolean hasADelimiter()
hasADelimiter
in interface ByteArray
public java.lang.Object clone()
clone
in interface DataRecord
public boolean isADataRecord()
isADataRecord
in interface ByteArray
|
(c) 2000 - 2003 MQue Systems All Rights Reserved |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |