org.apache.ojb.odmg.collections
Class DMapEntry

java.lang.Object
  extended byorg.apache.ojb.odmg.collections.DMapEntry
All Implemented Interfaces:
java.util.Map.Entry, java.io.Serializable

public class DMapEntry
extends java.lang.Object
implements java.util.Map.Entry, java.io.Serializable

Version:
$Id: DMapEntry.java,v 1.16 2004/01/07 19:11:11 arminw Exp $
Author:
Thomas Mahler
See Also:
Serialized Form

Constructor Summary
DMapEntry()
          DMapEntry constructor comment.
DMapEntry(DMapImpl map, java.lang.Object key, java.lang.Object value)
          DMapEntry constructor comment.
DMapEntry(int id, int mapId, Identity keyOID, Identity valueOID)
          DMapEntry constructor comment.
DMapEntry(PBKey key)
           
 
Method Summary
protected  int generateNewId()
          return a unique id
 int getDmapId()
          Gets the dmapId.
 int getId()
          Gets the id.
 java.lang.Object getKey()
          getKey method comment.
 Identity getKeyOID()
           
 java.lang.Object getValue()
          getValue method comment.
 Identity getValueOID()
           
 void setDmapId(int dmapId)
          Sets the dmapId.
 void setId(int id)
          Sets the id.
 void setKeyOID(Identity keyOID)
           
 java.lang.Object setValue(java.lang.Object obj)
          setValue method comment.
 void setValueOID(Identity valueOID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map.Entry
equals, hashCode
 

Constructor Detail

DMapEntry

public DMapEntry()
DMapEntry constructor comment.


DMapEntry

public DMapEntry(PBKey key)

DMapEntry

public DMapEntry(int id,
                 int mapId,
                 Identity keyOID,
                 Identity valueOID)
DMapEntry constructor comment.


DMapEntry

public DMapEntry(DMapImpl map,
                 java.lang.Object key,
                 java.lang.Object value)
DMapEntry constructor comment.

Method Detail

generateNewId

protected int generateNewId()
return a unique id


getKey

public java.lang.Object getKey()
getKey method comment.

Specified by:
getKey in interface java.util.Map.Entry

getValue

public java.lang.Object getValue()
getValue method comment.

Specified by:
getValue in interface java.util.Map.Entry

setValue

public java.lang.Object setValue(java.lang.Object obj)
setValue method comment.

Specified by:
setValue in interface java.util.Map.Entry

getDmapId

public int getDmapId()
Gets the dmapId.

Returns:
Returns a int

setDmapId

public void setDmapId(int dmapId)
Sets the dmapId.

Parameters:
dmapId - The dmapId to set

getId

public int getId()
Gets the id.

Returns:
Returns a int

setId

public void setId(int id)
Sets the id.

Parameters:
id - The id to set

getKeyOID

public Identity getKeyOID()

setKeyOID

public void setKeyOID(Identity keyOID)

getValueOID

public Identity getValueOID()

setValueOID

public void setValueOID(Identity valueOID)


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14