jreceiver.common.rec.driver
Class DriverBindingKey
java.lang.Object
|
+--jreceiver.common.rec.BaseRec
|
+--jreceiver.common.rec.driver.DriverBindingKey
- All Implemented Interfaces:
- Hashable, Key
- public class DriverBindingKey
- extends BaseRec
- implements Key
An interface representing a single master/slave binding key
- Version:
- $Revision: 1.2 $ $Date: 2002/10/05 07:10:20 $
- Author:
- Reed Esau
Method Summary |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
int |
getDriverMasterId()
|
int |
getDriverSlaveId()
|
java.util.Map |
getParams()
return the url parameters necessary to identify this rec by key |
boolean |
isValid()
return true if the key is sound |
void |
setDriverMasterId(int drv_master_id)
|
void |
setDriverSlaveId(int drv_slave_id)
|
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 object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HKEY_DRV_MASTER_ID
public static final java.lang.String HKEY_DRV_MASTER_ID
HKEY_DRV_SLAVE_ID
public static final java.lang.String HKEY_DRV_SLAVE_ID
DriverBindingKey
public DriverBindingKey()
- default
DriverBindingKey
public DriverBindingKey(int drv_master_id,
int drv_slave_id)
- ctor - shallow
DriverBindingKey
public DriverBindingKey(java.util.Hashtable hash)
- ctor - construct from a hashtable, usually retrieved via XML-RPC
equals
public boolean equals(java.lang.Object obj)
- Indicates whether some other object is "equal to" this one.
- Overrides:
equals
in class java.lang.Object
getDriverMasterId
public int getDriverMasterId()
setDriverMasterId
public void setDriverMasterId(int drv_master_id)
getDriverSlaveId
public int getDriverSlaveId()
setDriverSlaveId
public void setDriverSlaveId(int drv_slave_id)
isValid
public boolean isValid()
- return true if the key is sound
getParams
public java.util.Map getParams()
- return the url parameters necessary to identify this rec by key
toString
public java.lang.String toString()
- Returns a string representation of the object.
- Specified by:
toString
in interface Hashable
- Overrides:
toString
in class java.lang.Object
toHash
public java.util.Hashtable toHash()
- Store the object as a hash suitable for
transport over an XML-RPC connection or similar.
Use DriverBindingRec(Hashtable)
to transform the data
back into an object of this type.
- Specified by:
toHash
in interface Hashable
- Following copied from interface:
jreceiver.common.rec.Hashable
- Returns:
-
Copyright © 2001-2002 Reed Esau, All Rights Reserved.