Package org.caffinitas.mapper.core

Examples of org.caffinitas.mapper.core.CqlStatementList.execute()


            {
                System.out.println(stmt);
            }

            CqlStatementList cqlDDL = schemaGenerator.generateLiveAlterDDL();
            cqlDDL.execute(persistenceManager.driverSession());

            System.out.println("Wait until all schema objects are available...");
            System.out.println();
            persistenceManager.refreshSchema(); // This is necessary until schema changes are propagated from the Java Driver to Caffinitas Mappe automatically!
            schemaGenerator.forSchemaObjectsAvailable().awaitUninterruptibly();
View Full Code Here


    protected final void createIfNecessary(MappedSchemaObject... schemaObjects) {
        for (MappedSchemaObject schemaObject : schemaObjects) {
            CqlStatementList ddl = schemaObject.getAlterDDL(cluster);
            System.out.println(ddl);
            ddl.execute(persistenceManager.driverSession());
        }
        persistenceManager.refreshSchema(); // This is necessary until schema changes are propagated from the Java Driver to Caffinitas Mappe automatically!
        long nanos = 2L * schemaObjects.length * 1000000000L;
        for (MappedSchemaObject entity : schemaObjects) {
            try {
View Full Code Here

        }
        for (MappedSchemaObject entity : mappedClassObjects) {
            CqlStatementList ddl = entity.getAlterDDL(persistenceManager.driverSession().getCluster());
            Assert.assertFalse(ddl.hasErrors(), ddl.toString());
            System.out.println(ddl);
            ddl.execute(persistenceManager.driverSession());
        }
        persistenceManager.refreshSchema(); // This is necessary until schema changes are propagated from the Java Driver to Caffinitas Mappe automatically!
        long nanos = 2L * mappedClassObjects.size() * 1000000000L;
        for (MappedSchemaObject entity : mappedClassObjects) {
            try {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.