Search in sources :

Example 1 with SpannerEntryManagerFactory

use of io.jans.orm.cloud.spanner.impl.SpannerEntryManagerFactory in project jans by JanssenProject.

the class SpannerEntryManagerSample method createSpannerEntryManager.

public SpannerEntryManager createSpannerEntryManager() {
    SpannerEntryManagerFactory sqlEntryManagerFactory = new SpannerEntryManagerFactory();
    sqlEntryManagerFactory.create();
    Properties connectionProperties = getSampleConnectionProperties();
    SpannerEntryManager sqlEntryManager = sqlEntryManagerFactory.createEntryManager(connectionProperties);
    LOG.debug("Created SpannerEntryManager: " + sqlEntryManager);
    return sqlEntryManager;
}
Also used : SpannerEntryManagerFactory(io.jans.orm.cloud.spanner.impl.SpannerEntryManagerFactory) Properties(java.util.Properties) SpannerEntryManager(io.jans.orm.cloud.spanner.impl.SpannerEntryManager)

Example 2 with SpannerEntryManagerFactory

use of io.jans.orm.cloud.spanner.impl.SpannerEntryManagerFactory in project jans by JanssenProject.

the class ManualSpannerEntryManagerTest method createSpannerEntryManager.

public SpannerEntryManager createSpannerEntryManager() throws IOException {
    SpannerEntryManagerFactory sqlEntryManagerFactory = new SpannerEntryManagerFactory();
    sqlEntryManagerFactory.create();
    SpannerEntryManager sqlEntryManager = sqlEntryManagerFactory.createEntryManager(loadProperties());
    System.out.println("Created SpannerEntryManager: " + sqlEntryManager);
    return sqlEntryManager;
}
Also used : SpannerEntryManagerFactory(io.jans.orm.cloud.spanner.impl.SpannerEntryManagerFactory) SpannerEntryManager(io.jans.orm.cloud.spanner.impl.SpannerEntryManager)

Aggregations

SpannerEntryManager (io.jans.orm.cloud.spanner.impl.SpannerEntryManager)2 SpannerEntryManagerFactory (io.jans.orm.cloud.spanner.impl.SpannerEntryManagerFactory)2 Properties (java.util.Properties)1