|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.core.logic.impl.StatelessControllerImpl
org.opensubsystems.patterns.mappeddata.logic.impl.MappingControllerImpl
public class MappingControllerImpl
Implementation of MappingController interface to manage mapped data records.
| Field Summary | |
|---|---|
protected MappingFactory |
m_mappingFactory
Factory to use to execute persistence operations. |
| Constructor Summary | |
|---|---|
MappingControllerImpl()
Default constructor. |
|
| Method Summary | |
|---|---|
org.opensubsystems.core.data.DataObject |
create(org.opensubsystems.core.data.DataObject data)
|
void |
create(org.opensubsystems.core.util.ThreeIntStruct tisValues)
Create mapped data. |
void |
delete(int iId)
Delete mapped data |
void |
delete(org.opensubsystems.core.util.ThreeIntStruct tisValues)
Delete mapped data |
org.opensubsystems.core.data.DataObject |
get(int iId)
|
int[] |
getMappedData(int iId,
int iMappingType)
Get array of mapped records for particular ID. |
org.opensubsystems.core.data.ModifiableDataObject |
save(org.opensubsystems.core.data.ModifiableDataObject data)
|
| Methods inherited from class org.opensubsystems.core.logic.impl.StatelessControllerImpl |
|---|
constructor, ejbActivate, ejbPassivate, ejbRemove, setSessionContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.opensubsystems.core.logic.StatelessController |
|---|
constructor |
| Field Detail |
|---|
protected MappingFactory m_mappingFactory
| Constructor Detail |
|---|
public MappingControllerImpl()
| Method Detail |
|---|
public org.opensubsystems.core.data.DataObject get(int iId)
throws org.opensubsystems.core.error.OSSException,
java.rmi.RemoteException
get in interface org.opensubsystems.core.logic.DataControllerorg.opensubsystems.core.error.OSSException
java.rmi.RemoteException
public org.opensubsystems.core.data.DataObject create(org.opensubsystems.core.data.DataObject data)
throws org.opensubsystems.core.error.OSSException,
java.rmi.RemoteException
create in interface org.opensubsystems.core.logic.BasicDataControllerorg.opensubsystems.core.error.OSSException
java.rmi.RemoteException
public org.opensubsystems.core.data.ModifiableDataObject save(org.opensubsystems.core.data.ModifiableDataObject data)
throws org.opensubsystems.core.error.OSSException,
java.rmi.RemoteException
save in interface org.opensubsystems.core.logic.ModifiableDataControllerorg.opensubsystems.core.error.OSSException
java.rmi.RemoteException
public void delete(int iId)
throws org.opensubsystems.core.error.OSSException,
java.rmi.RemoteException
delete in interface org.opensubsystems.core.logic.BasicDataControllerdelete in interface MappingControlleriId - - mapped data ID to be deleted. This is neither id1 nor id2 but
the id of the record representing the relation.
org.opensubsystems.core.error.OSSException - - an error has occured
java.rmi.RemoteException - - required since this method can be called remotely
public void create(org.opensubsystems.core.util.ThreeIntStruct tisValues)
throws org.opensubsystems.core.error.OSSException,
java.rmi.RemoteException
create in interface MappingControllertisValues - - IDs and mapping type that has to be added into mapping table
1st value = mapped ID from first table
2nd value = mapped ID from second table
3rd value = mapping type
org.opensubsystems.core.error.OSSException - - an error has occured creating mapped data
java.rmi.RemoteException - - required since this method can be called remotely
public void delete(org.opensubsystems.core.util.ThreeIntStruct tisValues)
throws org.opensubsystems.core.error.OSSException,
java.rmi.RemoteException
delete in interface MappingControllertisValues - - IDs and mapping type that has to be added into mapping table
1st value = mapped ID from first table
2nd value = mapped ID from second table
3rd value = mapping type
org.opensubsystems.core.error.OSSException - - an error has occured
java.rmi.RemoteException - - required since this method can be called remotely
public int[] getMappedData(int iId,
int iMappingType)
throws org.opensubsystems.core.error.OSSException,
java.rmi.RemoteException
getMappedData in interface MappingControlleriId - - Id of the first data object in relation for which we want to
retrieve Ids of the second objects in relation. This is id1
specified during creation.iMappingType - - mapping type the retrieved data belongs to
org.opensubsystems.core.error.OSSException - - error during getting mapped data
java.rmi.RemoteException - - required since this method can be called remotely
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||