Package org.qi4j.api.entity

Examples of org.qi4j.api.entity.EntityReference


            int relIndex = getRelationshipIndex( rel );
            if( relIndex == index )
            {
                String id = (String) rel.getEndNode().getProperty(
                    NeoEntityState.ENTITY_ID );
                return new EntityReference( id );
            }
        }
        return null;
    }
View Full Code Here


        for( Relationship rel : underlyingNode.getRelationships(
            RelTypes.MANY_ASSOCIATION, Direction.OUTGOING ) )
        {
            String id = (String) rel.getEndNode().getProperty(
                NeoEntityState.ENTITY_ID );
            list.add( new EntityReference( id ) );
        }
        return list.iterator();
    }
View Full Code Here

    }

    @Override
    public EntityReference identity()
    {
        EntityReference ref = new EntityReference( entity.getKey().getName() );
        System.out.println( "identity()  -->  " + ref );
        return ref;
    }
View Full Code Here

    public EntityReference associationValueOf( QualifiedName stateName )
    {
        String uri = stateName.toURI();
        String identity = (String) entity.getProperty( uri );
        System.out.println( "association( " + stateName + " )  -->  " + uri + " = " + identity );
        EntityReference ref = new EntityReference( identity );
        return ref;
    }
View Full Code Here

        @Override
        public EntityReference get( int index )
        {
            String id = assocs.get( index );
            return new EntityReference( id );
        }
View Full Code Here

        public Iterator<EntityReference> iterator()
        {
            ArrayList<EntityReference> result = new ArrayList<EntityReference>();
            for( String id : assocs )
            {
                result.add( new EntityReference( id ) );
            }
            return result.iterator();
        }
View Full Code Here

        }

        @Override
        public EntityReference get( String name )
        {
            return new EntityReference( assocs.get( name ) );
        }
View Full Code Here

    {
        Relationship rel = underlyingNode.getSingleRelationship( association( stateName ), Direction.OUTGOING );
        if( rel != null )
        {
            String entityId = (String) rel.getEndNode().getProperty( ENTITY_ID );
            return new EntityReference( entityId );
        }
        return null;
    }
View Full Code Here

    }

    @Override
    public EntityReference identity()
    {
        return new EntityReference( (String) underlyingNode.getProperty( ENTITY_ID ) );
    }
View Full Code Here

                return true;
            }

            final String identity = identifier.stringValue();

            final EntityReference entityReference = new EntityReference( identity );
            return callback.processRow( row, entityReference );
        }
View Full Code Here

TOP

Related Classes of org.qi4j.api.entity.EntityReference

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.