Configuration attached
or detached.
Detaching an Attachable from its configuration means, that the
underlying Connection or DataSource is removed. Attaching an
Attachable to a new Configuration means, that its
underlying Connection or DataSource will be
restored.
Detaching an Attachable will NOT close the underlying
Connection or DataSource!
Attachables are also Serializable. The underlying
Connection or DataSource is transient.
Serialising an Attachable will always detach it first.
| Modifier and Type | Method and Description |
|---|---|
| public void | attach(Configuration
A configuration or configuration)null, if you wish to
detach this Attachable from its previous
configuration.Attach this object to a new |
| public @Nullable Configuration | |
| public void |
| attach | back to summary |
|---|---|
| public void attach(Configuration configuration) Attach this object to a new
| |
| configuration | back to summary |
|---|---|
| public @Nullable Configuration configuration() Get the currently attached
| |
| detach | back to summary |
|---|---|
| public void detach() Detach this object from its current
This is the same as calling | |