org.exolab.castor.persist
Class SQLRelationLoader
java.lang.Object
org.exolab.castor.persist.SQLRelationLoader
- public class SQLRelationLoader
- extends java.lang.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
chaning of the Persistence interface.
- Author:
- Thomas Yip
|
Constructor Summary |
SQLRelationLoader(java.lang.String table,
java.lang.String[] key,
int[] keyType,
org.exolab.castor.mapping.TypeConvertor[] idTo,
org.exolab.castor.mapping.TypeConvertor[] idFrom,
java.lang.String[] otherKey,
int[] otherKeyType,
org.exolab.castor.mapping.TypeConvertor[] ridTo,
org.exolab.castor.mapping.TypeConvertor[] ridFrom)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SQLRelationLoader
public SQLRelationLoader(java.lang.String table,
java.lang.String[] key,
int[] keyType,
org.exolab.castor.mapping.TypeConvertor[] idTo,
org.exolab.castor.mapping.TypeConvertor[] idFrom,
java.lang.String[] otherKey,
int[] otherKeyType,
org.exolab.castor.mapping.TypeConvertor[] ridTo,
org.exolab.castor.mapping.TypeConvertor[] ridFrom)
createRelation
public void createRelation(java.sql.Connection conn,
Identity left,
Identity right)
throws PersistenceException
- Throws:
PersistenceException
deleteRelation
public void deleteRelation(java.sql.Connection conn,
Identity left)
throws PersistenceException
- Throws:
PersistenceException
deleteRelation
public void deleteRelation(java.sql.Connection conn,
Identity left,
Identity right)
throws PersistenceException
- Throws:
PersistenceException
Copyright 2008 null. All Rights Reserved.