Class PgxDbFrameStorer

    • Constructor Summary

      Constructors 
      Constructor Description
      PgxDbFrameStorer​(PgxSession session, oracle.pgx.api.internal.Core core, PgxFrame frame, java.util.function.Supplier<java.lang.String> keystorePathSupplier, java.util.function.Supplier<char[]> keystorePasswordSupplier)  
    • Constructor Detail

      • PgxDbFrameStorer

        public PgxDbFrameStorer​(PgxSession session,
                                oracle.pgx.api.internal.Core core,
                                PgxFrame frame,
                                java.util.function.Supplier<java.lang.String> keystorePathSupplier,
                                java.util.function.Supplier<char[]> keystorePasswordSupplier)
    • Method Detail

      • tablename

        public PgxDbFrameStorer tablename​(java.lang.String tableName)
        sets name of the table that should be stored in DB
        Parameters:
        tableName - name of the table
        Returns:
        this storer
      • dataSourceId

        public PgxDbFrameStorer dataSourceId​(java.lang.String dataSourceId)
        sets the dataSourceId to which to connect
        Parameters:
        dataSourceId - the datasourceId
        Returns:
        this storer
      • jdbcUrl

        public PgxDbFrameStorer jdbcUrl​(java.lang.String jdbcUrl)
        sets the jdbcUrl to use for connecting to the DB
        Parameters:
        jdbcUrl - the jdbc url
        Returns:
        this storer
      • username

        public PgxDbFrameStorer username​(java.lang.String userName)
        sets the username of the DB user to use to connect to the DB
        Parameters:
        userName - the username
        Returns:
        this storer
      • keystoreAlias

        public PgxDbFrameStorer keystoreAlias​(java.lang.String keystoreAlias)
        sets the keystore alias to retrieve the password from the keystore
        Parameters:
        keystoreAlias - the keystore alias
        Returns:
        this storer
      • password

        public PgxDbFrameStorer password​(java.lang.String password)
        sets the password to use for connecting to the database
        Parameters:
        password - the password
        Returns:
        this storer
      • schema

        public PgxDbFrameStorer schema​(java.lang.String schema)
        sets the schema into which to store the table
        Parameters:
        schema - the name of the schema
        Returns:
        this storer
      • owner

        public PgxDbFrameStorer owner​(java.lang.String owner)
        sets the owner (schema) of the table into which to store the data
        Parameters:
        owner - the owner
        Returns:
        this storer
      • connections

        public PgxDbFrameStorer connections​(int numConnections)
        sets the number of connections to open to store the data in parallel
        Parameters:
        numConnections - the number of connections
        Returns:
        this storer
      • storeAsync

        public PgxFuture<java.lang.Void> storeAsync​(java.lang.String... uris)
        trigger the async storing of the PgxFrame
        Specified by:
        storeAsync in class PgxFrameStorer<PgxDbFrameStorer>
        Parameters:
        uris - array denoting the uris
        Returns:
        the future for the result of the operation