gen query only contain virtual methods