mil.dod.th.ose.core/src/mil/dod/th/ose/core/impl/persistence/AbstractDataStore.java
protected void activateStore(final String url, final Map<String, Object> props)
    {
        m_WakeLock = m_PowerManager.createWakeLock(getClass(), "coreDataStore");

        final PersistenceManagerFactory persistenceManagerFactory;
        persistenceManagerFactory = 
                m_PersistenceManagerFactoryCreator.createPersistenceManagerFactory(m_ExtentClass, url);
        persistenceManagerFactory.setOptimistic(false);
        persistenceManagerFactory.setMultithreaded(true);
        persistenceManagerFactory.setDetachAllOnCommit(true);
        m_PersistenceManager = persistenceManagerFactory.getPersistenceManager();
        m_Extent = m_PersistenceManager.getExtent(m_ExtentClass, true);
        // Limit the depth of fetching to a larger number instead of the default of 1. Otherwise objects will not be 
        // completely detached from the data store when persisted or queried.  Instead, an exception will be thrown if a
        // field is accessed that hasn't been detached. Have to be careful not to have objects that link to other 
        // objects like observation references in the default fetch group or else objects fetch will pull out too much 
        // from the database.  This setting assumes the fetch group setup contains only a single object with few 
        // linkages.
        m_PersistenceManager.getFetchPlan().setMaxFetchDepth(10); // NOCHECKSTYLE: magic #, accessor defines the meaning 
        
        updateProps(props);
    }
/**
     * The service component activation method.
     * 
     * Creates the JDO Persistence Manager Factory, gets and sets up the Persistence Manager, and initializes the Extent
     * to be used for queries.
     * 
     * @param url
     *            connection URL of the persistent store
     * @param props
     *            component properties to use once store has been initialized
     */
The service component activation method.

Creates the JDO Persistence Manager Factory, gets and sets up the Persistence Manager, and initializes the Extent
to be used for queries.

@param url
connection URL of the persistent store
@param props
component properties to use once store has been initialized
The service component activation method . Creates the JDO Persistence Manager Factory gets and sets up the Persistence Manager and initializes the Extent to be used for queries . @param url connection URL of the persistent store @param props component properties to use once store has been initialized
protected void activateStore(final String url, final Map<String, Object> props)
    {
        m_WakeLock = m_PowerManager.createWakeLock(getClass(), "coreDataStore");
        final PersistenceManagerFactory persistenceManagerFactory;
        persistenceManagerFactory = 
                m_PersistenceManagerFactoryCreator.createPersistenceManagerFactory(m_ExtentClass, url);
        persistenceManagerFactory.setOptimistic(false);
        persistenceManagerFactory.setMultithreaded(true);
        persistenceManagerFactory.setDetachAllOnCommit(true);
        m_PersistenceManager = persistenceManagerFactory.getPersistenceManager();
        m_Extent = m_PersistenceManager.getExtent(m_ExtentClass, true);
        m_PersistenceManager.getFetchPlan().setMaxFetchDepth(10); 
        updateProps(props);
    }
protected void activateStore ( final String url , final Map < String , Object > props ) { m_WakeLock = m_PowerManager . createWakeLock ( getClass ( ) , "coreDataStore" ) ; final PersistenceManagerFactory persistenceManagerFactory ; persistenceManagerFactory = m_PersistenceManagerFactoryCreator . createPersistenceManagerFactory ( m_ExtentClass , url ) ; persistenceManagerFactory . setOptimistic ( false ) ; persistenceManagerFactory . setMultithreaded ( true ) ; persistenceManagerFactory . setDetachAllOnCommit ( true ) ; m_PersistenceManager = persistenceManagerFactory . getPersistenceManager ( ) ; m_Extent = m_PersistenceManager . getExtent ( m_ExtentClass , true ) ; m_PersistenceManager . getFetchPlan ( ) . setMaxFetchDepth ( 10 ) ; updateProps ( props ) ; }
The service component activation method.
The service component activation method .
// Limit the depth of fetching to a larger number instead of the default of 1. Otherwise objects will not be  // completely detached from the data store when persisted or queried.  Instead, an exception will be thrown if a // field is accessed that hasn't been detached. Have to be careful not to have objects that link to other  // objects like observation references in the default fetch group or else objects fetch will pull out too much  // from the database.  This setting assumes the fetch group setup contains only a single object with few  // linkages. // NOCHECKSTYLE: magic #, accessor defines the meaning 