| java.lang.Object com.versant.core.jdo.sco.SCOInverseUtil
SCOInverseUtil | public class SCOInverseUtil (Code) | | Utility methods to help SCOs implement inverse mappings.
|
Method Summary | |
public static void | addMasterOnDetail(Object detailObject, PersistenceCapable owner, int detailFieldNo) Change the master reference on detailObject. | public static void | addToOtherSideOfManyToMany(Object inverse, int inverseFieldNo, PersistenceCapable toAdd) Add to the other half of a many-to-many relationship. | public static void | removeFromOtherSideOfManyToMany(Object inverse, int inverseFieldNo, PersistenceCapable toRemove) Remove from the other half of a many-to-many relationship. | public static void | removeMasterOnDetail(Object detailObject, PersistenceCapable owner, int detailFieldNo) Clear the master reference on detailObject. |
addMasterOnDetail | public static void addMasterOnDetail(Object detailObject, PersistenceCapable owner, int detailFieldNo)(Code) | | Change the master reference on detailObject. This will remove the
detail from its current master (if any and if different).
|
addToOtherSideOfManyToMany | public static void addToOtherSideOfManyToMany(Object inverse, int inverseFieldNo, PersistenceCapable toAdd)(Code) | | Add to the other half of a many-to-many relationship.
Parameters: inverse - The instance on the other side of the relationship Parameters: inverseFieldNo - The collection field on inverse to add to Parameters: toAdd - The instance to add to the collection on inverse |
removeFromOtherSideOfManyToMany | public static void removeFromOtherSideOfManyToMany(Object inverse, int inverseFieldNo, PersistenceCapable toRemove)(Code) | | Remove from the other half of a many-to-many relationship.
Parameters: inverse - The instance on the other side of the relationship Parameters: inverseFieldNo - The collection field on inverse to remove from Parameters: toRemove - The instance to remve from the collection on inverse |
removeMasterOnDetail | public static void removeMasterOnDetail(Object detailObject, PersistenceCapable owner, int detailFieldNo)(Code) | | Clear the master reference on detailObject. This will not remove
the detail from its current master. This can be done in bulk or more
efficiently by the SCO.
|
|
|