Annotation Interface Connectable
@Target({ANNOTATION_TYPE,METHOD,TYPE})
@Retention(RUNTIME)
@InterceptorBinding(kind=AROUND)
public @interface Connectable
The annotation is similar to "jakarta.transaction.Transactional", allowing to create a new data source connection.
- Since:
- 4.0.0
- Author:
- Denis Stepanov
- 
Optional Element SummaryOptional ElementsModifier and TypeOptional ElementDescriptionA qualifier name value for the connection manager.The connection propagation type.booleantrueif the connection is read-only.intThe timeout for this connection (in seconds).Alias forconnectionManager().
- 
Element Details- 
valueAlias forconnectionManager().- Returns:
- The connection manager
- See Also:
 - Default:
- ""
 
- 
connectionManagerA qualifier name value for the connection manager.- Returns:
- The connection manager name
- See Also:
 - Default:
- ""
 
- 
propagationConnectionDefinition.Propagation propagationThe connection propagation type.Defaults to ConnectionDefinition.Propagation.REQUIRED.- Returns:
- The propagation
 - Default:
- REQUIRED
 
- 
timeoutint timeoutThe timeout for this connection (in seconds).Defaults to the default timeout of the underlying connection system. - Returns:
- The timeout
 - Default:
- -1
 
- 
readOnlyboolean readOnlytrueif the connection is read-only.Defaults to false.This just serves as a hint for the actual connection subsystem; it will not necessarily cause failure of write access attempts. A connection manager which cannot interpret the read-only hint will not throw an exception when asked for a read-only connection but rather silently ignore the hint. - Returns:
- Whether is read-only connection
 - Default:
- false
 
 
-