Patent ID: 7860875

Claim:
A data processing-implemented method for directing a data processing system to modify a query during compilation of the query, the query comprising a request for an element of data from a table in a database and parameters identifying the requested element, the data processing-implemented method comprising: determining, by a computer, available information from parameters for locating a classification of the requested element and a classification associated with the query, the requested data classification controlling access to the requested element according to the query associated classification; requesting a suggested action from an external system for obtaining a comparison of the requested data classification and the query associated classification based on the available information; receiving the suggested action from the external system responsive to the sent request; and incorporating the suggested action into the query, the suggested action effecting comparison of the requested data classification with the query associated classification, wherein if the external system knows the requested data classification and the query associated classification, the suggested action is provided prior to execution of the query, and comprises at least one of the requested data classification, the query associated classification, a course of action for obtaining the requested data classification, a course of action for obtaining the query associated classification, and a comparison of the requested data classification and the query associated classification, and wherein if the external system does not know the requested data classification and the query associated classification, the suggested action comprises a request to call the external system at execution time of the query.