NamedQuery implementation