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 -
Method Summary
Modifier and TypeMethodDescriptioncopyFrom(RdbmsEntityProviderConfig graphConfig) Sets this builder with all the values of the given provider config.Sets the SCN value to use as default.setDatabaseTableName(String databaseTableName) Sets the table name in the database.setDataSourceId(String dsId) Sets the datasource ID.setDataTableName(String dataTableName) Alias forsetDatabaseTableName(String)setDestinationColumn(String toVkey) Sets the name of the column holding the keys of the destination vertices.setDestinationKeyColumns(List<? extends ForeignKeyColumnDescriptor> destinationKeyColumns) Set destination key columns, i.e., a list of columns with foreign key relations to key columns in the destination vertex provider.setJdbcUrl(String url) Sets the jdbc url.setKeyColumn(String nKey) Sets the name for the column holding the keys.setMaxPreFetchedRows(int maxPreFetchedRows) Sets the maximum number of prefetched rows.setNumConnections(int c) Sets the number of connections.setParallelHintDegree(int parallelHintDegree) Sets the PARALLEL hint to use for internal queries.Sets the schema.setSourceColumn(String fromVkey) Sets the name of the column holding the keys of the source vertices.setSourceKeyColumns(List<? extends ForeignKeyColumnDescriptor> sourceKeyColumns) Set source key columns, i.e., a list of columns with foreign key relations to key columns in the source vertex provider.setUsername(String un) Sets the username.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, setKeyColumns, setKeystoreAlias, setKeyType, setLabel, setLocalDateFormat, setName, setPassword, setSourceVertexKeyType, setSourceVertexProvider, setStrictMode, setTimeFormat, setTimestampFormat, setTimestampWithTimezoneFormat, setTimeWithTimezoneFormat
-
Constructor Details
-
RdbmsEntityProviderConfigBuilder
public RdbmsEntityProviderConfigBuilder()
-
-
Method Details
-
toEntityProviderConfigBuilder
-
copyFrom
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
Sets the datasource ID.- Parameters:
dsId- the datasource ID- Returns:
- this builder
-
setJdbcUrl
Sets the jdbc url.- Parameters:
url- the url- Returns:
- this builder
-
setUsername
Sets the username.- Parameters:
un- the username- Returns:
- this builder
-
setDataTableName
Alias forsetDatabaseTableName(String)- Parameters:
dataTableName- the data table name- Returns:
- this builder
-
setDatabaseTableName
Sets the table name in the database.- Parameters:
databaseTableName- the nodes table name- Returns:
- this builder
-
setNumConnections
Sets the number of connections.- Parameters:
c- the number of connections- Returns:
- this builder
-
setKeyColumn
Sets the name for the column holding the keys.Warning: Setting this deprecated field in addition to
AbstractEntityProviderConfigBuilder.setKeyColumns(List)will causeAbstractEntityProviderConfigBuilder.build()to fail, as the generated config build be invalid.- Parameters:
nKey- the name of the key column- Returns:
- this builder
- See Also:
-
setSourceColumn
Sets the name of the column holding the keys of the source vertices.Warning: Setting this deprecated field in addition to
setSourceKeyColumns(List)will causeAbstractEntityProviderConfigBuilder.build()to fail, as the generated config build be invalid.- Parameters:
fromVkey- the column name- Returns:
- this builder
- See Also:
-
setSourceKeyColumns
@BetaApi public RdbmsEntityProviderConfigBuilder setSourceKeyColumns(List<? extends ForeignKeyColumnDescriptor> sourceKeyColumns) Set source key columns, i.e., a list of columns with foreign key relations to key columns in the source vertex provider.- Parameters:
sourceKeyColumns- source key columns- Returns:
- this builder
- Since:
- 25.2.0
-
setDestinationColumn
Sets the name of the column holding the keys of the destination vertices.Warning: Setting this deprecated field in addition to
setDestinationKeyColumns(List)will causeAbstractEntityProviderConfigBuilder.build()to fail, as the generated config build be invalid.- Parameters:
toVkey- the column id- Returns:
- this builder
- See Also:
-
setDestinationKeyColumns
@BetaApi public RdbmsEntityProviderConfigBuilder setDestinationKeyColumns(List<? extends ForeignKeyColumnDescriptor> destinationKeyColumns) Set destination key columns, i.e., a list of columns with foreign key relations to key columns in the destination vertex provider.- Parameters:
destinationKeyColumns- destination key columns- Returns:
- this builder
- Since:
- 25.2.0
-
setMaxPreFetchedRows
Sets the maximum number of prefetched rows.- Parameters:
maxPreFetchedRows- the maximum number of prefetched rows- Returns:
- this builder
-
setSchema
Sets the schema.- Parameters:
schema- the schema- Returns:
- this builder
-
setAsOf
Sets the SCN value to use as default.- Parameters:
asOf- the scn value- Returns:
- this builder
- Since:
- 21.4
-
setParallelHintDegree
Sets the PARALLEL hint to use for internal queries.- Parameters:
parallelHintDegree- the degree of parallelism- Returns:
- this builder
- Since:
- 22.3
-