[server][DataQueryOption] Redefine getDBTermCodec as a virtual method so that a sub class can change the behaivor.