❓ Additional annotations
Interface configuration
Section titled “Interface configuration”@JdbcGenerationdefines additional annotations which should be added to the constructor or the class of the generated classclassAnnotationswill be added to the classconstructorAnnotationswill be added to the constructor
Interface/Method configuration
Section titled “Interface/Method configuration”@JdbcDebugfor the annotated element the processor will enable extra debug logs (mainly needed for debugging purpose)
Statement configuration
Section titled “Statement configuration”| Annotation | Kind | Select | Update | Batch | Default |
|---|---|---|---|---|---|
@JdbcBatchSize | dynamic | ⛔️ | ⛔️ | ✅ | 1000 |
@JdbcFetchDirection | dynamic | ✅ | ⛔️ | ⛔️ | unset |
@JdbcFetchSize | dynamic | ✅ | ⛔️ | ⛔️ | unset |
@JdbcMaxRows | dynamic | ✅ | ⛔️ | ⛔️ | unset |
@JdbcNoMoreRows | fix | ✅ | ⛔️ | ⛔️ | THROW_EXCEPTION |
@JdbcNoRows | fix | ✅ | ⛔️ | ⛔️ | THROW_EXCEPTION |
@JdbcQueryTimeout | dynamic | ✅ | ✅ | ✅ | unset |
@JdbcResultSetConcurrency | dynamic | ⛔️ | ✅ | ⛔️ | unset |
@JdbcResultSetType | dynamic | ⛔️ | ✅ | ⛔️ | unset |
- the table shows which annotation can be used with @JdbcSelect
- Kind of the annotation defined the resolution:
- fixed:
- the lookup path is: method, interface, config
- the first value which is either
THROW_EXCEPTIONorRETURN_NULLwill be taken
- dynamic
- the lookup path is: method parameter, method, interface, config
- method parameter: the developer can define the value dynamicly by setting the parameter on method call
- method, interface, config: the first value which is not
UNSPECIFIEDis taken and can not be changed any more
- fixed:
❗️@JdbcFetchDirection
❗️@JdbcFetchSize
❗️@JdbcMaxRows
❗️@JdbcNoMoreRows
❗️@JdbcNoRows
❗️@JdbcResultSetConcurrency
❗️@JdbcResultSetConcurrency
❗️@JdbcResultSetType
❗️@JdbcResultSetType
❗️@JdbcBatchSize
❗️JdbcUpdate.returnGeneratedValues