org.castor.cpa.persistence.sql.engine
Class SQLRelationLoader

java.lang.Object
  extended by org.castor.cpa.persistence.sql.engine.SQLRelationLoader

public final class SQLRelationLoader
extends Object

SQLRelationLoader is a quick hack for creating and removing relation from a many-to-many relation database from ClassMolder. Eventually, it will be merged into SQLEngine. But, it requires changing of the Persistence interface.

Version:
$Revision: 8994 $ $Date: 2011-08-02 01:40:59 +0200 (Di, 02 Aug 2011) $
Author:
Thomas Yip, Ralf Joachim, Johannes Venzke

Constructor Summary
SQLRelationLoader(RelationTableInfo relation)
          Create class to handle n-to-m relations of two tables.
 
Method Summary
 void createRelation(CastorConnection conn, Identity left, Identity right)
           
 void deleteRelation(CastorConnection conn, Identity left)
           
 void deleteRelation(CastorConnection conn, Identity left, Identity right)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLRelationLoader

public SQLRelationLoader(RelationTableInfo relation)
Create class to handle n-to-m relations of two tables.

Parameters:
relation - The relation table.
Method Detail

createRelation

public void createRelation(CastorConnection conn,
                           Identity left,
                           Identity right)
                    throws PersistenceException
Throws:
PersistenceException

deleteRelation

public void deleteRelation(CastorConnection conn,
                           Identity left)
                    throws PersistenceException
Throws:
PersistenceException

deleteRelation

public void deleteRelation(CastorConnection conn,
                           Identity left,
                           Identity right)
                    throws PersistenceException
Throws:
PersistenceException


Copyright © 2012. All Rights Reserved.