コード例 #1
0
 public static global::Java.Lang.Annotation.Annotation GetDeclaredAnnotation(global::Java.Lang.Class arg0)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[1];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(arg0))
     {
         if (_cmj_fun1.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun1.CallObject(null, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Java.Lang.Annotation.AnnotationImpl(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Java.Lang.Annotation.Annotation)_cmj_fun1.CallObject(null, typeof(global::Java.Lang.Annotation.Annotation), false, cmj_jmargs));
         }
     }
 }
コード例 #2
0
 public global::Java.Sql.PreparedStatement PrepareStatement(string sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[4];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(sql).Add(resultSetType).Add(resultSetConcurrency).Add(resultSetHoldability))
     {
         if (_cmj_fun36.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun36.CallObject(this, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Java.Sql.PreparedStatementImpl(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Java.Sql.PreparedStatement)_cmj_fun36.CallObject(this, typeof(global::Java.Sql.PreparedStatement), false, cmj_jmargs));
         }
     }
 }
コード例 #3
0
ファイル: Comparator.cs プロジェクト: ridomin/HSQLDB.Net
 public static global::Java.Util.Comparator NullsFirst(global::Java.Util.Comparator arg0)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[1];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(arg0))
     {
         if (_cmj_fun1.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun1.CallObject(null, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Java.Util.ComparatorImpl(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Java.Util.Comparator)_cmj_fun1.CallObject(null, typeof(global::Java.Util.Comparator), false, cmj_jmargs));
         }
     }
 }
コード例 #4
0
 public global::Java.Io.Writer SetCharacterStream(long pos)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[1];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(pos))
     {
         if (_cmj_fun9.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun9.CallObject(this, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Java.Io.Writer.WriterImpl(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Java.Io.Writer)_cmj_fun9.CallObject(this, typeof(global::Java.Io.Writer), false, cmj_jmargs));
         }
     }
 }
コード例 #5
0
 public global::Java.Sql.Struct CreateStruct(string typeName, global::Java.Lang.ObjectArray attributes)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[2];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(typeName).Add(attributes))
     {
         if (_cmj_fun12.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun12.CallObject(this, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Java.Sql.StructImpl(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Java.Sql.Struct)_cmj_fun12.CallObject(this, typeof(global::Java.Sql.Struct), false, cmj_jmargs));
         }
     }
 }
コード例 #6
0
 public global::Java.Lang.Annotation.AnnotationArray GetAnnotationsByType(global::Java.Lang.Class annotationClass)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[1];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(annotationClass))
     {
         if (_cmj_fun2.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun2.CallObject(this, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Java.Lang.Annotation.AnnotationArray(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Java.Lang.Annotation.AnnotationArray)_cmj_fun2.CallObject(this, typeof(global::Java.Lang.Annotation.AnnotationArray), false, cmj_jmargs));
         }
     }
 }
コード例 #7
0
 public global::Java.Sql.Connection Connect(string url, global::Java.Util.Properties info)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[2];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(url).Add(info))
     {
         if (_cmj_fun1.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun1.CallObject(this, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Java.Sql.ConnectionImpl(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Java.Sql.Connection)_cmj_fun1.CallObject(this, typeof(global::Java.Sql.Connection), false, cmj_jmargs));
         }
     }
 }
コード例 #8
0
ファイル: BigDecimal.cs プロジェクト: ridomin/HSQLDB.Net
 public static global::Java.Math.BigDecimal ValueOf(long unscaledVal, int scale)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[2];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(unscaledVal).Add(scale))
     {
         if (_cmj_fun34.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun34.CallObject(null, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Java.Math.BigDecimal(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Java.Math.BigDecimal)_cmj_fun34.CallObject(null, typeof(global::Java.Math.BigDecimal), false, cmj_jmargs));
         }
     }
 }
コード例 #9
0
ファイル: CharSequence.cs プロジェクト: ridomin/HSQLDB.Net
 public global::Java.Lang.CharSequence SubSequence(int start, int end)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[2];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(start).Add(end))
     {
         if (_cmj_fun2.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun2.CallObject(this, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Java.Lang.CharSequenceImpl(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Java.Lang.CharSequence)_cmj_fun2.CallObject(this, typeof(global::Java.Lang.CharSequence), false, cmj_jmargs));
         }
     }
 }
コード例 #10
0
ファイル: BigDecimal.cs プロジェクト: ridomin/HSQLDB.Net
 public global::Java.Math.BigDecimal SetScale(int newScale, int roundingMode)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[2];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(newScale).Add(roundingMode))
     {
         if (_cmj_fun24.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun24.CallObject(this, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Java.Math.BigDecimal(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Java.Math.BigDecimal)_cmj_fun24.CallObject(this, typeof(global::Java.Math.BigDecimal), false, cmj_jmargs));
         }
     }
 }
コード例 #11
0
ファイル: BigDecimal.cs プロジェクト: ridomin/HSQLDB.Net
 public global::Java.Math.BigDecimal Subtract(global::Java.Math.BigDecimal subtrahend)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[1];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(subtrahend))
     {
         if (_cmj_fun28.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun28.CallObject(this, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Java.Math.BigDecimal(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Java.Math.BigDecimal)_cmj_fun28.CallObject(this, typeof(global::Java.Math.BigDecimal), false, cmj_jmargs));
         }
     }
 }
コード例 #12
0
ファイル: BigDecimal.cs プロジェクト: ridomin/HSQLDB.Net
 public global::Java.Math.BigDecimalArray DivideAndRemainder(global::Java.Math.BigDecimal divisor)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[1];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(divisor))
     {
         if (_cmj_fun7.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun7.CallObject(this, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Java.Math.BigDecimalArray(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Java.Math.BigDecimalArray)_cmj_fun7.CallObject(this, typeof(global::Java.Math.BigDecimalArray), false, cmj_jmargs));
         }
     }
 }
コード例 #13
0
ファイル: AbstractList.cs プロジェクト: ridomin/HSQLDB.Net
 public global::Java.Util.List SubList(int fromIndex, int toIndex)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[2];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(fromIndex).Add(toIndex))
     {
         if (_cmj_fun9.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun9.CallObject(this, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Java.Util.ListImpl(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Java.Util.List)_cmj_fun9.CallObject(this, typeof(global::Java.Util.List), false, cmj_jmargs));
         }
     }
 }
コード例 #14
0
ファイル: AbstractList.cs プロジェクト: ridomin/HSQLDB.Net
 public global::Java.Util.ListIterator ListIterator(int index)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[1];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(index))
     {
         if (_cmj_fun6.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun6.CallObject(this, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Java.Util.ListIteratorImpl(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Java.Util.ListIterator)_cmj_fun6.CallObject(this, typeof(global::Java.Util.ListIterator), false, cmj_jmargs));
         }
     }
 }
コード例 #15
0
 public global::Javax.Sql.PooledConnection GetPooledConnection(string user, string password)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[2];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(user).Add(password))
     {
         if (_cmj_fun1.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun1.CallObject(this, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Javax.Sql.PooledConnectionImpl(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Javax.Sql.PooledConnection)_cmj_fun1.CallObject(this, typeof(global::Javax.Sql.PooledConnection), false, cmj_jmargs));
         }
     }
 }
コード例 #16
0
 public static global::Java.Sql.Connection GetConnection(string url)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[1];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(url))
     {
         if (_cmj_fun1.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun1.CallObject(null, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Java.Sql.ConnectionImpl(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Java.Sql.Connection)_cmj_fun1.CallObject(null, typeof(global::Java.Sql.Connection), false, cmj_jmargs));
         }
     }
 }
コード例 #17
0
ファイル: Collection.cs プロジェクト: ridomin/HSQLDB.Net
 public global::Java.Lang.ObjectArray ToArray(global::Java.Lang.ObjectArray a)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[1];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(a))
     {
         if (_cmj_fun14.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun14.CallObject(this, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Java.Lang.ObjectArray(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Java.Lang.ObjectArray)_cmj_fun14.CallObject(this, typeof(global::Java.Lang.ObjectArray), false, cmj_jmargs));
         }
     }
 }
コード例 #18
0
ファイル: Blob.cs プロジェクト: ridomin/HSQLDB.Net
 public global::Java.Io.InputStream GetBinaryStream(long pos, long length)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[2];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(pos).Add(length))
     {
         if (_cmj_fun2.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun2.CallObject(this, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Java.Io.InputStream.InputStreamImpl(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Java.Io.InputStream)_cmj_fun2.CallObject(this, typeof(global::Java.Io.InputStream), false, cmj_jmargs));
         }
     }
 }
コード例 #19
0
 public static global::Java.Sql.Time ValueOf(global::Java.Time.LocalTime time)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[1];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(time))
     {
         if (_cmj_fun2.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun2.CallObject(null, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Java.Sql.Time(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Java.Sql.Time)_cmj_fun2.CallObject(null, typeof(global::Java.Sql.Time), false, cmj_jmargs));
         }
     }
 }
コード例 #20
0
ファイル: Blob.cs プロジェクト: ridomin/HSQLDB.Net
 public global::Codemesh.JuggerNET.byteArray GetBytes(long pos, int length)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[2];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(pos).Add(length))
     {
         if (_cmj_fun3.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun3.CallObject(this, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Codemesh.JuggerNET.byteArray(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Codemesh.JuggerNET.byteArray)_cmj_fun3.CallObject(this, typeof(global::Codemesh.JuggerNET.byteArray), false, cmj_jmargs));
         }
     }
 }
コード例 #21
0
ファイル: Predicate.cs プロジェクト: ridomin/HSQLDB.Net
 public static global::Java.Util.Function.Predicate IsEqual(object arg0)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[1];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(arg0))
     {
         if (_cmj_fun1.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun1.CallObject(null, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Java.Util.Function.PredicateImpl(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Java.Util.Function.Predicate)_cmj_fun1.CallObject(null, typeof(global::Java.Util.Function.Predicate), false, cmj_jmargs));
         }
     }
 }
コード例 #22
0
ファイル: Package.cs プロジェクト: ridomin/HSQLDB.Net
 public static global::Java.Lang.Package GetPackage(string name)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[1];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(name))
     {
         if (_cmj_fun4.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun4.CallObject(null, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Java.Lang.Package(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Java.Lang.Package)_cmj_fun4.CallObject(null, typeof(global::Java.Lang.Package), false, cmj_jmargs));
         }
     }
 }
コード例 #23
0
 public global::Java.Sql.Statement CreateStatement(int resultSetType, int resultSetConcurrency)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[2];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(resultSetType).Add(resultSetConcurrency))
     {
         if (_cmj_fun10.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun10.CallObject(this, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Java.Sql.StatementImpl(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Java.Sql.Statement)_cmj_fun10.CallObject(this, typeof(global::Java.Sql.Statement), false, cmj_jmargs));
         }
     }
 }
コード例 #24
0
ファイル: Throwable.cs プロジェクト: ridomin/HSQLDB.Net
 public global::Java.Lang.Throwable InitCause(global::Java.Lang.Throwable cause)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[1];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(cause))
     {
         if (_cmj_fun6.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun6.CallObject(this, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Java.Lang.Throwable(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Java.Lang.Throwable)_cmj_fun6.CallObject(this, typeof(global::Java.Lang.Throwable), false, cmj_jmargs));
         }
     }
 }
コード例 #25
0
 public global::Java.Sql.PreparedStatement PrepareStatement(string sql, global::Java.Lang.StringArray columnNames)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[2];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(sql).Add(columnNames))
     {
         if (_cmj_fun34.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun34.CallObject(this, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Java.Sql.PreparedStatementImpl(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Java.Sql.PreparedStatement)_cmj_fun34.CallObject(this, typeof(global::Java.Sql.PreparedStatement), false, cmj_jmargs));
         }
     }
 }
コード例 #26
0
ファイル: Logger.cs プロジェクト: ridomin/HSQLDB.Net
 public static global::Java.Util.Logging.Logger GetLogger(string name, string resourceBundleName)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[2];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(name).Add(resourceBundleName))
     {
         if (_cmj_fun13.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun13.CallObject(null, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Java.Util.Logging.Logger(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Java.Util.Logging.Logger)_cmj_fun13.CallObject(null, typeof(global::Java.Util.Logging.Logger), false, cmj_jmargs));
         }
     }
 }
コード例 #27
0
 public global::Java.Sql.Savepoint SetSavepoint(string name)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[1];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(name))
     {
         if (_cmj_fun48.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun48.CallObject(this, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Java.Sql.SavepointImpl(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Java.Sql.Savepoint)_cmj_fun48.CallObject(this, typeof(global::Java.Sql.Savepoint), false, cmj_jmargs));
         }
     }
 }
コード例 #28
0
 public global::Java.Io.InputStream GetResourceAsStream(string name)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[1];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(name))
     {
         if (_cmj_fun37.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun37.CallObject(this, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Java.Io.InputStream.InputStreamImpl(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Java.Io.InputStream)_cmj_fun37.CallObject(this, typeof(global::Java.Io.InputStream), false, cmj_jmargs));
         }
     }
 }
コード例 #29
0
 public global::Java.Io.PrintWriter Printf(string format, global::Java.Lang.ObjectArray args)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[2];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(format).Add(args))
     {
         if (_cmj_fun11.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun11.CallObject(this, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Java.Io.PrintWriter(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Java.Io.PrintWriter)_cmj_fun11.CallObject(this, typeof(global::Java.Io.PrintWriter), false, cmj_jmargs));
         }
     }
 }
コード例 #30
0
 public global::Javax.Naming.NamingEnumeration ListBindings(global::Javax.Naming.Name name)
 {
     global::Codemesh.JuggerNET.jvalue[] cmj_jargs = new global::Codemesh.JuggerNET.jvalue[1];
     using (global::Codemesh.JuggerNET.JavaMethodArguments cmj_jmargs = new global::Codemesh.JuggerNET.JavaMethodArguments(cmj_jargs).Add(name))
     {
         if (_cmj_fun17.IsLeafType)
         {
             long jnet_ref = (long)_cmj_fun17.CallObject(this, cmj_jmargs);
             return(jnet_ref == 0 ? null : new global::Javax.Naming.NamingEnumerationImpl(new global::Codemesh.JuggerNET.JNIHandle(jnet_ref)));
         }
         else
         {
             return((global::Javax.Naming.NamingEnumeration)_cmj_fun17.CallObject(this, typeof(global::Javax.Naming.NamingEnumeration), false, cmj_jmargs));
         }
     }
 }