org.opensubsystems.patterns.mappeddata.logic
Interface MappingController

All Superinterfaces:
org.opensubsystems.core.logic.BasicDataController, org.opensubsystems.core.logic.DataController, org.opensubsystems.core.logic.ModifiableDataController, org.opensubsystems.core.logic.StatelessController
All Known Implementing Classes:
MappingControllerImpl

public interface MappingController
extends org.opensubsystems.core.logic.ModifiableDataController

Business logic related to managing mapped data.

Version:
$Id: MappingController.java,v 1.4 2007/01/07 06:14:25 bastafidli Exp $
Author:
Julian Legeny
Code reviewer:
Miro Halas
Code reviewed:
1.2 2006/07/14 16:37:22 bastafidli

Method Summary
 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
 int[] getMappedData(int iId, int iMappingType)
          Get array of mapped records for particular ID.
 
Methods inherited from interface org.opensubsystems.core.logic.ModifiableDataController
save
 
Methods inherited from interface org.opensubsystems.core.logic.BasicDataController
create
 
Methods inherited from interface org.opensubsystems.core.logic.DataController
get
 
Methods inherited from interface org.opensubsystems.core.logic.StatelessController
constructor
 

Method Detail

delete

void delete(int iId)
            throws org.opensubsystems.core.error.OSSException,
                   java.rmi.RemoteException
Delete mapped data

Specified by:
delete in interface org.opensubsystems.core.logic.BasicDataController
Parameters:
iId - - mapped data ID to be deleted. This is neither id1 nor id2 but the id of the record representing the relation.
Throws:
org.opensubsystems.core.error.OSSException - - an error has occured
java.rmi.RemoteException - - required since this method can be called remotely

getMappedData

int[] getMappedData(int iId,
                    int iMappingType)
                    throws org.opensubsystems.core.error.OSSException,
                           java.rmi.RemoteException
Get array of mapped records for particular ID.

Parameters:
iId - - 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
Returns:
int[] - array of ids of mapped data objects, these are id2 specified during creation.
Throws:
org.opensubsystems.core.error.OSSException - - error during getting mapped data
java.rmi.RemoteException - - required since this method can be called remotely

create

void create(org.opensubsystems.core.util.ThreeIntStruct tisValues)
            throws org.opensubsystems.core.error.OSSException,
                   java.rmi.RemoteException
Create mapped data.

Parameters:
tisValues - - 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
Throws:
org.opensubsystems.core.error.OSSException - - an error has occured creating mapped data
java.rmi.RemoteException - - required since this method can be called remotely

delete

void delete(org.opensubsystems.core.util.ThreeIntStruct tisValues)
            throws org.opensubsystems.core.error.OSSException,
                   java.rmi.RemoteException
Delete mapped data

Parameters:
tisValues - - 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
Throws:
org.opensubsystems.core.error.OSSException - - an error has occured
java.rmi.RemoteException - - required since this method can be called remotely


Copyright © 2003 - 2006 OpenSubsystems s.r.o.