|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.alarexgroup.m2mplf.db.TableRecord
public final class TableRecord
This class represents row of table. This class is used from class "Table" and serves to access to individual items - columns in table.
| Field Summary | |
|---|---|
static byte |
TYPE_BINARY
Type BINARY - byte array |
static byte |
TYPE_BYTE
Type BYTE |
static byte |
TYPE_DOUBLE
Type DOUBLE |
static byte |
TYPE_FLOAT
Type FLOAT |
static byte |
TYPE_INT
Type INT |
static byte |
TYPE_LONG
TYPe DOUBLE |
static byte |
TYPE_SHORT
Type SHORT |
static byte |
TYPE_STRING
Type String |
| Method Summary | |
|---|---|
byte[] |
getColumnAsBinary(int id)
Reads column as a BINARY value - array of bytes |
byte |
getColumnAsByte(int id)
Reads column as a BYTE value |
double |
getColumnAsDouble(int id)
Reads column as a DOUBLE value |
float |
getColumnAsFloat(int id)
Reads column as a FLOAT value |
int |
getColumnAsInt(int id)
Reads column as a INT value |
long |
getColumnAsLong(int id)
Reads column as a LONG value |
int |
getColumnAsShort(int id)
Reads column as a SHORT value |
java.lang.String |
getColumnAsString(int id)
Reads column as a String value |
void |
setColumnAsBinary(int id,
byte[] value)
Saves into column of byte's array |
void |
setColumnAsByte(int id,
byte value)
Saves BYTE value into column |
void |
setColumnAsDouble(int id,
double value)
Saves FLOAT value into column |
void |
setColumnAsFloat(int id,
float value)
Saves FLOAT value into column |
void |
setColumnAsInt(int id,
int value)
Saves INT value into column |
void |
setColumnAsLong(int id,
long value)
Saves LONG value into column |
void |
setColumnAsShort(int id,
short value)
Saves SHORT value into column |
void |
setColumnAsString(int id,
java.lang.String value)
Saves String value into column as String |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte TYPE_STRING
public static final byte TYPE_INT
public static final byte TYPE_FLOAT
public static final byte TYPE_LONG
public static final byte TYPE_BYTE
public static final byte TYPE_BINARY
public static final byte TYPE_DOUBLE
public static final byte TYPE_SHORT
| Method Detail |
|---|
public void setColumnAsString(int id,
java.lang.String value)
id - number of columnvalue -
public void setColumnAsLong(int id,
long value)
id - clumn numbervalue -
public void setColumnAsInt(int id,
int value)
id - clumn numbervalue -
public void setColumnAsShort(int id,
short value)
id - clumn numbervalue -
public void setColumnAsFloat(int id,
float value)
id - clumn numbervalue -
public void setColumnAsDouble(int id,
double value)
id - clumn numbervalue -
public void setColumnAsByte(int id,
byte value)
id - clumn numbervalue -
public void setColumnAsBinary(int id,
byte[] value)
id - column numbervalue - public java.lang.String getColumnAsString(int id)
id - column number
public int getColumnAsInt(int id)
id - column number
public int getColumnAsShort(int id)
id - column number
public long getColumnAsLong(int id)
id - column number
public float getColumnAsFloat(int id)
id - column number
public double getColumnAsDouble(int id)
id - column number
public byte getColumnAsByte(int id)
id - column number
public byte[] getColumnAsBinary(int id)
id - column number
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||