public class DbModelRepositoryBuilder extends AbstractModelRepositoryBuilder
Constructor and Description |
---|
DbModelRepositoryBuilder(PgxSession session,
oracle.pgx.api.internal.Core core,
java.util.function.Supplier<java.lang.String> keystorePathSupplier,
java.util.function.Supplier<char[]> keystorePasswordSupplier) |
Modifier and Type | Method and Description |
---|---|
DbModelRepositoryBuilder |
dataSourceId(java.lang.String dataSourceId)
Configures the datasource ID
(not required if using the user from the realm)
|
DbModelRepositoryBuilder |
jdbcUrl(java.lang.String jdbcUrl)
Configures the jdbc url of the database to connect to
(not required if using the user from the realm)
|
DbModelRepositoryBuilder |
keystoreAlias(java.lang.String keystore)
Configures the keystore alias to get the password for the connection
|
DbModelRepository |
open()
Opens the model repository.
|
DbModelRepositoryBuilder |
owner(java.lang.String owner)
Configures the owner of the model store table in the database
|
DbModelRepositoryBuilder |
password(java.lang.String password)
Configures the password of the database user to load the model from
(not required if using the user from the realm)
|
DbModelRepositoryBuilder |
schema(java.lang.String schema)
Configures the schema in which the modelstore table in the database is
|
DbModelRepositoryBuilder |
username(java.lang.String username)
Configures the username of the database user to load the model with
(not required if using the user from the realm)
|
public DbModelRepositoryBuilder(PgxSession session, oracle.pgx.api.internal.Core core, java.util.function.Supplier<java.lang.String> keystorePathSupplier, java.util.function.Supplier<char[]> keystorePasswordSupplier)
public DbModelRepositoryBuilder dataSourceId(java.lang.String dataSourceId)
dataSourceId
- the datasource IDpublic DbModelRepositoryBuilder jdbcUrl(java.lang.String jdbcUrl)
jdbcUrl
- the jdbc url of the databasepublic DbModelRepositoryBuilder keystoreAlias(java.lang.String keystore)
keystore
- the keystore aliaspublic DbModelRepository open()
public DbModelRepositoryBuilder owner(java.lang.String owner)
owner
- the database owner of the model store tablepublic DbModelRepositoryBuilder password(java.lang.String password)
password
- the password of the database userpublic DbModelRepositoryBuilder schema(java.lang.String schema)
schema
- the schema in which the modelstore table ispublic DbModelRepositoryBuilder username(java.lang.String username)
username
- the database username