Package oracle.pgx.api.frames
Class PgxDbFrameStorer
- java.lang.Object
-
- oracle.pgx.api.frames.PgxFrameStorer<PgxDbFrameStorer>
-
- oracle.pgx.api.frames.PgxDbFrameStorer
-
public class PgxDbFrameStorer extends PgxFrameStorer<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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PgxDbFrameStorer
connections(int numConnections)
sets the number of connections to open to store the data in parallelPgxDbFrameStorer
dataSourceId(java.lang.String dataSourceId)
sets the dataSourceId to which to connectPgxDbFrameStorer
jdbcUrl(java.lang.String jdbcUrl)
sets the jdbcUrl to use for connecting to the DBPgxDbFrameStorer
keystoreAlias(java.lang.String keystoreAlias)
sets the keystore alias to retrieve the password from the keystorePgxDbFrameStorer
name(java.lang.String frameName)
sets the name of the stored framePgxDbFrameStorer
owner(java.lang.String owner)
sets the owner (schema) of the table into which to store the dataPgxDbFrameStorer
password(java.lang.String password)
sets the password to use for connecting to the databasePgxDbFrameStorer
schema(java.lang.String schema)
sets the schema into which to store the tablePgxFuture<java.lang.Void>
storeAsync(java.lang.String... uris)
trigger the async storing of the PgxFramePgxDbFrameStorer
tablename(java.lang.String tableName)
sets name of the table that should be stored in DBPgxDbFrameStorer
username(java.lang.String userName)
sets the username of the DB user to use to connect to the DB-
Methods inherited from class oracle.pgx.api.frames.PgxFrameStorer
overwrite, store
-
-
-
-
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
-
name
public PgxDbFrameStorer name(java.lang.String frameName)
sets the name of the stored frame- Specified by:
name
in classPgxFrameStorer<PgxDbFrameStorer>
- Parameters:
frameName
- string denoting the frameName- Returns:
- this storer
-
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 classPgxFrameStorer<PgxDbFrameStorer>
- Parameters:
uris
- array denoting the uris- Returns:
- the future for the result of the operation
-
-