|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ojb.odmg.collections.DListEntry
public class DListEntry
Encapsulates an DList entry object.
| Field Summary | |
|---|---|
protected Integer |
dlistId
|
protected Integer |
id
|
protected Identity |
oid
|
protected PBKey |
pbKey
|
protected int |
position
|
protected Object |
realSubject
|
| Constructor Summary | |
|---|---|
DListEntry()
Used to instantiate persistent DLists from DB by the kernel FOR INTERNAL USE ONLY |
|
DListEntry(DListImpl theDList,
Object theObject)
Standard way to instantiate new entries |
|
| 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 |
getDlistId()
Gets the dlistId. |
Integer |
getId()
Gets the id. |
protected Logger |
getLog()
|
Identity |
getOid()
|
PBKey |
getPBKey()
|
int |
getPosition()
|
Object |
getRealSubject()
|
protected TransactionImpl |
getTransaction()
|
protected void |
prepareForPersistency(PersistenceBroker broker)
|
protected void |
prepareRealSubject(PersistenceBroker broker)
|
void |
setDlistId(Integer dlistId)
Sets the dlistId. |
void |
setId(Integer id)
Sets the id. |
void |
setOid(Identity oid)
|
void |
setPosition(int newPosition)
|
void |
setRealSubject(Object realSubject)
|
String |
toString()
return String representation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected transient Object realSubject
protected PBKey pbKey
protected Integer id
protected Integer dlistId
protected Identity oid
protected int position
| Constructor Detail |
|---|
public DListEntry()
public DListEntry(DListImpl theDList,
Object theObject)
| Method Detail |
|---|
protected Logger getLog()
protected TransactionImpl getTransaction()
public PBKey getPBKey()
protected void prepareForPersistency(PersistenceBroker broker)
protected void prepareRealSubject(PersistenceBroker broker)
public Object getRealSubject()
public void setRealSubject(Object realSubject)
public int getPosition()
public void setPosition(int newPosition)
public Integer getDlistId()
public void setDlistId(Integer dlistId)
dlistId - The dlistId to setpublic Integer getId()
public void setId(Integer id)
id - The id to setpublic Identity getOid()
public void setOid(Identity oid)
public String toString()
toString in class Object
public void beforeInsert(PersistenceBroker broker)
throws PersistenceBrokerException
PersistenceBrokerAware
beforeInsert in interface PersistenceBrokerAwarebroker - The persistence broker performing the persistence operation
PersistenceBrokerException
public void beforeUpdate(PersistenceBroker broker)
throws PersistenceBrokerException
PersistenceBrokerAware
beforeUpdate in interface PersistenceBrokerAwarebroker - The persistence broker performing the persistence operation
PersistenceBrokerException
public void beforeDelete(PersistenceBroker broker)
throws PersistenceBrokerException
PersistenceBrokerAware
beforeDelete in interface PersistenceBrokerAwarebroker - The persistence broker performing the persistence operation
PersistenceBrokerException
public void afterLookup(PersistenceBroker broker)
throws PersistenceBrokerException
PersistenceBrokerAwaregetObjectByXXX() or
getCollectionByXXX()/getIteratorByXXX() methods in
PersistenceBroker.
afterLookup in interface PersistenceBrokerAwarebroker - The persistence broker performing the persistence operation
PersistenceBrokerException
public void afterDelete(PersistenceBroker broker)
throws PersistenceBrokerException
PersistenceBrokerAware
afterDelete in interface PersistenceBrokerAwarebroker - The persistence broker performing the persistence operation
PersistenceBrokerException
public void afterInsert(PersistenceBroker broker)
throws PersistenceBrokerException
PersistenceBrokerAware
afterInsert in interface PersistenceBrokerAwarebroker - The persistence broker performing the persistence operation
PersistenceBrokerException
public void afterUpdate(PersistenceBroker broker)
throws PersistenceBrokerException
PersistenceBrokerAware
afterUpdate in interface PersistenceBrokerAwarebroker - The persistence broker performed the persistence operation
PersistenceBrokerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||