public interface Attachable extends Serializable
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 |
|---|---|
void |
attach(Configuration configuration)
Attach this object to a new
Configuration. |
Configuration |
configuration()
|
void |
detach()
Detach this object from its current
Configuration. |
void attach(Configuration configuration)
Configuration.configuration - A configuration or null, if you wish to
detach this Attachable from its previous
configuration.void detach()
Configuration.
This is the same as calling attach(null).
Configuration configuration()
Copyright © 2019. All rights reserved.