Returns a Vector (java.util.Vector) from the original array of objects (java.util.ArrayList).
Its main function within the xsql language is to facilitate the construction of SOAP requests in which
is required to send a data array as a parameter to a function. In general, the xsql script does not require
the use of this function outside this ambit. In general, by their nature, sql scripts do not require the use
of this function outside of this scope.
1 array.toVector
<array.toVector name='name'>
<array /> ?
</array.toVector>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aname | string | Name of the variable of array type. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Earray | array | Array object which you want to transform to a Vector. |
Returns | |
---|---|
Type | Description |
Vector | Returns a Vector of the original array. |
Example
Generation of a vector of integers (int).
Copy
<xsql-script name='test_arrayToVector'> <body> <array.toVector> <array> <number type='integer'>10</number> <number type='integer'>20</number> <number type='integer'>30</number> </array> </array.toVector> </body> </xsql-script>
Shows the following result:
Copy
true