private void processParentKeyField(Field field) {
    String fieldName = field.getName();
    Class<?> type = field.getType();
    if (!type.equals(DatastoreKey.class)) {
      String message = String.format("Invalid type, %s, for ParentKey field %s in class %s. ", type,
          fieldName, entityClass);
      throw new EntityManagerException(message);
    }
    ParentKeyMetadata parentKeyMetadata = new ParentKeyMetadata(field);
    entityMetadata.setParentKetMetadata(parentKeyMetadata);
  }
private void processParentKeyField ( Field field ) { String fieldName = field . getName ( ) ; Class < ? > type = field . getType ( ) ; if ( ! type . equals ( DatastoreKey . class ) ) { String message = String . format ( "Invalid type, %s, for ParentKey field %s in class %s. " , type , fieldName , entityClass ) ; throw new EntityManagerException ( message ) ; } ParentKeyMetadata parentKeyMetadata = new ParentKeyMetadata ( field ) ; entityMetadata . setParentKetMetadata ( parentKeyMetadata ) ; }
Processes the ParentKey field and builds the entity metadata.

@param field
the ParentKey field