Module is.codion.framework.db.local
Package is.codion.framework.db.local
Class DefaultLocalEntityConnectionProviderBuilder
java.lang.Object
is.codion.framework.db.AbstractEntityConnectionProvider.AbstractBuilder<LocalEntityConnectionProvider,LocalEntityConnectionProvider.Builder>
is.codion.framework.db.local.DefaultLocalEntityConnectionProviderBuilder
- All Implemented Interfaces:
EntityConnectionProvider.Builder<LocalEntityConnectionProvider,
,LocalEntityConnectionProvider.Builder> LocalEntityConnectionProvider.Builder
public final class DefaultLocalEntityConnectionProviderBuilder
extends AbstractEntityConnectionProvider.AbstractBuilder<LocalEntityConnectionProvider,LocalEntityConnectionProvider.Builder>
implements LocalEntityConnectionProvider.Builder
Builds a
LocalEntityConnectionProvider
instance.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aEntityConnectionProvider
instance based on this builderdefaultQueryTimeout
(int defaultQueryTimeout) Methods inherited from class is.codion.framework.db.AbstractEntityConnectionProvider.AbstractBuilder
clientId, clientType, clientVersion, connectionType, domainType, onClose, user
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
clientId, clientType, clientVersion, connectionType, domainType, onClose, user
-
Constructor Details
-
DefaultLocalEntityConnectionProviderBuilder
public DefaultLocalEntityConnectionProviderBuilder()Instantiates a newDefaultLocalEntityConnectionProviderBuilder
-
-
Method Details
-
database
- Specified by:
database
in interfaceLocalEntityConnectionProvider.Builder
- Parameters:
database
- the database instance to use- Returns:
- this builder instance
-
domain
- Specified by:
domain
in interfaceLocalEntityConnectionProvider.Builder
- Parameters:
domain
- the domain model to base this connection on- Returns:
- this builder instance
-
defaultQueryTimeout
- Specified by:
defaultQueryTimeout
in interfaceLocalEntityConnectionProvider.Builder
- Parameters:
defaultQueryTimeout
- the default query timeout- Returns:
- this builder instance
-
build
Description copied from interface:EntityConnectionProvider.Builder
Builds aEntityConnectionProvider
instance based on this builder- Specified by:
build
in interfaceEntityConnectionProvider.Builder<LocalEntityConnectionProvider,
LocalEntityConnectionProvider.Builder> - Returns:
- a new
EntityConnectionProvider
instance
-