|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ojb.odmg.collections.DMapEntry
public class DMapEntry
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 |
---|
private static final long serialVersionUID
private transient Logger log
private PBKey pbKey
private Integer id
private Integer dmapId
private Identity keyOid
private Identity valueOid
private transient Object keyRealSubject
private transient Object valueRealSubject
Constructor Detail |
---|
public DMapEntry()
public DMapEntry(DMapImpl map, Object key, Object value)
Method Detail |
---|
protected Logger getLog()
protected TransactionImpl getTransaction()
public PBKey getPBKey()
protected void prepareForPersistency(PersistenceBroker broker)
protected void prepareKeyRealSubject(PersistenceBroker broker)
protected void prepareValueRealSubject(PersistenceBroker broker)
public Object getRealKey()
public Object getKey()
getKey
in interface Map.Entry
public Object getRealValue()
public Object getValue()
getValue
in interface Map.Entry
public Object setValue(Object obj)
setValue
in interface Map.Entry
public Integer getDmapId()
public void setDmapId(Integer dmapId)
dmapId
- The dmapId to setpublic Integer getId()
public void setId(Integer id)
id
- The id to setpublic Identity getKeyOid()
public void setKeyOid(Identity keyOid)
public Identity getValueOid()
public void setValueOid(Identity valueOid)
public void beforeInsert(PersistenceBroker broker) throws PersistenceBrokerException
PersistenceBrokerAware
beforeInsert
in interface PersistenceBrokerAware
broker
- The persistence broker performing the persistence operation
PersistenceBrokerException
public void beforeUpdate(PersistenceBroker broker) throws PersistenceBrokerException
PersistenceBrokerAware
beforeUpdate
in interface PersistenceBrokerAware
broker
- The persistence broker performing the persistence operation
PersistenceBrokerException
public void beforeDelete(PersistenceBroker broker) throws PersistenceBrokerException
PersistenceBrokerAware
beforeDelete
in interface PersistenceBrokerAware
broker
- The persistence broker performing the persistence operation
PersistenceBrokerException
public void afterLookup(PersistenceBroker broker) throws PersistenceBrokerException
PersistenceBrokerAware
getObjectByXXX()
or
getCollectionByXXX()
/getIteratorByXXX()
methods in
PersistenceBroker
.
afterLookup
in interface PersistenceBrokerAware
broker
- The persistence broker performing the persistence operation
PersistenceBrokerException
public void afterDelete(PersistenceBroker broker) throws PersistenceBrokerException
PersistenceBrokerAware
afterDelete
in interface PersistenceBrokerAware
broker
- The persistence broker performing the persistence operation
PersistenceBrokerException
public void afterInsert(PersistenceBroker broker) throws PersistenceBrokerException
PersistenceBrokerAware
afterInsert
in interface PersistenceBrokerAware
broker
- The persistence broker performing the persistence operation
PersistenceBrokerException
public void afterUpdate(PersistenceBroker broker) throws PersistenceBrokerException
PersistenceBrokerAware
afterUpdate
in interface PersistenceBrokerAware
broker
- The persistence broker performed the persistence operation
PersistenceBrokerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |