Package org.apache.isis.runtimes.dflt.objectstores.nosql

Examples of org.apache.isis.runtimes.dflt.objectstores.nosql.SerialKeyCreator


    protected NoSqlDataDatabase createNoSqlDatabase(final IsisConfiguration configuration) {
        NoSqlDataDatabase db;
        final String host = configuration.getString(DB_HOST, "localhost");
        final int port = configuration.getInteger(DB_PORT, 0);
        final String name = configuration.getString(DB_NAME, "isis");
        final KeyCreator keyCreator = new SerialKeyCreator();
        db = new MongoDb(host, port, name, keyCreator);
        return db;
    }
View Full Code Here


            assumeThat(true, is(false)); // ignore if no MongoDB instance to
                                         // connect to
            return;
        }

        db = new MongoDb("localhost", 0, "testdb", new SerialKeyCreator());
        db.open();

        final ExampleValuePojo pojo = new ExampleValuePojo();
        pojo.setName("Fred Smith");
        oid = SerialOid.createTransient(3);
View Full Code Here

        } catch (final Exception e) {
            assumeThat(true, is(false)); // ignore if no MongoDB instance to connect to
            return;
        }

        db = new MongoDb("localhost", 0, "testdb", new SerialKeyCreator());
        db.open();

        final ExampleValuePojo pojo = new ExampleValuePojo();
        pojo.setName("Fred Smith");
        oid = SerialOid.createTransient(3);
View Full Code Here

TOP

Related Classes of org.apache.isis.runtimes.dflt.objectstores.nosql.SerialKeyCreator

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.