// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "java-sql-BatchUpdateException"))]
__jni_bindgen! {
/// public class [BatchUpdateException](https://developer.android.com/reference/java/sql/BatchUpdateException.html)
///
/// Required feature: "java-sql-BatchUpdateException"
public class BatchUpdateException ("java/sql/BatchUpdateException") extends crate::java::sql::SQLException, implements crate::java::io::Serializable {
/// [BatchUpdateException](https://developer.android.com/reference/java/sql/BatchUpdateException.html#BatchUpdateException())
pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::sql::BatchUpdateException>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/sql/BatchUpdateException", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/sql/BatchUpdateException\0", "<init>\0", "()V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [BatchUpdateException](https://developer.android.com/reference/java/sql/BatchUpdateException.html#BatchUpdateException(int%5B%5D))
pub fn new_int_array<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::IntArray>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::sql::BatchUpdateException>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/sql/BatchUpdateException", java.flags == PUBLIC, .name == "<init>", .descriptor == "([I)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/sql/BatchUpdateException\0", "<init>\0", "([I)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [BatchUpdateException](https://developer.android.com/reference/java/sql/BatchUpdateException.html#BatchUpdateException(java.lang.String,%20int%5B%5D))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn new_String_int_array<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::IntArray>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::sql::BatchUpdateException>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/sql/BatchUpdateException", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;[I)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/sql/BatchUpdateException\0", "<init>\0", "(Ljava/lang/String;[I)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [BatchUpdateException](https://developer.android.com/reference/java/sql/BatchUpdateException.html#BatchUpdateException(java.lang.String,%20java.lang.String,%20int%5B%5D))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn new_String_String_int_array<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::IntArray>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::sql::BatchUpdateException>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/sql/BatchUpdateException", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;Ljava/lang/String;[I)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/sql/BatchUpdateException\0", "<init>\0", "(Ljava/lang/String;Ljava/lang/String;[I)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [BatchUpdateException](https://developer.android.com/reference/java/sql/BatchUpdateException.html#BatchUpdateException(java.lang.String,%20java.lang.String,%20int,%20int%5B%5D))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn new_String_String_int_int_array<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg2: i32, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::IntArray>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::java::sql::BatchUpdateException>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/sql/BatchUpdateException", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;Ljava/lang/String;I[I)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/sql/BatchUpdateException\0", "<init>\0", "(Ljava/lang/String;Ljava/lang/String;I[I)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getUpdateCounts](https://developer.android.com/reference/java/sql/BatchUpdateException.html#getUpdateCounts())
pub fn getUpdateCounts<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::IntArray>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "java/sql/BatchUpdateException", java.flags == PUBLIC, .name == "getUpdateCounts", .descriptor == "()[I"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("java/sql/BatchUpdateException\0", "getUpdateCounts\0", "()[I\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}