org.hydrateframework
Class ObjectRelationshipFactory
java.lang.Object
org.hydrateframework.ObjectRelationshipFactory
public class ObjectRelationshipFactory
- extends java.lang.Object
This object is used to save many-to-many relationships into the relational database.
- Version:
- @(#)$Revision: 1.8 $
- Author:
- David Chamberlin
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectRelationshipFactory
public ObjectRelationshipFactory(ObjectContext ctx,
java.lang.String relName,
java.lang.String nameA,
java.lang.String nameB,
ObjectFactory factA,
ObjectFactory factB,
java.lang.Class keyAssemblerA,
java.lang.Class keyAssemblerB,
java.lang.Class queryToUse,
java.lang.String dsName)
- Construct the factory
- Parameters:
ctx
- the ObjectContext from which this factory is saving objects.
getStatement
public NamedParameterStatement getStatement(RequestContext rc)
throws SaveException
- Returns:
- the query object that is used to update the many-to-many link table.
- Throws:
SaveException
save
public void save(SaveContext sc,
ObjectRelationshipFactory.RelationshipMap map,
java.lang.Class familyClass)
throws SaveException
- Update the database with changes to the many-to-many relationship.
- Parameters:
sc
- the save context that keeps track of the objects being savedmap
- the many to many map relationship to be saved
- Throws:
SaveException
Copyright © 2000 The Hydrate Project. All Rights Reserved.