Db2Source Class

public final class Db2Source
extends TabularSource

A copy activity source for Db2 databases.

Constructor Summary

Constructor Description
Db2Source()

Creates an instance of Db2Source class.

Method Summary

Modifier and Type Method and Description
static Db2Source fromJson(JsonReader jsonReader)

Reads an instance of Db2Source from the JsonReader.

Object query()

Get the query property: Database query.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Copy source type.

void validate()

Validates the instance.

Db2Source withAdditionalColumns(Object additionalColumns)

Set the additionalColumns property: Specifies the additional columns to be added to source data.

Db2Source withDisableMetricsCollection(Object disableMetricsCollection)

Set the disableMetricsCollection property: If true, disable data store metrics collection.

Db2Source withMaxConcurrentConnections(Object maxConcurrentConnections)

Set the maxConcurrentConnections property: The maximum concurrent connection count for the source data store.

Db2Source withQuery(Object query)

Set the query property: Database query.

Db2Source withQueryTimeout(Object queryTimeout)

Set the queryTimeout property: Query timeout.

Db2Source withSourceRetryCount(Object sourceRetryCount)

Set the sourceRetryCount property: Source retry count.

Db2Source withSourceRetryWait(Object sourceRetryWait)

Set the sourceRetryWait property: Source retry wait.

Methods inherited from CopySource

Methods inherited from TabularSource

Methods inherited from java.lang.Object

Constructor Details

Db2Source

public Db2Source()

Creates an instance of Db2Source class.

Method Details

fromJson

public static Db2Source fromJson(JsonReader jsonReader)

Reads an instance of Db2Source from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of Db2Source if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the Db2Source.

query

public Object query()

Get the query property: Database query. Type: string (or Expression with resultType string).

Returns:

the query value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

Db2Source.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Copy source type.

Overrides:

Db2Source.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

Db2Source.validate()

withAdditionalColumns

public Db2Source withAdditionalColumns(Object additionalColumns)

Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with resultType array of objects).

Overrides:

Db2Source.withAdditionalColumns(Object additionalColumns)

Parameters:

additionalColumns

withDisableMetricsCollection

public Db2Source withDisableMetricsCollection(Object disableMetricsCollection)

Set the disableMetricsCollection property: If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean).

Overrides:

Db2Source.withDisableMetricsCollection(Object disableMetricsCollection)

Parameters:

disableMetricsCollection

withMaxConcurrentConnections

public Db2Source withMaxConcurrentConnections(Object maxConcurrentConnections)

Set the maxConcurrentConnections property: The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer).

Overrides:

Db2Source.withMaxConcurrentConnections(Object maxConcurrentConnections)

Parameters:

maxConcurrentConnections

withQuery

public Db2Source withQuery(Object query)

Set the query property: Database query. Type: string (or Expression with resultType string).

Parameters:

query - the query value to set.

Returns:

the Db2Source object itself.

withQueryTimeout

public Db2Source withQueryTimeout(Object queryTimeout)

Set the queryTimeout property: Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).

Overrides:

Db2Source.withQueryTimeout(Object queryTimeout)

Parameters:

queryTimeout

withSourceRetryCount

public Db2Source withSourceRetryCount(Object sourceRetryCount)

Set the sourceRetryCount property: Source retry count. Type: integer (or Expression with resultType integer).

Overrides:

Db2Source.withSourceRetryCount(Object sourceRetryCount)

Parameters:

sourceRetryCount

withSourceRetryWait

public Db2Source withSourceRetryWait(Object sourceRetryWait)

Set the sourceRetryWait property: Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).

Overrides:

Db2Source.withSourceRetryWait(Object sourceRetryWait)

Parameters:

sourceRetryWait

Applies to