Search in sources :

Example 1 with RelationshipManagerImpl

use of org.datanucleus.state.RelationshipManagerImpl in project datanucleus-core by datanucleus.

the class ManagedRelationsHandler method getRelationshipManagerForObjectProvider.

/**
 * Method to return the RelationshipManager for the specified ObjectProvider.
 * If none is currently present will create one
 * @param op ObjectProvider
 * @return The RelationshipManager for this object
 */
public RelationshipManager getRelationshipManagerForObjectProvider(ObjectProvider op) {
    RelationshipManager relMgr = managedRelationDetails.get(op);
    if (relMgr == null) {
        relMgr = new RelationshipManagerImpl(op);
        managedRelationDetails.put(op, relMgr);
    }
    return relMgr;
}
Also used : RelationshipManager(org.datanucleus.state.RelationshipManager) RelationshipManagerImpl(org.datanucleus.state.RelationshipManagerImpl)

Aggregations

RelationshipManager (org.datanucleus.state.RelationshipManager)1 RelationshipManagerImpl (org.datanucleus.state.RelationshipManagerImpl)1