public class DbModelLoader<ModelType extends Model<?>> extends ModelLoader<ModelType,DbModelLoader<ModelType>>
ModelLoader.ModelConstructor<LoadedModelType>
Constructor and Description |
---|
DbModelLoader(PgxSession session,
oracle.pgx.api.internal.Core core,
java.util.function.Supplier<java.lang.String> keystorePathSupplier,
java.util.function.Supplier<char[]> keystorePasswordSupplier,
ModelKind modelKind,
ModelLoader.ModelConstructor<ModelType> constructor) |
Modifier and Type | Method and Description |
---|---|
DbModelLoader<ModelType> |
dataSourceId(java.lang.String dataSourceId)
Configures the datasource ID
(not required if using the user from the realm)
|
DbModelLoader<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)
|
DbModelLoader<ModelType> |
keystoreAlias(java.lang.String keystore)
Configures the keystore alias to get the password for the connection
|
PgxFuture<ModelType> |
loadAsync()
Trigger the load, once all the parameters have been set
(async version)
|
DbModelLoader<ModelType> |
modelname(java.lang.String modelName)
Configures the name of the model to load in the modelstore table
|
DbModelLoader<ModelType> |
modelstore(java.lang.String modelStoreName)
Configures the name of the modelstore table to load from
|
DbModelLoader<ModelType> |
owner(java.lang.String owner)
Configures the owner of the modelstore table in the database
|
DbModelLoader<ModelType> |
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)
|
DbModelLoader<ModelType> |
schema(java.lang.String schema)
Configures the schema in which the modelstore table in the database is
|
DbModelLoader<ModelType> |
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)
|
load
public DbModelLoader(PgxSession session, oracle.pgx.api.internal.Core core, java.util.function.Supplier<java.lang.String> keystorePathSupplier, java.util.function.Supplier<char[]> keystorePasswordSupplier, ModelKind modelKind, ModelLoader.ModelConstructor<ModelType> constructor)
public DbModelLoader<ModelType> dataSourceId(java.lang.String dataSourceId)
dataSourceId
- the datasource IDpublic DbModelLoader<ModelType> jdbcUrl(java.lang.String jdbcUrl)
jdbcUrl
- the jdbc url of the databasepublic DbModelLoader<ModelType> keystoreAlias(java.lang.String keystore)
keystore
- the keystore aliaspublic PgxFuture<ModelType> loadAsync()
ModelLoader
loadAsync
in class ModelLoader<ModelType extends Model<?>,DbModelLoader<ModelType extends Model<?>>>
public DbModelLoader<ModelType> modelname(java.lang.String modelName)
modelName
- the name of the model to loadpublic DbModelLoader<ModelType> modelstore(java.lang.String modelStoreName)
modelStoreName
- the name of the modelstore table to load frompublic DbModelLoader<ModelType> owner(java.lang.String owner)
owner
- the database owner of the modelstore tablepublic DbModelLoader<ModelType> password(java.lang.String password)
password
- the password of the database userpublic DbModelLoader<ModelType> schema(java.lang.String schema)
schema
- the schema in which the modelstore table ispublic DbModelLoader<ModelType> username(java.lang.String username)
username
- the database username