GDI : Query Features from Oracle Spatial with predefined where-clause

Hi,

I want to query features from Oracle Spatial using predefined where-clauses.

Is it possible to write a macro with a where-clause in it, to query only a subset of the feature from the oracle spatial datastore?

Where can i find a api to use the functionality of the oracle  spatial modul?

 

Thanks for help,

Stefan.