org.apache.ojb.odmg.collections
Class DMapEntry

java.lang.Object
  extended by org.apache.ojb.odmg.collections.DMapEntry
All Implemented Interfaces:
Serializable, Map.Entry, PersistenceBrokerAware

public class DMapEntry
extends Object
implements Map.Entry, Serializable, PersistenceBrokerAware

Version:
$Id: DMapEntry.java,v 1.1 2007-08-24 22:17:37 ewestfal Exp $
Author:
Thomas Mahler
See Also:
Serialized Form

Field Summary
private  Integer dmapId
           
private  Integer id
           
private  Identity keyOid
           
private  Object keyRealSubject
           
private  Logger log
           
private  PBKey pbKey
           
private static long serialVersionUID
           
private  Identity valueOid
           
private  Object valueRealSubject
           
 
Constructor Summary
DMapEntry()
          Used to materialize DMaps from the database.
DMapEntry(DMapImpl map, Object key, Object value)
          DMapEntry constructor comment.
 
Method Summary
 void afterDelete(PersistenceBroker broker)
          Is called as the last operation after an object was deleted in the underlying persistence system.
 void afterInsert(PersistenceBroker broker)
          Is called as the last operation after an object was inserted into the underlying persistence system.
 void afterLookup(PersistenceBroker broker)
          Is called as the last operation after an object was retrieved from the underlying persistence system via a call to the getObjectByXXX() or getCollectionByXXX()/getIteratorByXXX() methods in PersistenceBroker.
 void afterUpdate(PersistenceBroker broker)
          Is called as the last operation after an object was updated in the underlying persistence system.
 void beforeDelete(PersistenceBroker broker)
          Is called as the first operation before an object is deleted in the underlying persistence system.
 void beforeInsert(PersistenceBroker broker)
          Is called as the first operation before an object is inserted into the underlying persistence system.
 void beforeUpdate(PersistenceBroker broker)
          Is called as the first operation before an object is updated in the underlying persistence system.
 Integer getDmapId()
          Gets the dmapId.
 Integer getId()
          Gets the id.
 Object getKey()
           
 Identity getKeyOid()
           
protected  Logger getLog()
           
 PBKey getPBKey()
           
 Object getRealKey()
          Returns the real key object.
 Object getRealValue()
          Returns the real value object.
protected  TransactionImpl getTransaction()
           
 Object getValue()
           
 Identity getValueOid()
           
protected  void prepareForPersistency(PersistenceBroker broker)
           
protected  void prepareKeyRealSubject(PersistenceBroker broker)
           
protected  void prepareValueRealSubject(PersistenceBroker broker)
           
 void setDmapId(Integer dmapId)
          Sets the dmapId.
 void setId(Integer id)
          Sets the id.
 void setKeyOid(Identity keyOid)
           
 Object setValue(Object obj)
           
 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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

log

private transient Logger log

pbKey

private PBKey pbKey

id

private Integer id

dmapId

private Integer dmapId

keyOid

private Identity keyOid

valueOid

private Identity valueOid

keyRealSubject

private transient Object keyRealSubject

valueRealSubject

private transient Object valueRealSubject
Constructor Detail

DMapEntry

public DMapEntry()
Used to materialize DMaps from the database.


DMapEntry

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

Method Detail

getLog

protected Logger getLog()

getTransaction

protected TransactionImpl getTransaction()

getPBKey

public PBKey getPBKey()

prepareForPersistency

protected void prepareForPersistency(PersistenceBroker broker)

prepareKeyRealSubject

protected void prepareKeyRealSubject(PersistenceBroker broker)

prepareValueRealSubject

protected void prepareValueRealSubject(PersistenceBroker broker)

getRealKey

public Object getRealKey()
Returns the real key object.


getKey

public Object getKey()
Specified by:
getKey in interface Map.Entry

getRealValue

public Object getRealValue()
Returns the real value object.


getValue

public Object getValue()
Specified by:
getValue in interface Map.Entry

setValue

public Object setValue(Object obj)
Specified by:
setValue in interface Map.Entry

getDmapId

public Integer getDmapId()
Gets the dmapId.

Returns:
Returns a int

setDmapId

public void setDmapId(Integer dmapId)
Sets the dmapId.

Parameters:
dmapId - The dmapId to set

getId

public Integer getId()
Gets the id.

Returns:
Returns a int

setId

public void setId(Integer 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)

beforeInsert

public void beforeInsert(PersistenceBroker broker)
                  throws PersistenceBrokerException
Description copied from interface: PersistenceBrokerAware
Is called as the first operation before an object is inserted into the underlying persistence system.

Specified by:
beforeInsert in interface PersistenceBrokerAware
Parameters:
broker - The persistence broker performing the persistence operation
Throws:
PersistenceBrokerException

beforeUpdate

public void beforeUpdate(PersistenceBroker broker)
                  throws PersistenceBrokerException
Description copied from interface: PersistenceBrokerAware
Is called as the first operation before an object is updated in the underlying persistence system.

Specified by:
beforeUpdate in interface PersistenceBrokerAware
Parameters:
broker - The persistence broker performing the persistence operation
Throws:
PersistenceBrokerException

beforeDelete

public void beforeDelete(PersistenceBroker broker)
                  throws PersistenceBrokerException
Description copied from interface: PersistenceBrokerAware
Is called as the first operation before an object is deleted in the underlying persistence system.

Specified by:
beforeDelete in interface PersistenceBrokerAware
Parameters:
broker - The persistence broker performing the persistence operation
Throws:
PersistenceBrokerException

afterLookup

public void afterLookup(PersistenceBroker broker)
                 throws PersistenceBrokerException
Description copied from interface: PersistenceBrokerAware
Is called as the last operation after an object was retrieved from the underlying persistence system via a call to the getObjectByXXX() or getCollectionByXXX()/getIteratorByXXX() methods in PersistenceBroker.

Specified by:
afterLookup in interface PersistenceBrokerAware
Parameters:
broker - The persistence broker performing the persistence operation
Throws:
PersistenceBrokerException

afterDelete

public void afterDelete(PersistenceBroker broker)
                 throws PersistenceBrokerException
Description copied from interface: PersistenceBrokerAware
Is called as the last operation after an object was deleted in the underlying persistence system.

Specified by:
afterDelete in interface PersistenceBrokerAware
Parameters:
broker - The persistence broker performing the persistence operation
Throws:
PersistenceBrokerException

afterInsert

public void afterInsert(PersistenceBroker broker)
                 throws PersistenceBrokerException
Description copied from interface: PersistenceBrokerAware
Is called as the last operation after an object was inserted into the underlying persistence system.

Specified by:
afterInsert in interface PersistenceBrokerAware
Parameters:
broker - The persistence broker performing the persistence operation
Throws:
PersistenceBrokerException

afterUpdate

public void afterUpdate(PersistenceBroker broker)
                 throws PersistenceBrokerException
Description copied from interface: PersistenceBrokerAware
Is called as the last operation after an object was updated in the underlying persistence system.

Specified by:
afterUpdate in interface PersistenceBrokerAware
Parameters:
broker - The persistence broker performed the persistence operation
Throws:
PersistenceBrokerException


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.