Module is.codion.framework.db.core
Package is.codion.framework.db
Class AbstractEntityConnectionProvider.AbstractBuilder<T extends EntityConnectionProvider,B extends EntityConnectionProvider.Builder<T,B>>
java.lang.Object
is.codion.framework.db.AbstractEntityConnectionProvider.AbstractBuilder<T,B>
- Type Parameters:
T
- theEntityConnectionProvider
type built by this builderB
- the builder type
- All Implemented Interfaces:
EntityConnectionProvider.Builder<T,
B>
- Direct Known Subclasses:
DefaultHttpEntityConnectionProviderBuilder
,DefaultLocalEntityConnectionProviderBuilder
,DefaultRemoteEntityConnectionProviderBuilder
- Enclosing class:
- AbstractEntityConnectionProvider
public abstract static class AbstractEntityConnectionProvider.AbstractBuilder<T extends EntityConnectionProvider,B extends EntityConnectionProvider.Builder<T,B>>
extends Object
implements EntityConnectionProvider.Builder<T,B>
An abstract
EntityConnectionProvider.Builder
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal B
final B
clientTypeId
(String clientTypeId) final B
clientVersion
(Version clientVersion) final String
Returns a String specifying the type of connection provided by this connection provider builderfinal B
domainType
(DomainType domainType) final B
onClose
(Consumer<EntityConnectionProvider> onClose) final B
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface is.codion.framework.db.EntityConnectionProvider.Builder
build
-
Constructor Details
-
AbstractBuilder
- Parameters:
connectionType
- a string describing the connection type
-
-
Method Details
-
connectionType
Description copied from interface:EntityConnectionProvider.Builder
Returns a String specifying the type of connection provided by this connection provider builder- Specified by:
connectionType
in interfaceEntityConnectionProvider.Builder<T extends EntityConnectionProvider,
B extends EntityConnectionProvider.Builder<T, B>> - Returns:
- a String specifying the type of connection, e.g. "local" or "remote"
-
user
- Specified by:
user
in interfaceEntityConnectionProvider.Builder<T extends EntityConnectionProvider,
B extends EntityConnectionProvider.Builder<T, B>> - Parameters:
user
- the user- Returns:
- this builder instance
-
domainType
- Specified by:
domainType
in interfaceEntityConnectionProvider.Builder<T extends EntityConnectionProvider,
B extends EntityConnectionProvider.Builder<T, B>> - Parameters:
domainType
- the domain type to base this connection on- Returns:
- this builder instance
-
clientId
- Specified by:
clientId
in interfaceEntityConnectionProvider.Builder<T extends EntityConnectionProvider,
B extends EntityConnectionProvider.Builder<T, B>> - Parameters:
clientId
- the UUID identifying this client connection- Returns:
- this builder instance
-
clientTypeId
- Specified by:
clientTypeId
in interfaceEntityConnectionProvider.Builder<T extends EntityConnectionProvider,
B extends EntityConnectionProvider.Builder<T, B>> - Parameters:
clientTypeId
- a String identifying the client type for this connection provider- Returns:
- this builder instance
-
clientVersion
- Specified by:
clientVersion
in interfaceEntityConnectionProvider.Builder<T extends EntityConnectionProvider,
B extends EntityConnectionProvider.Builder<T, B>> - Parameters:
clientVersion
- the client version- Returns:
- this builder instance
-
onClose
- Specified by:
onClose
in interfaceEntityConnectionProvider.Builder<T extends EntityConnectionProvider,
B extends EntityConnectionProvider.Builder<T, B>> - Parameters:
onClose
- called when this connection provider has been closed- Returns:
- this builder instance
- See Also:
-