July 30, 2023

tJDBCColumnList – Docs for ESB 7.x

tJDBCColumnList

Lists all column names of a given JDBC table.

tJDBCColumList iterates on all
columns of a given table through a defined JDBC connection.

tJDBCColumnList Standard properties

These properties are used to configure tJDBCColumnList running in the Standard Job framework.

The Standard
tJDBCColumnList component belongs to the Databases family.

The component in this framework is available in all Talend
products
.

Basic settings

Database Type

Select the type of the database to be accessed.

Component list

Select the tJDBCConnection
component in the list if more than one connection are planned for
the current Job.

Table name

Enter the name of the table.

Die on error

Select the check box to stop the execution of the Job when an error
occurs.

Clear the check box to skip any rows on error and complete the process for
error-free rows. When errors are skipped, you can collect the rows on error using a Row > Reject link.

Advanced settings

tStatCatcher Statistics

Select this check box to collect log data at the component level.

Global Variables

Global Variables

CURRENT_COLUMN: the name of the column currently iterated
upon. This is a Flow variable and it returns a string.

CURRENT_COLUMN_TYPE: the ID of the type of the column
currently iterated upon. This is a Flow variable and it returns an integer.

CURRENT_COLUMN_TYPE_NAME: the name of the type of the
column currently iterated upon. This is a Flow variable and it returns a string.

CURRENT_COLUMN_PRECISION: the precision of the column
currently iterated upon. This is a Flow variable, and it returns an integer.

CURRENT_COLUMN_SCALE: the scale of the column currently
iterated upon. This is a Flow variable, and it returns an integer.

NB_COLUMN: the number of columns iterated upon so far.
This is an After variable and it returns an integer.

ERROR_MESSAGE: the error message generated by the
component when an error occurs. This is an After variable and it returns a string. This
variable functions only if the Die on error check box is
cleared, if the component has this check box.

A Flow variable functions during the execution of a component while an After variable
functions after the execution of the component.

To fill up a field or expression with a variable, press Ctrl +
Space
to access the variable list and choose the variable to use from it.

For further information about variables, see
Talend Studio

User Guide.

Usage

Usage rule

This component is to be used along with JDBC components,
especially with tJDBCConnection.

Related scenario

For tJDBCColumnList related scenario, see Iterating on a DB table and listing its column names.


Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x