Item name |
Required / Optional |
Use of Variables |
Description |
Remarks |
Destination |
Required |
Not available |
Select Global Resources.
- [Add]:
Adds new global resource.
- [Edit list]:
Global resource settings can be edited by "Edit resource list".
|
|
SQL statement |
Required |
Available |
Enter the SQL statements to issue to the database. |
- Disabled if [Destination] is not set or invalid.
"SQL parameters" can be used.
- You can specify SQL sentences such as INSERT , UPDATE, DELETE or DDL sentence which returns nothing.
- When SQL parameter is not included in [SQL statement], executes executeUpdate() method of java.sql.Statement Class, if SQL parameter is included, executes executeUpdate() method of java.sql.PreparedStatement Class.
Please contact database vendor about executable SQL statement other than the above.
- You are allowed to input characters up to "2147483647". However, in case there is a pre-set limitation in the database or the driver, it would be the upper limit.
|
Schema definition |
Optional |
- |
Sets SQL parameters specified in [SQL statement]. |
- It is not displayed when [SQL statement] does not use SQL parameter.
- Column name shown in [Schema definition] is displayed in schema of Mapper.
|
Schema definition / Column name |
Required |
Not available |
Set the SQL parameter name. |
- It is not displayed when [SQL statement] does not use SQL parameter.
|
Schema definition / Type |
Required |
Not available |
Select the SQL parameter type. |
- It is not displayed when [SQL statement] does not use SQL parameter.
- Displayed in the format of "Native type (Internal data type)" .
- Native type:
The data type of each specific RDBMS.
- Internal data type
Data type used internally in DataSpider.
Refer to Internal data type for details.
|
Component variable name |
Description |
Remarks |
count |
Returns the number of updated data. |
- The value defaults to null.
In the batch update, returns the number of input data.
e.g.:if multiple records are updated by 1 input data, count is assigned as "1". If no update is made, it also returns the number of input data.
|
error_code |
Stores an error code corresponding to occurred SQL exception (SQLException). |
- The value defaults to null.
- Upon successful completion, "0" is returned.
The error code is based on the specifications of each driver vendor.
|
message_category |
Stroes the category to which corresponding message code belongs to, when an error occurs. |
- The value defaults to null.
|
message_code |
Stores its corresponding message code of occured error. |
- The value defaults to null.
|
message_level |
Stores the severity of the corresponding message code of the occured error. |
- The value defaults to null.
|
error_type |
Stores the type of the occured error. |
- The value defaults to null.
- Error is represented in the format depicted below.
Example:java.io.FileNotFoundException
The message may vary depending on the DataSpider Servista version.
|
error_message |
Stores the error message for the occured error. |
- The value defaults to null.
The message may vary depending on the DataSpider Servista version.
|
error_trace |
Stores stack trace of the occurred error. |
- The value defaults to null.
The message may vary depending on the DataSpider Servista version or the client application used.
|
Exception name |
Causes |
Solution |
ResourceNotFoundException Resource definition could not be found.Name: [] |
[Destination] is not specified. |
Specify [Destination]. |
ResourceNotFoundException Resource definition could not be found.Name: [<name of Global Resources>] |
Resource definition selected in [Destination] is not found. |
Please check the global resource specified in [Destination] |
InvalidPropertyConfigurationException |
[SQL statement] is not set. |
Please specify [SQL statement]. |
java.sql.SQLException |
Database access error or other error occurred. |
Check the message of SQLException.SQLException message is based on the specifications of each driver.SQLException messages may outputs cause of the error.
For more information about the message, please contact each database vendor. |