Package org.eclipse.net4j.db.dml
Interface SQLTemplate
public interface SQLTemplate
An immutable SQL definition independent of a database adapter. Compilation renders SQL with
adapter-specific identifier quoting and retains ordered parameter occurrences. The resulting
statement can be prepared through an
IDBConnection and bound using
its positional or parameter-identity operations.- Since:
- 4.15
- Author:
- Eike Stepper
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
-
Method Summary
Modifier and TypeMethodDescriptioncompile(IDBAdapter adapter) Compiles this immutable definition into SQL text and ordered parameter occurrence metadata.
-
Method Details
-
compile
Compiles this immutable definition into SQL text and ordered parameter occurrence metadata. The supplied adapter controls identifier quoting. The template can be compiled repeatedly with different adapters without changing the template or previously compiled statements.- Parameters:
adapter- the adapter whose dialect governs compilation- Returns:
- an adapter-specific statement
-