Package info.archinnov.achilles.internal.context

Examples of info.archinnov.achilles.internal.context.PersistenceContextFactory


        // Then
        assertThat(pmf.entityMetaMap).isSameAs(entityMetaMap);
        assertThat(pmf.configContext).isSameAs(configContext);
        assertThat(pmf.daoContext).isSameAs(daoContext);
        PersistenceContextFactory contextFactory = Whitebox.getInternalState(pmf, PersistenceContextFactory.class);
        assertThat(Whitebox.getInternalState(contextFactory, DaoContext.class)).isSameAs(daoContext);
        assertThat(Whitebox.getInternalState(contextFactory, ConfigurationContext.class)).isSameAs(configContext);
        assertThat(Whitebox.getInternalState(contextFactory, "entityMetaMap")).isSameAs(entityMetaMap);

        verify(boostrapper).buildMetaDatas(configContext, candidateClasses);
View Full Code Here


    @Test
    public void should_create_persistence_manager() throws Exception {
        // Given
        Map<Class<?>, EntityMeta> entityMetaMap = new HashMap<Class<?>, EntityMeta>();
        PersistenceContextFactory contextFactory = mock(PersistenceContextFactory.class);

        // When
        pmf.entityMetaMap = entityMetaMap;
        pmf.configContext = configContext;
        pmf.daoContext = daoContext;
View Full Code Here

    @Test
    public void should_create_batching_persistence_manager() throws Exception {
        // Given
        Map<Class<?>, EntityMeta> entityMetaMap = new HashMap<Class<?>, EntityMeta>();
        PersistenceContextFactory contextFactory = mock(PersistenceContextFactory.class);

        // When
        pmf.entityMetaMap = entityMetaMap;
        pmf.configContext = configContext;
        pmf.daoContext = daoContext;
View Full Code Here

        SchemaContext schemaContext = new SchemaContext(configContext, session, keyspaceName, cluster, parsingResult);
        bootstrapper.validateOrCreateTables(schemaContext);

        daoContext = bootstrapper.buildDaoContext(session, parsingResult, configContext);
        contextFactory = new PersistenceContextFactory(daoContext, configContext, parsingResult.getMetaMap());

        warmUpProxies();

        return this;
    }
View Full Code Here

TOP

Related Classes of info.archinnov.achilles.internal.context.PersistenceContextFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.