Module org.datanucleus
Interface PersistableRelationStore
-
- All Superinterfaces:
Store
public interface PersistableRelationStore extends Store
Representation of the relation between two persistable objects. Provides the connectivity to the datastore allowing the relation to be managed separately. In an RDBMS sense, this is for an N-1 unidirectional join table relation, and represents the join table entry.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
add(DNStateManager sm1, DNStateManager sm2)
Method to add the relation between the provided objects.boolean
remove(DNStateManager sm1)
Method to remove the relation from the provided object.boolean
update(DNStateManager sm1, DNStateManager sm2)
Method to update the relation for the first object to relate to the second object.-
Methods inherited from interface org.datanucleus.store.types.scostore.Store
getOwnerMemberMetaData, getStoreManager
-
-
-
-
Method Detail
-
add
boolean add(DNStateManager sm1, DNStateManager sm2)
Method to add the relation between the provided objects.- Parameters:
sm1
- Object 1 StateManagersm2
- Object 2 StateManager- Returns:
- Whether the relation was added
-
remove
boolean remove(DNStateManager sm1)
Method to remove the relation from the provided object.- Parameters:
sm1
- Object 1 StateManager- Returns:
- Whether the relation was removed
-
update
boolean update(DNStateManager sm1, DNStateManager sm2)
Method to update the relation for the first object to relate to the second object. This removes any previous relation from this object and replaces it with the new relation.- Parameters:
sm1
- Object 1 StateManagersm2
- Object 2 StateManager- Returns:
- Whether the relation was replaced
-
-