Examples of identity()


Examples of org.qi4j.spi.entity.EntityState.identity()

            lock.readLock().lock();

            try
            {
               EntityState entityState = uow.entityStateOf( anIdentity );
               versions.rememberVersion( entityState.identity(), entityState.version() );
               loaded.add( entityState );
               return entityState;
            } finally
            {
               lock.readLock().unlock();
View Full Code Here

Examples of org.qi4j.spi.entitystore.helpers.DefaultEntityState.identity()

                            writer.flush();
                            if( EntityStatus.UPDATED.equals( status ) )
                            {
                                Long entityOptimisticLock = ( (SQLEntityState) state ).getEntityOptimisticLock();
                                database.populateUpdateEntityStatement( updatePS, entityPK, entityOptimisticLock,
                                                                        defState.identity(), writer.toString(),
                                                                        unitofwork.currentTime() );
                                updatePS.addBatch();
                            }
                            else if( EntityStatus.NEW.equals( status ) )
                            {
View Full Code Here

Examples of org.qi4j.spi.entitystore.helpers.DefaultEntityState.identity()

                                                                        unitofwork.currentTime() );
                                updatePS.addBatch();
                            }
                            else if( EntityStatus.NEW.equals( status ) )
                            {
                                database.populateInsertEntityStatement( insertPS, defState.identity(),
                                                                        writer.toString(), unitofwork.currentTime() );
                                insertPS.addBatch();
                            }
                        }
                    }
View Full Code Here

Examples of org.qi4j.spi.entitystore.helpers.DefaultEntityState.identity()

                        for( EntityState entityState : state )
                        {
                            DefaultEntityState state = (DefaultEntityState) entityState;
                            if( state.status().equals( EntityStatus.NEW ) )
                            {
                                Preferences entityPrefs = root.node( state.identity().identity() );
                                writeEntityState( state, entityPrefs, unitofwork.identity(), unitofwork.currentTime() );
                            }
                            else if( state.status().equals( EntityStatus.UPDATED ) )
                            {
                                Preferences entityPrefs = root.node( state.identity().identity() );
View Full Code Here

Examples of org.qi4j.spi.entitystore.helpers.DefaultEntityState.identity()

                                Preferences entityPrefs = root.node( state.identity().identity() );
                                writeEntityState( state, entityPrefs, unitofwork.identity(), unitofwork.currentTime() );
                            }
                            else if( state.status().equals( EntityStatus.UPDATED ) )
                            {
                                Preferences entityPrefs = root.node( state.identity().identity() );
                                writeEntityState( state, entityPrefs, unitofwork.identity(), unitofwork.currentTime() );
                            }
                            else if( state.status().equals( EntityStatus.REMOVED ) )
                            {
                                root.node( state.identity().identity() ).removeNode();
View Full Code Here

Examples of org.qi4j.spi.entitystore.helpers.DefaultEntityState.identity()

                                Preferences entityPrefs = root.node( state.identity().identity() );
                                writeEntityState( state, entityPrefs, unitofwork.identity(), unitofwork.currentTime() );
                            }
                            else if( state.status().equals( EntityStatus.REMOVED ) )
                            {
                                root.node( state.identity().identity() ).removeNode();
                            }
                        }
                        root.flush();
                    }
                }
View Full Code Here

Examples of toxi.geom.Matrix4x4.identity()

    public void testRotate() {
        Matrix4x4 m = new Matrix4x4();
        m.rotateX(MathUtils.HALF_PI);
        Vec3D v = m.applyTo(new Vec3D(0, 1, 0));
        assertTrue(new Vec3D(0, 0, 1).equalsWithTolerance(v, 0.00001f));
        m.identity();
        m.rotateY(MathUtils.HALF_PI);
        v = m.applyTo(new Vec3D(1, 0, 0));
        assertTrue(new Vec3D(0, 0, -1).equalsWithTolerance(v, 0.00001f));
        m.identity();
        m.rotateZ(MathUtils.HALF_PI);
View Full Code Here

Examples of us.ihmc.graphics3DAdapter.graphics.Graphics3DObject.identity()

      xPendulumArmGimbalLinkGraphics.addSphere(0.04, YoAppearance.Red());
      xPendulumArmGimbalLinkGraphics.rotate(-Math.PI/2.0, Axis.Y);
      xPendulumArmGimbalLinkGraphics.addCylinder(ARM_LENGTH, ARM_RADIUS, YoAppearance.Pink());
     
      // Pen:
      xPendulumArmGimbalLinkGraphics.identity();
      xPendulumArmGimbalLinkGraphics.translate(-ARM_LENGTH, 0.0, -PEN_HEIGHT);
      xPendulumArmGimbalLinkGraphics.addCylinder(PEN_HEIGHT, PEN_RADIUS);

     
      xPendulumArmGimbalLink.setLinkGraphics(xPendulumArmGimbalLinkGraphics);
View Full Code Here

Examples of us.ihmc.graphics3DAdapter.graphics.Graphics3DObject.identity()

      Graphics3DObject deskPendulumLinkGraphics = new Graphics3DObject();
      deskPendulumLinkGraphics.translate(new Vector3d(0.0, 0.0, DESK_PENDULUM_OFFSET_Z));
      deskPendulumLinkGraphics.addCylinder(DESK_PENDULUM_LENGTH, DESK_PENDULUM_RADIUS);
      deskPendulumLinkGraphics.translate(0.0, 0.0, DESK_WEIGHTS_DISTANCE_FROM_BOTTOM);
      deskPendulumLinkGraphics.addCylinder(DESK_WEIGHTS_HEIGHT, DESK_WEIGHTS_RADIUS);
      deskPendulumLinkGraphics.identity();
      deskPendulumLinkGraphics.translate(0.0, 0.0, DESK_HEIGHT);
      deskPendulumLinkGraphics.addCube(DESK_WIDTH, DESK_LENGTH, DESK_THICKNESS);
     
      deskPendulumLink.setLinkGraphics(deskPendulumLinkGraphics);
      return deskPendulumLink;
View Full Code Here

Examples of xbird.xquery.misc.QNameTable.QualifiedName.identity()

    @Override
    public void evStartElement(long eid, QualifiedName qname) throws XQueryException {
        if(qnameTable != null) {
            QualifiedName found = qnameTable.find(qname);
            if(found != null) {
                docTable.setName(eid, found.identity());
                qname = found;
            }
        }
        final TreeWalker walker = _walker;
        // #1 path index
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.