public class PhysicalDataContainerImpl extends java.lang.Object implements PhysicalDataContainer
Constructor and Description |
---|
PhysicalDataContainerImpl(java.lang.String componentId,
EntityContainer anEntityContainer,
com.ibm.commerce.foundation.internal.server.services.dataaccess.datamediator.DataMediator aDataMediator,
KeyManager aKeyManager)
Creates a new physical data container
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
createPhysicalObject(java.lang.Object owningObject,
java.lang.Class objectClass)
Creates a physical entity of the specified entity class
|
EntityContainer |
getEntityContainer()
This method returns the entity container associated with this
physical data container.
|
java.lang.Long |
getNextPrimaryKey(java.lang.Class aClass)
Gets the unique key for a database table represented by the given class (the mapping between
the physical table name and class name is defined by the object-relational mapping).
|
boolean |
getPagingRecordSetCompleteIndicator()
(non-Javadoc)
|
java.math.BigInteger |
getPagingRecordSetCount()
Returns the number of records from the query result set returned by this request.
|
java.lang.String |
getPagingRecordSetReferenceId()
(non-Javadoc)
|
java.math.BigInteger |
getPagingRecordSetStartNumber()
(non-Javadoc)
|
java.math.BigInteger |
getPagingTotal()
(non-Javadoc)
|
java.util.List |
getPhysicalObjects()
Gets the physical objects
|
void |
removePhysicalObject(java.lang.Object entityObject)
Removes the physical object from the objects associated
with the container.
|
void |
save()
This method applies all the changes made to the entity objects
stored by this physical data container.
|
public PhysicalDataContainerImpl(java.lang.String componentId, EntityContainer anEntityContainer, com.ibm.commerce.foundation.internal.server.services.dataaccess.datamediator.DataMediator aDataMediator, KeyManager aKeyManager)
componentId
- The component id.anEntityContainer
- The entity container which contains physical SDO.aDataMediator
- An instance object of DataMediator for
the current data mediator the caller is using.aKeyManager
- The instance object of KeyManagerpublic java.util.List getPhysicalObjects()
getPhysicalObjects
in interface PhysicalDataContainer
public java.lang.Object createPhysicalObject(java.lang.Object owningObject, java.lang.Class objectClass)
createPhysicalObject
in interface PhysicalDataContainer
owningObject
- The parent physical entityobjectClass
- The entity classpublic void removePhysicalObject(java.lang.Object entityObject)
removePhysicalObject
in interface PhysicalDataContainer
entityObject
- The entity object to be removed.public void save()
save
in interface PhysicalDataContainer
public java.lang.Long getNextPrimaryKey(java.lang.Class aClass)
getNextPrimaryKey
in interface PhysicalDataContainer
aClass
- - class representing the physical tablepublic java.math.BigInteger getPagingTotal()
getPagingTotal
in interface PhysicalDataContainer
PhysicalDataContainer.getPagingTotal()
public boolean getPagingRecordSetCompleteIndicator()
getPagingRecordSetCompleteIndicator
in interface PhysicalDataContainer
PhysicalDataContainer.getPagingRecordSetCompleteIndicator()
public java.lang.String getPagingRecordSetReferenceId()
getPagingRecordSetReferenceId
in interface PhysicalDataContainer
PhysicalDataContainer.getPagingRecordSetReferenceId()
public java.math.BigInteger getPagingRecordSetStartNumber()
getPagingRecordSetStartNumber
in interface PhysicalDataContainer
PhysicalDataContainer.getPagingRecordSetStartNumber()
public java.math.BigInteger getPagingRecordSetCount()
getPagingRecordSetCount
in interface PhysicalDataContainer
public EntityContainer getEntityContainer()
This method returns the entity container associated with this physical data container.