It's not possible for ArcGIS to "remember" the registered rowid column of a newly defined
Query Layer table. All the remembering is done by ArcSDE metadata, but Query Layers
don't have ArcSDE metadata.
Shapefiles have no direct association with Query Layer tables or enterprise geodatabase