Skip Headers

# Configuring Default Query Implementations

Previous

Next

The `DescriptorQueryManager` of each `Descriptor` lets you customize the query implementation that TopLink uses for the following data source operations:

- insert object

- update object

- read object

- read all objects

- delete object

For example, if you need to insert an object using a stored procedure, you can override the default `SQLCall` used by the `DescriptorQueryManager` insert object query.

Whenever you execute a query on a given `Class`, TopLink consults the `DescriptorQueryManager` to determine how to perform the given data source operation.

You can use this capability for a variety of purposes such as to extend TopLink behavior, access nonrelational data, or use stored procedures or customized SQL calls.

WARNING: Allowing an unverified SQL string to be passed into methods makes your application vulnerable to SQL injection attacks.

For information and examples on customizing these default query implementations, see:

- "Configuring Custom SQL Queries for Basic Persistence Operations"

- "Configuring Custom EIS Interactions for Basic Persistence Operations"