org.apache.ojb.odmg.collections
Class DListEntry

java.lang.Object
  extended by org.apache.ojb.odmg.collections.DListEntry
All Implemented Interfaces:
Serializable, PersistenceBrokerAware
Direct Known Subclasses:
DSetEntry

public class DListEntry
extends Object
implements Serializable, PersistenceBrokerAware

Encapsulates an DList entry object.

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

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

realSubject

protected transient Object realSubject

pbKey

protected PBKey pbKey

id

protected Integer id

dlistId

protected Integer dlistId

oid

protected Identity oid

position

protected int position
Constructor Detail

DListEntry

public DListEntry()
Used to instantiate persistent DLists from DB by the kernel FOR INTERNAL USE ONLY


DListEntry

public DListEntry(DListImpl theDList,
                  Object theObject)
Standard way to instantiate new entries

Method Detail

getLog

protected Logger getLog()

getTransaction

protected TransactionImpl getTransaction()

getPBKey

public PBKey getPBKey()

prepareForPersistency

protected void prepareForPersistency(PersistenceBroker broker)

prepareRealSubject

protected void prepareRealSubject(PersistenceBroker broker)

getRealSubject

public Object getRealSubject()

setRealSubject

public void setRealSubject(Object realSubject)

getPosition

public int getPosition()

setPosition

public void setPosition(int newPosition)

getDlistId

public Integer getDlistId()
Gets the dlistId.

Returns:
Returns a int

setDlistId

public void setDlistId(Integer dlistId)
Sets the dlistId.

Parameters:
dlistId - The dlistId 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

getOid

public Identity getOid()

setOid

public void setOid(Identity oid)

toString

public String toString()
return String representation.

Overrides:
toString in class Object

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 © 2004-2012 The Kuali Foundation. All Rights Reserved.