ODAC
Determines KeyFields and builds query of TOraTable.
TOraTable
procedure PrepareSQL;
Call the PrepareSQL method to determine KeyFields and build query of TOraTable. PrepareSQL is called implicitly when TOraTable is being opened.