Package com.impetus.client.crud.compositeType

Examples of com.impetus.client.crud.compositeType.CassandraCompoundKey


        // In Query set Paramater with gt clause.
        queryString = "Select u from CassandraPrimeUser u WHERE u.key IN :keyList";

        List<CassandraCompoundKey> personIdList = new ArrayList<CassandraCompoundKey>();
        UUID timeLineId1 = UUID.randomUUID();
        personIdList.add(new CassandraCompoundKey("kk", 1, timeLineId1));
        personIdList.add(new CassandraCompoundKey("vm", 2, timeLineId1));
        personIdList.add(new CassandraCompoundKey("vs", 3, timeLineId1));

        kunderaQuery = getQueryObject(queryString, emf);
        kunderaQuery.setParameter("keyList", personIdList);

        cqlQuery = parseAndCreateCqlQuery(kunderaQuery, emf, em, pu, CassandraPrimeUser.class, 100);
View Full Code Here


   
    private Object prepareData(String rowkey, int tweetId)
    {
        UUID timeLineId = UUID.randomUUID();
        Date currentDate = new Date();  
        CassandraCompoundKey key = new CassandraCompoundKey("mevivs"+rowkey, tweetId, timeLineId);
        CassandraPrimeUser user = new CassandraPrimeUser(key);
        user.setTweetBody("my first tweet");
        user.setTweetDate(currentDate);
        user.setName("vivek");
        return user;
View Full Code Here

        em = createEM(_CQL_VERSION);

        // Persist
        UUID timeLineId = UUID.randomUUID();
        Date currentDate = new Date();
        CassandraCompoundKey key = new CassandraCompoundKey("mevivs", 1, timeLineId);
        CassandraEmbeddedAssociation timeLine = new CassandraEmbeddedAssociation(key);
        timeLine.setTweetBody("my first tweet");
        timeLine.setTweetDate(currentDate);

        timeLine.setUserInfo(userInfo);
View Full Code Here

        EntityManager em = createEM(_CQL_VERSION);

        // Persist
        UUID timeLineId = UUID.randomUUID();
        Date currentDate = new Date();
        CassandraCompoundKey key = new CassandraCompoundKey("mevivs", 1, timeLineId);
        CassandraEmbeddedAssociation timeLine = new CassandraEmbeddedAssociation(key);
        timeLine.setTweetBody("my first tweet");
        timeLine.setTweetDate(currentDate);

        UserInfo userInfo = new UserInfo("mevivs_info", "Vivek", "Mishra", 31, 170);
View Full Code Here

TOP

Related Classes of com.impetus.client.crud.compositeType.CassandraCompoundKey

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.