public class DbModelStorer<ModelType extends Model<ModelType>> extends ModelStorer<ModelType,DbModelStorer<ModelType>>
Constructor and Description |
---|
DbModelStorer(PgxSession session, oracle.pgx.api.internal.Core core, ModelType model, java.util.function.Supplier<java.lang.String> keystorePathSupplier, java.util.function.Supplier<char[]> keystorePasswordSupplier) |
Modifier and Type | Method and Description |
---|---|
DbModelStorer<ModelType> |
dataSourceId(java.lang.String dataSourceId)
Configures the datasource ID (not required if using the user from the realm)
|
DbModelStorer<ModelType> |
description(java.lang.String desc)
Configures the description to attach to the model.
|
DbModelStorer<ModelType> |
jdbcUrl(java.lang.String jdbcUrl)
Configures the jdbc url of the database to connect to (not required if using the user from the realm)
|
DbModelStorer<ModelType> |
keystoreAlias(java.lang.String keystore)
Configures the keystore alias to get the password for the connection
|
DbModelStorer<ModelType> |
modelname(java.lang.String modelName)
Configures the name of the model to load in the modelstore table
|
DbModelStorer<ModelType> |
modelstore(java.lang.String modelStoreName)
Configures the name of the modelstore table to store to.
|
DbModelStorer<ModelType> |
owner(java.lang.String owner)
Configures the owner of the modelstore table in the database
|
DbModelStorer<ModelType> |
password(java.lang.String password)
Configures the password of the database user to store the model (not required if using the user from the realm)
|
DbModelStorer<ModelType> |
schema(java.lang.String schema)
Configures the schema in which the modelstore table in the database is
|
PgxFuture<java.lang.Void> |
storeAsync()
Trigger the storing, once all the parameters have been set (async version)
|
DbModelStorer<ModelType> |
username(java.lang.String username)
Configures the database username to store the model with (not required if using the user from the realm)
|
overwrite, store
public DbModelStorer(PgxSession session, oracle.pgx.api.internal.Core core, ModelType model, java.util.function.Supplier<java.lang.String> keystorePathSupplier, java.util.function.Supplier<char[]> keystorePasswordSupplier)
public DbModelStorer<ModelType> dataSourceId(java.lang.String dataSourceId)
dataSourceId
- the datasource IDpublic DbModelStorer<ModelType> description(java.lang.String desc)
desc
- the description of the modelpublic DbModelStorer<ModelType> jdbcUrl(java.lang.String jdbcUrl)
jdbcUrl
- the jdbc url of the databasepublic DbModelStorer<ModelType> keystoreAlias(java.lang.String keystore)
keystore
- the keystore aliaspublic DbModelStorer<ModelType> modelname(java.lang.String modelName)
modelName
- the name of the model to loadpublic DbModelStorer<ModelType> modelstore(java.lang.String modelStoreName)
modelStoreName
- the name of the modelstore table to store topublic DbModelStorer<ModelType> owner(java.lang.String owner)
owner
- the database owner of the modelstore tablepublic DbModelStorer<ModelType> password(java.lang.String password)
password
- the password of the database userpublic DbModelStorer<ModelType> schema(java.lang.String schema)
schema
- the schema in which the modelstore table ispublic PgxFuture<java.lang.Void> storeAsync()
ModelStorer
storeAsync
in class ModelStorer<ModelType extends Model<ModelType>,DbModelStorer<ModelType extends Model<ModelType>>>
public DbModelStorer<ModelType> username(java.lang.String username)
username
- the database username