|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--jreceiver.common.rec.BaseRec
|
+--jreceiver.common.rec.driver.DeviceRec
A record from the Drivers table
| Field Summary | |
protected java.lang.String |
address
|
protected int |
device_id
|
protected int |
driver_id
|
protected long |
timestamp
|
| Fields inherited from interface jreceiver.common.rec.driver.Device |
HKEY_ADDRESS, HKEY_DEVICE_ID, HKEY_DRIVER_ID, HKEY_TIMESTAMP |
| Fields inherited from interface jreceiver.common.rec.Rec |
HKEY_KEY, NO_LIMIT |
| Constructor Summary | |
DeviceRec()
ctor - for use as bean |
|
DeviceRec(java.util.Hashtable hash)
ctor - construct from a hashtable, usually retrieved via XML-RPC |
|
DeviceRec(int device_id,
int driver_id,
java.lang.String address,
long timestamp)
ctor - default |
|
| Method Summary | |
java.lang.String |
getAddress()
This address is a the network address by which to identify the receiver. |
int |
getDriverId()
The driver with which the device is associated |
int |
getId()
The driver with which the device is associated |
java.lang.Object |
getKey()
return the Integer object that serves as this Rec's key. |
long |
getTimestamp()
This is when the device was last updated |
static java.util.Vector |
reconstitute(java.util.Vector vector)
Reconstitute each DeviceRec object that appears as a hash in the list. |
void |
setKey(java.lang.Object new_key)
assign the Number-derived, Key-derived or String that serves as this Rec's key. |
java.util.Hashtable |
toHash()
Store the object as a hash suitable for transport over an XML-RPC connection or similar. |
java.lang.String |
toString()
Returns a string representation of the event. |
| Methods inherited from class jreceiver.common.rec.BaseRec |
dissolve, dissolveMap, find, find, find, find |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected int device_id
protected int driver_id
protected java.lang.String address
protected long timestamp
| Constructor Detail |
public DeviceRec()
public DeviceRec(int device_id,
int driver_id,
java.lang.String address,
long timestamp)
public DeviceRec(java.util.Hashtable hash)
throws RecException
hash - | Method Detail |
public java.util.Hashtable toHash()
Use DeviceRec(Hashtable) to transform the data
back into an object of this type.
toHash in interface Hashablepublic java.lang.String toString()
toString in interface HashabletoString in class java.lang.Objectpublic java.lang.Object getKey()
getKey in interface Recpublic void setKey(java.lang.Object new_key)
setKey in interface Recpublic int getId()
getId in interface Devicepublic int getDriverId()
getDriverId in interface Devicepublic java.lang.String getAddress()
getAddress in interface Devicepublic long getTimestamp()
getTimestamp in interface Device
public static java.util.Vector reconstitute(java.util.Vector vector)
throws RecException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||