Package oracle.pgx.api.mllib
Class DbModelRepositoryBuilder
- java.lang.Object
-
- oracle.pgx.api.mllib.AbstractModelRepositoryBuilder
-
- oracle.pgx.api.mllib.DbModelRepositoryBuilder
-
public class DbModelRepositoryBuilder extends AbstractModelRepositoryBuilder
A model repository builder that can be used to build a model repository for CRUD operations on model store tables in an Oracle database.- Since:
- 22.2
-
-
Constructor Summary
Constructors Constructor Description DbModelRepositoryBuilder(PgxSession session, oracle.pgx.api.internal.Core core, java.util.function.Supplier<java.lang.String> keystorePathSupplier, java.util.function.Supplier<char[]> keystorePasswordSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DbModelRepositoryBuilderdataSourceId(java.lang.String dataSourceId)Configures the datasource ID (not required if using the user from the realm)DbModelRepositoryBuilderjdbcUrl(java.lang.String jdbcUrl)Configures the jdbc url of the database to connect to (not required if using the user from the realm)DbModelRepositoryBuilderkeystoreAlias(java.lang.String keystore)Configures the keystore alias to get the password for the connectionDbModelRepositoryopen()Opens the model repository.DbModelRepositoryBuilderowner(java.lang.String owner)Configures the owner of the model store table in the databaseDbModelRepositoryBuilderpassword(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)DbModelRepositoryBuilderschema(java.lang.String schema)Configures the schema in which the modelstore table in the database isDbModelRepositoryBuilderusername(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)
-
-
-
Constructor Detail
-
DbModelRepositoryBuilder
public DbModelRepositoryBuilder(PgxSession session, oracle.pgx.api.internal.Core core, java.util.function.Supplier<java.lang.String> keystorePathSupplier, java.util.function.Supplier<char[]> keystorePasswordSupplier)
-
-
Method Detail
-
owner
public DbModelRepositoryBuilder owner(java.lang.String owner)
Configures the owner of the model store table in the database- Parameters:
owner- the database owner of the model store table- Returns:
- this instance
- Since:
- 22.2
-
schema
public DbModelRepositoryBuilder schema(java.lang.String schema)
Configures the schema in which the modelstore table in the database is- Parameters:
schema- the schema in which the modelstore table is- Returns:
- this instance
- Since:
- 22.2
-
dataSourceId
public DbModelRepositoryBuilder dataSourceId(java.lang.String dataSourceId)
Configures the datasource ID (not required if using the user from the realm)- Parameters:
dataSourceId- the datasource ID- Returns:
- this instance
- Since:
- 22.2
-
jdbcUrl
public 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)- Parameters:
jdbcUrl- the jdbc url of the database- Returns:
- this instance
- Since:
- 22.2
-
username
public 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)- Parameters:
username- the database username- Returns:
- this instance
- Since:
- 22.2
-
password
public 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)- Parameters:
password- the password of the database user- Returns:
- this instance
- Since:
- 22.2
-
keystoreAlias
public DbModelRepositoryBuilder keystoreAlias(java.lang.String keystore)
Configures the keystore alias to get the password for the connection- Parameters:
keystore- the keystore alias- Returns:
- this instance
- Since:
- 22.2
-
open
public DbModelRepository open()
Opens the model repository.- Returns:
- The initialized model repository.
- Since:
- 22.2
-
-