Package db
Class SparseRecord
- java.lang.Object
-
- db.DBRecord
-
- db.SparseRecord
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
read(Buffer buf, int offset)
Read the record field data from the specified buffer and offsetvoid
setBooleanValue(int colIndex, boolean value)
Set the boolean value for the specified field.void
setByteValue(int colIndex, byte value)
Set the byte value for the specified field.void
setField(int colIndex, Field value)
Set the field value for the specified field.void
setIntValue(int colIndex, int value)
Set the integer value for the specified field.void
setLongValue(int colIndex, long value)
Set the long value for the specified field.void
setShortValue(int colIndex, short value)
Set the short value for the specified field.void
write(Buffer buf, int offset)
Write the record fields to the specified buffer and offset.-
Methods inherited from class db.DBRecord
compareFieldTo, compareTo, copy, equals, fieldEquals, getBinaryData, getBooleanValue, getByteValue, getColumnCount, getFieldValue, getIntValue, getKey, getKeyField, getLongValue, getShortValue, getString, hashCode, hasSameSchema, hasSameSchema, invalidateLength, isDirty, length, setBinaryData, setKey, setKey, setString, toString
-
-
-
-
Method Detail
-
write
public void write(Buffer buf, int offset) throws java.io.IOException
Description copied from class:DBRecord
Write the record fields to the specified buffer and offset.
-
read
public void read(Buffer buf, int offset) throws java.io.IOException
Description copied from class:DBRecord
Read the record field data from the specified buffer and offset
-
setField
public void setField(int colIndex, Field value)
Description copied from class:DBRecord
Set the field value for the specified field.
-
setLongValue
public void setLongValue(int colIndex, long value)
Description copied from class:DBRecord
Set the long value for the specified field.- Overrides:
setLongValue
in classDBRecord
- Parameters:
colIndex
- field indexvalue
- field value
-
setIntValue
public void setIntValue(int colIndex, int value)
Description copied from class:DBRecord
Set the integer value for the specified field.- Overrides:
setIntValue
in classDBRecord
- Parameters:
colIndex
- field indexvalue
- field value
-
setShortValue
public void setShortValue(int colIndex, short value)
Description copied from class:DBRecord
Set the short value for the specified field.- Overrides:
setShortValue
in classDBRecord
- Parameters:
colIndex
- field indexvalue
- field value
-
setByteValue
public void setByteValue(int colIndex, byte value)
Description copied from class:DBRecord
Set the byte value for the specified field.- Overrides:
setByteValue
in classDBRecord
- Parameters:
colIndex
- field indexvalue
- field value
-
setBooleanValue
public void setBooleanValue(int colIndex, boolean value)
Description copied from class:DBRecord
Set the boolean value for the specified field.- Overrides:
setBooleanValue
in classDBRecord
- Parameters:
colIndex
- field indexvalue
- field value
-
-