Ejemplo n.º 1
0
 @DocAnnotation$annotation$(
     description =
         " Batch simple SQL strings and execute the batch where the async result contains a array of Integers.\n")
 @TypeInfo("io.vertx.ceylon.sql::SQLConnection")
 public SQLConnection batch(
     final @TypeInfo("ceylon.language::List<ceylon.language::String>") @Name("sqlStatements")
         @DocAnnotation$annotation$(description = "sql statement\n") ceylon.language.List<
                 ceylon.language.String>
             sqlStatements,
     final @TypeInfo(
             "ceylon.language::Anything(ceylon.language::Throwable|ceylon.language::List<ceylon.language::Integer>)")
         @Name("handler") @DocAnnotation$annotation$(description = "the result handler\n")
         Callable<?> handler) {
   java.util.List<java.lang.String> arg_0 =
       io.vertx.lang.ceylon.ToJava.convertList(sqlStatements, io.vertx.lang.ceylon.ToJava.String);
   io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<java.lang.Integer>>> arg_1 =
       handler == null
           ? null
           : new io.vertx.lang.ceylon.CallableAsyncResultHandler<
               java.util.List<java.lang.Integer>>(handler) {
             public Object toCeylon(java.util.List<java.lang.Integer> event) {
               return io.vertx.lang.ceylon.ToCeylon.convertList(
                   ceylon.language.Integer.$TypeDescriptor$,
                   event,
                   io.vertx.lang.ceylon.ToCeylon.Integer);
             }
           };
   SQLConnection ret =
       io.vertx.ceylon.sql.SQLConnection.TO_CEYLON
           .converter()
           .safeConvert(delegate.batch(arg_0, arg_1));
   return this;
 }
Ejemplo n.º 2
0
 @DocAnnotation$annotation$(
     description =
         " Batch a callable statement with all entries from the args list. Each entry is a batch.\n The size of the lists inArgs and outArgs MUST be the equal.\n The operation completes with the execution of the batch where the async result contains a array of Integers.\n")
 @TypeInfo("io.vertx.ceylon.sql::SQLConnection")
 public SQLConnection batchCallableWithParams(
     final @TypeInfo("ceylon.language::String") @Name("sqlStatement") @DocAnnotation$annotation$(
             description = "sql statement\n") ceylon.language.String sqlStatement,
     final @TypeInfo("ceylon.language::List<ceylon.json::Array>") @Name("inArgs")
         @DocAnnotation$annotation$(description = "the callable statement input arguments\n")
         ceylon.language.List<ceylon.json.Array> inArgs,
     final @TypeInfo("ceylon.language::List<ceylon.json::Array>") @Name("outArgs")
         @DocAnnotation$annotation$(description = "the callable statement output arguments\n")
         ceylon.language.List<ceylon.json.Array> outArgs,
     final @TypeInfo(
             "ceylon.language::Anything(ceylon.language::Throwable|ceylon.language::List<ceylon.language::Integer>)")
         @Name("handler") @DocAnnotation$annotation$(description = "the result handler\n")
         Callable<?> handler) {
   java.lang.String arg_0 = io.vertx.lang.ceylon.ToJava.String.safeConvert(sqlStatement);
   java.util.List<io.vertx.core.json.JsonArray> arg_1 =
       io.vertx.lang.ceylon.ToJava.convertList(inArgs, io.vertx.lang.ceylon.ToJava.JsonArray);
   java.util.List<io.vertx.core.json.JsonArray> arg_2 =
       io.vertx.lang.ceylon.ToJava.convertList(outArgs, io.vertx.lang.ceylon.ToJava.JsonArray);
   io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<java.lang.Integer>>> arg_3 =
       handler == null
           ? null
           : new io.vertx.lang.ceylon.CallableAsyncResultHandler<
               java.util.List<java.lang.Integer>>(handler) {
             public Object toCeylon(java.util.List<java.lang.Integer> event) {
               return io.vertx.lang.ceylon.ToCeylon.convertList(
                   ceylon.language.Integer.$TypeDescriptor$,
                   event,
                   io.vertx.lang.ceylon.ToCeylon.Integer);
             }
           };
   SQLConnection ret =
       io.vertx.ceylon.sql.SQLConnection.TO_CEYLON
           .converter()
           .safeConvert(delegate.batchCallableWithParams(arg_0, arg_1, arg_2, arg_3));
   return this;
 }
 @DocAnnotation$annotation$(
     description =
         " Like [join](compositeFuture.type.html#join) but with a list of futures.<p>\n\n When the list is empty, the returned future will be already completed.\n")
 @TypeInfo("io.vertx.ceylon.core::CompositeFuture")
 public CompositeFuture join(
     final @TypeInfo("ceylon.language::List<io.vertx.ceylon.core::Future>") @Name("futures") ceylon
                     .language.List<
                 Future>
             futures) {
   java.util.List<io.vertx.core.Future> arg_0 =
       io.vertx.lang.ceylon.ToJava.convertList(futures, io.vertx.ceylon.core.Future.TO_JAVA);
   CompositeFuture ret =
       io.vertx.ceylon.core.CompositeFuture.TO_CEYLON
           .converter()
           .safeConvert(io.vertx.core.CompositeFuture.join(arg_0));
   return ret;
 }