Package org.exolab.castor.persist
Class SQLRelationLoader
java.lang.Object
org.exolab.castor.persist.SQLRelationLoader
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
chaning of the Persistence interface.
- Author:
- Thomas Yip
-
Constructor Summary
ConstructorsConstructorDescriptionSQLRelationLoader
(String table, String[] key, int[] keyType, TypeConvertor[] idTo, TypeConvertor[] idFrom, String[] otherKey, int[] otherKeyType, TypeConvertor[] ridTo, TypeConvertor[] ridFrom, PersistenceFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
createRelation
(Connection conn, Identity left, Identity right) void
deleteRelation
(Connection conn, Identity left) void
deleteRelation
(Connection conn, Identity left, Identity right)
-
Constructor Details
-
SQLRelationLoader
public SQLRelationLoader(String table, String[] key, int[] keyType, TypeConvertor[] idTo, TypeConvertor[] idFrom, String[] otherKey, int[] otherKeyType, TypeConvertor[] ridTo, TypeConvertor[] ridFrom, PersistenceFactory factory)
-
-
Method Details
-
createRelation
public void createRelation(Connection conn, Identity left, Identity right) throws PersistenceException - Throws:
PersistenceException
-
deleteRelation
- Throws:
PersistenceException
-
deleteRelation
public void deleteRelation(Connection conn, Identity left, Identity right) throws PersistenceException - Throws:
PersistenceException
-