private void createCompleteKey ( Key parent , long id ) { String kind = entityMetadata . getKind ( ) ; if ( parent == null ) { key = entityManager . newNativeKeyFactory ( ) . setKind ( kind ) . newKey ( id ) ; } else { key = Key . newBuilder ( parent , kind , id ) . build ( ) ; } }
Creates a complete key using the given parameters .