kom.gateway
Class MsgIdTable
java.lang.Object
|
+--kom.gateway.MsgIdTable
- public class MsgIdTable
- extends java.lang.Object
Field Summary |
private java.util.Hashtable |
data
|
private DBLow |
db
|
private java.lang.String |
tableId
|
Constructor Summary |
(package private) |
MsgIdTable(java.lang.String t,
DBLow db)
class constructor |
Method Summary |
void |
addLocal(java.lang.String msgid,
java.lang.String id,
boolean write)
Associates a message id with a local reference |
void |
finalize()
|
private void |
getdata()
Gets table from file |
java.lang.String |
getLocal(java.lang.String msgid)
Translates message id to internal object reference |
void |
save()
Saves table to its file |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
,
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
data
private java.util.Hashtable data
tableId
private java.lang.String tableId
db
private DBLow db
MsgIdTable
MsgIdTable(java.lang.String t,
DBLow db)
- class constructor
- Parameters:
t
- Identifies hashtable (file)
getLocal
public java.lang.String getLocal(java.lang.String msgid)
- Translates message id to internal object reference
- Parameters:
msgid
- Message id- Returns:
- local reference or null
addLocal
public void addLocal(java.lang.String msgid,
java.lang.String id,
boolean write)
- Associates a message id with a local reference
- Parameters:
msgid
- Message idid
- Local referencewrite
- If true, save table to its file
save
public void save()
- Saves table to its file
finalize
public void finalize()
- Overrides:
- finalize in class java.lang.Object
getdata
private final void getdata()
- Gets table from file
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object