Java Code Examples for io.vertx.sqlclient.Tuple#wrap()
The following examples show how to use
io.vertx.sqlclient.Tuple#wrap() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SqlTemplate.java From vertx-sql-client with Apache License 2.0 | 5 votes |
public Tuple mapTuple(Map<String, Object> args) { Object[] array = new Object[mapping.length]; for (int i = 0;i < array.length;i++) { array[i] = args.get(mapping[i]); } return Tuple.wrap(array); }
Example 2
Source File: TupleTest.java From vertx-sql-client with Apache License 2.0 | 5 votes |
@Override Tuple of(Object... elements) { if (elements.length == 0) { throw new IllegalArgumentException(); } return Tuple.wrap(new ArrayList<>(Arrays.asList(elements))); }
Example 3
Source File: TupleTest.java From vertx-sql-client with Apache License 2.0 | 4 votes |
@Override Tuple tuple() { return Tuple.wrap(new ArrayList<>()); }
Example 4
Source File: TupleTest.java From vertx-sql-client with Apache License 2.0 | 4 votes |
@Override Tuple tuple() { return Tuple.wrap(new ArrayList<>()); }
Example 5
Source File: TupleTest.java From vertx-sql-client with Apache License 2.0 | 4 votes |
@Override Tuple of(Object... elements) { return Tuple.wrap(elements); }