Class DbModelStorer<ModelType extends Model<ModelType>>

java.lang.Object
oracle.pgx.api.mllib.ModelStorer<ModelType, DbModelStorer<ModelType>>
oracle.pgx.api.mllib.DbModelStorer<ModelType>

public class DbModelStorer<ModelType extends Model<ModelType>> extends ModelStorer<ModelType, DbModelStorer<ModelType>>
A model storer to store models in an Oracle database, inside a modelstore table.
Since:
21.1
  • Constructor Details

  • Method Details

    • jdbcUrl

      public DbModelStorer<ModelType> jdbcUrl(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:
      21.1
    • dataSourceId

      public DbModelStorer<ModelType> dataSourceId(String dataSourceId)
      Configures the datasource ID (not required if using the user from the realm)
      Parameters:
      dataSourceId - the datasource ID
      Returns:
      this instance
      Since:
      21.1
    • username

      public DbModelStorer<ModelType> username(String username)
      Configures the database username to store the model with (not required if using the user from the realm)
      Parameters:
      username - the database username
      Returns:
      this instance
      Since:
      21.1
    • schema

      public DbModelStorer<ModelType> schema(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:
      21.1
    • owner

      public DbModelStorer<ModelType> owner(String owner)
      Configures the owner of the modelstore table in the database
      Parameters:
      owner - the database owner of the modelstore table
      Returns:
      this instance
      Since:
      21.1
    • password

      public DbModelStorer<ModelType> password(String password)
      Configures the password of the database user to store the model (not required if using the user from the realm)
      Parameters:
      password - the password of the database user
      Returns:
      this instance
      Since:
      21.1
    • keystoreAlias

      public DbModelStorer<ModelType> keystoreAlias(String keystore)
      Configures the keystore alias to get the password for the connection
      Parameters:
      keystore - the keystore alias
      Returns:
      this instance
      Since:
      21.1
    • modelstore

      public DbModelStorer<ModelType> modelstore(String modelStoreName)
      Configures the name of the modelstore table to store to. If the table doesn't exist yet, it will be created.
      Parameters:
      modelStoreName - the name of the modelstore table to store to
      Returns:
      this instance
      Since:
      21.1
    • modelname

      public DbModelStorer<ModelType> modelname(String modelName)
      Configures the name of the model to load in the modelstore table
      Parameters:
      modelName - the name of the model to load
      Returns:
      this instance
      Since:
      21.1
    • description

      public DbModelStorer<ModelType> description(String desc)
      Configures the description to attach to the model. (not mandatory)
      Parameters:
      desc - the description of the model
      Returns:
      this instance
      Since:
      21.1
    • storeAsync

      public PgxFuture<Void> storeAsync()
      Description copied from class: ModelStorer
      Trigger the storing, once all the parameters have been set (async version)
      Specified by:
      storeAsync in class ModelStorer<ModelType extends Model<ModelType>, DbModelStorer<ModelType extends Model<ModelType>>>