Package oracle.pgx.config
Class RdbmsEntityProviderConfigBuilder
- java.lang.Object
-
- oracle.pgx.config.AbstractEntityProviderConfigBuilder<RdbmsEntityProviderConfigBuilder,RdbmsEntityProviderConfig>
-
- oracle.pgx.config.RdbmsEntityProviderConfigBuilder
-
- All Implemented Interfaces:
oracle.pgx.config.internal.ConvertibleToEntityProviderConfigBuilder
public final class RdbmsEntityProviderConfigBuilder extends AbstractEntityProviderConfigBuilder<RdbmsEntityProviderConfigBuilder,RdbmsEntityProviderConfig>
A table configuration builder for rdbms-based table configurations.
-
-
Constructor Summary
Constructors Constructor Description RdbmsEntityProviderConfigBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RdbmsEntityProviderConfigBuildercopyFrom(RdbmsEntityProviderConfig graphConfig)Sets this builder with all the values of the given provider config.RdbmsEntityProviderConfigBuildersetAsOf(java.lang.String asOf)Sets the SCN value to use as default.RdbmsEntityProviderConfigBuildersetDatabaseTableName(java.lang.String databaseTableName)Sets the table name in the database.RdbmsEntityProviderConfigBuildersetDataSourceId(java.lang.String dsId)Sets the datasource ID.RdbmsEntityProviderConfigBuildersetDataTableName(java.lang.String dataTableName)Alias forsetDatabaseTableName(String)RdbmsEntityProviderConfigBuildersetDestinationColumn(java.lang.String toVkey)Sets the name of the column holding the keys of the destination vertices.RdbmsEntityProviderConfigBuildersetJdbcUrl(java.lang.String url)Sets the jdbc url.RdbmsEntityProviderConfigBuildersetKeyColumn(java.lang.String nKey)Sets the name for the column holding the keys.RdbmsEntityProviderConfigBuildersetMaxPreFetchedRows(int maxPreFetchedRows)Sets the maximum number of prefetched rows.RdbmsEntityProviderConfigBuildersetNumConnections(int c)Sets the number of connections.RdbmsEntityProviderConfigBuildersetParallelHintDegree(int parallelHintDegree)Sets the PARALLEL hint to use for internal queries.RdbmsEntityProviderConfigBuildersetSchema(java.lang.String schema)Sets the schema.RdbmsEntityProviderConfigBuildersetSourceColumn(java.lang.String fromVkey)Sets the name of the column holding the keys of the source vertices.RdbmsEntityProviderConfigBuildersetUsername(java.lang.String un)Sets the username.RdbmsEntityProviderConfigBuildertoEntityProviderConfigBuilder()-
Methods inherited from class oracle.pgx.config.AbstractEntityProviderConfigBuilder
addAttribute, addProperty, addProperty, addProperty, addStringProperty, addStringProperty, addVectorProperty, addVectorProperty, addVectorProperty, addVectorProperty, build, clearProperties, copyBaseFrom, createKeyMapping, enableEdgeIdDuplicateCheck, enableVertexIdDuplicateCheck, redactPassword, removeProperty, setDestinationVertexKeyType, setDestinationVertexProvider, setErrorHandlingOnDuplicateEntityId, setErrorHandlingOnMissedPropKey, setErrorHandlingOnMissingVertex, setErrorHandlingOnParsingIssue, setErrorHandlingOnPropConversion, setErrorHandlingOnTypeMismatch, setErrorHandlingOnVectorLengthMismatch, setHasKeys, setKeystoreAlias, setKeyType, setLabel, setLocalDateFormat, setName, setPassword, setSourceVertexKeyType, setSourceVertexProvider, setStrictMode, setTimeFormat, setTimestampFormat, setTimestampWithTimezoneFormat, setTimeWithTimezoneFormat
-
-
-
-
Method Detail
-
toEntityProviderConfigBuilder
public RdbmsEntityProviderConfigBuilder toEntityProviderConfigBuilder()
-
copyFrom
public RdbmsEntityProviderConfigBuilder copyFrom(RdbmsEntityProviderConfig graphConfig)
Description copied from class:AbstractEntityProviderConfigBuilderSets this builder with all the values of the given provider config. If a format was already specified it will remain unchanged, however any other values copied from the given provider config will overwrite the corresponding values of this builder.- Overrides:
copyFromin classAbstractEntityProviderConfigBuilder<RdbmsEntityProviderConfigBuilder,RdbmsEntityProviderConfig>- Parameters:
graphConfig- the provider configuration from which to copy the values- Returns:
- this builder
-
setDataSourceId
public RdbmsEntityProviderConfigBuilder setDataSourceId(java.lang.String dsId)
Sets the datasource ID.- Parameters:
dsId- the datasource ID- Returns:
- this builder
-
setJdbcUrl
public RdbmsEntityProviderConfigBuilder setJdbcUrl(java.lang.String url)
Sets the jdbc url.- Parameters:
url- the url- Returns:
- this builder
-
setUsername
public RdbmsEntityProviderConfigBuilder setUsername(java.lang.String un)
Sets the username.- Parameters:
un- the username- Returns:
- this builder
-
setDataTableName
public RdbmsEntityProviderConfigBuilder setDataTableName(java.lang.String dataTableName)
Alias forsetDatabaseTableName(String)- Parameters:
dataTableName- the data table name- Returns:
- this builder
-
setDatabaseTableName
public RdbmsEntityProviderConfigBuilder setDatabaseTableName(java.lang.String databaseTableName)
Sets the table name in the database.- Parameters:
databaseTableName- the nodes table name- Returns:
- this builder
-
setNumConnections
public RdbmsEntityProviderConfigBuilder setNumConnections(int c)
Sets the number of connections.- Parameters:
c- the number of connections- Returns:
- this builder
-
setKeyColumn
public RdbmsEntityProviderConfigBuilder setKeyColumn(java.lang.String nKey)
Sets the name for the column holding the keys.- Parameters:
nKey- the name of the key column- Returns:
- this builder
-
setSourceColumn
public RdbmsEntityProviderConfigBuilder setSourceColumn(java.lang.String fromVkey)
Sets the name of the column holding the keys of the source vertices.- Parameters:
fromVkey- the column name- Returns:
- this builder
-
setDestinationColumn
public RdbmsEntityProviderConfigBuilder setDestinationColumn(java.lang.String toVkey)
Sets the name of the column holding the keys of the destination vertices.- Parameters:
toVkey- the column id- Returns:
- this builder
-
setMaxPreFetchedRows
public RdbmsEntityProviderConfigBuilder setMaxPreFetchedRows(int maxPreFetchedRows)
Sets the maximum number of prefetched rows.- Parameters:
maxPreFetchedRows- the maximum number of prefetched rows- Returns:
- this builder
-
setSchema
public RdbmsEntityProviderConfigBuilder setSchema(java.lang.String schema)
Sets the schema.- Parameters:
schema- the schema- Returns:
- this builder
-
setAsOf
public RdbmsEntityProviderConfigBuilder setAsOf(java.lang.String asOf)
Sets the SCN value to use as default.- Parameters:
asOf- the scn value- Returns:
- this builder
- Since:
- 21.4
-
setParallelHintDegree
public RdbmsEntityProviderConfigBuilder setParallelHintDegree(int parallelHintDegree)
Sets the PARALLEL hint to use for internal queries.- Parameters:
parallelHintDegree- the degree of parallelism- Returns:
- this builder
- Since:
- 22.3
-
-