Package com.alvazan.orm.api.base

Examples of com.alvazan.orm.api.base.NoSqlEntityManagerFactory


          props.put((String) entry.getKey(), entry.getValue());
        }
       
        log.info("Initializing PlayORM...");

        NoSqlEntityManagerFactory factory = Bootstrap.create(props, Play.classloader);
        NoSql.setEntityManagerFactory(factory);
        CassandraAppender.setFactory(factory);
  }
View Full Code Here


    logEveryN = logEveryNRows;
    //BEFORE Timer, let's get setup first
    Map<String, Object> props = new HashMap<String, Object>();
    props.put(Bootstrap.AUTO_CREATE_KEY, "create");
    Bootstrap.createAndAddBestCassandraConfiguration(props, clusterName, "PlayOrmPerfTest", host);
    NoSqlEntityManagerFactory factory = Bootstrap.create(DbTypeEnum.CASSANDRA, props, null, null);
    DboTableMeta table = setupMetaData(numColumns, factory);
   
    timer.schedule(new StopTask(), timeInMinutes*1000);
   
    for(int i = 0; i < NUM_THREADS; i++) {
View Full Code Here

     
    Map<String, Object> properties = new HashMap<String, Object>();
    Bootstrap.createAndAddBestCassandraConfiguration(properties , "", bean.getKeyspace(), bean.getSeeds());
    properties.put(Bootstrap.AUTO_CREATE_KEY, "create");
   
    NoSqlEntityManagerFactory factory = Bootstrap.create(storeType, properties);
    new PlayOrm(factory).start();
  }
View Full Code Here

TOP

Related Classes of com.alvazan.orm.api.base.NoSqlEntityManagerFactory

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.