Package com.impetus.kundera.lifecycle.states

Examples of com.impetus.kundera.lifecycle.states.TransientState


    {
        initializeNode(nodeId, data, primaryKey, pd);
        setPersistenceCache(pc);

        // Initialize current node state to transient state
        this.currentNodeState = new TransientState();
    }
View Full Code Here


        setPersistenceCache(pc);

        // Initialize current node state
        if (initialNodeState == null)
        {
            this.currentNodeState = new TransientState();
        }
        else
        {
            this.currentNodeState = initialNodeState;
        }
View Full Code Here

        setPersistenceCache(pc);

        // Initialize current node state
        if (initialNodeState == null)
        {
            this.currentNodeState = new TransientState();
        }
        else
        {
            this.currentNodeState = initialNodeState;
        }
View Full Code Here

        Object childId = PropertyAccessorHelper.getId(childObj, metadata);
        String childNodeId = ObjectGraphUtils.getNodeId(childId, childObj.getClass());

        Node childNodeInCache = persistenceCache.getMainCache().getNodeFromCache(childNodeId, pd);

        return childNodeInCache != null ? childNodeInCache.getCurrentNodeState() : new TransientState();
    }
View Full Code Here

            // TODO: in case of composite key. it is a bit hack and should be
            // handled better.
            if (nodeInPersistenceCache == null)
            {
                this.state = state != null ? this.state : new TransientState();

                node = new Node(
                        nodeId,
                        entity,
                        ((Field) entityMetadata.getIdAttribute().getJavaMember()).isAnnotationPresent(EmbeddedId.class) ? new ManagedState()
View Full Code Here

        object.setPersonId(ROW_KEY);
        object.setPersonName(originalName);
        object.setDay(Day.TUESDAY);
        object.setMonth(Month.JAN);

        Node node = new Node(nodeId, PersonCouchDB.class, new TransientState(), null, ROW_KEY, null);
        node.setData(object);
        client.persist(node);

        PersonCouchDB result = (PersonCouchDB) client.find(PersonCouchDB.class, ROW_KEY);
View Full Code Here

        object.setPersonId(ROW_KEY);
        object.setPersonName(originalName);
        object.setDay(Day.TUESDAY);
        object.setMonth(Month.JAN);

        Node node = new Node(nodeId, PersonRedis.class, new TransientState(), null, ROW_KEY, null);
        node.setData(object);
        client.persist(node);

        PersonRedis result = (PersonRedis) client.find(PersonRedis.class, ROW_KEY);
View Full Code Here

TOP

Related Classes of com.impetus.kundera.lifecycle.states.TransientState

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.