| 1 | // tlb2java |
| 2 | package com.moesol.bindings.platform_sdk.data_services; |
| 3 | |
| 4 | |
| 5 | /** |
| 6 | * <code>IDL: [ helpstring(""), dual, nonextensible, oleautomation, dispatchable ] interface</code> |
| 7 | */ |
| 8 | public interface Error extends com.moesol.bindings.platform_sdk.component_services.IDispatch { |
| 9 | public static final Class TYPELIB = TYPELIB_2A75196C_D9EB_4129_B803_931327F72D5C.class; |
| 10 | /** |
| 11 | * <code>IDL: [uuid(00000500-0000-0010-8000-00AA006D2EA4)]</code> |
| 12 | */ |
| 13 | public static final com.moesol.bindings.platform_sdk.component_services.GUID IID = new com.moesol.bindings.platform_sdk.component_services.GUID( |
| 14 | 0x00000500, (short)0x0000, (short)0x0010, |
| 15 | new byte[] { |
| 16 | (byte)0x80, (byte)0x00, |
| 17 | (byte)0x00, (byte)0xaa, (byte)0x00, (byte)0x6d, (byte)0x2e, (byte)0xa4 |
| 18 | } ); |
| 19 | |
| 20 | /** |
| 21 | * <code>IDL: [ helpstring("") ]</code> |
| 22 | * |
| 23 | * @return |
| 24 | * <code>IDL: [out] [retval] LONG*</code> |
| 25 | */ |
| 26 | public int getNumber(); |
| 27 | |
| 28 | /** |
| 29 | * <code>IDL: [ helpstring("") ]</code> |
| 30 | * |
| 31 | * @return |
| 32 | * <code>IDL: [out] [retval] BSTR*</code> |
| 33 | */ |
| 34 | public String getSource(); |
| 35 | |
| 36 | /** |
| 37 | * <code>IDL: [ helpstring("") ]</code> |
| 38 | * |
| 39 | * @return |
| 40 | * <code>IDL: [out] [retval] BSTR*</code> |
| 41 | */ |
| 42 | public String getDescription(); |
| 43 | |
| 44 | /** |
| 45 | * <code>IDL: [ helpstring("") ]</code> |
| 46 | * |
| 47 | * @return |
| 48 | * <code>IDL: [out] [retval] BSTR*</code> |
| 49 | */ |
| 50 | public String getHelpFile(); |
| 51 | |
| 52 | /** |
| 53 | * <code>IDL: [ helpstring("") ]</code> |
| 54 | * |
| 55 | * @return |
| 56 | * <code>IDL: [out] [retval] LONG*</code> |
| 57 | */ |
| 58 | public int getHelpContext(); |
| 59 | |
| 60 | /** |
| 61 | * <code>IDL: [ helpstring("") ]</code> |
| 62 | * |
| 63 | * @return |
| 64 | * <code>IDL: [out] [retval] BSTR*</code> |
| 65 | */ |
| 66 | public String getSQLState(); |
| 67 | |
| 68 | /** |
| 69 | * <code>IDL: [ helpstring("") ]</code> |
| 70 | * |
| 71 | * @return |
| 72 | * <code>IDL: [out] [retval] LONG*</code> |
| 73 | */ |
| 74 | public int getNativeError(); |
| 75 | |
| 76 | |
| 77 | /** <em>Implementation</em>, <small>Java to COM</small>. */ |
| 78 | public static class Jni extends com.moesol.bindings.platform_sdk.component_services.IDispatch.Jni implements Error { |
| 79 | |
| 80 | protected Jni () { |
| 81 | } |
| 82 | |
| 83 | |
| 84 | private native int jni_getNumber(); |
| 85 | public int getNumber() { |
| 86 | |
| 87 | return jni_getNumber(); |
| 88 | } |
| 89 | |
| 90 | private native String jni_getSource(); |
| 91 | public String getSource() { |
| 92 | |
| 93 | return jni_getSource(); |
| 94 | } |
| 95 | |
| 96 | private native String jni_getDescription(); |
| 97 | public String getDescription() { |
| 98 | |
| 99 | return jni_getDescription(); |
| 100 | } |
| 101 | |
| 102 | private native String jni_getHelpFile(); |
| 103 | public String getHelpFile() { |
| 104 | |
| 105 | return jni_getHelpFile(); |
| 106 | } |
| 107 | |
| 108 | private native int jni_getHelpContext(); |
| 109 | public int getHelpContext() { |
| 110 | |
| 111 | return jni_getHelpContext(); |
| 112 | } |
| 113 | |
| 114 | private native String jni_getSQLState(); |
| 115 | public String getSQLState() { |
| 116 | |
| 117 | return jni_getSQLState(); |
| 118 | } |
| 119 | |
| 120 | private native int jni_getNativeError(); |
| 121 | public int getNativeError() { |
| 122 | |
| 123 | return jni_getNativeError(); |
| 124 | } |
| 125 | |
| 126 | } |
| 127 | |
| 128 | /** <em>Implementation</em>, <small>COM to Java</small>. */ |
| 129 | public static class Disp extends com.moesol.bindings.platform_sdk.component_services.IDispatch.Disp { |
| 130 | public static com.moesol.bindings.platform_sdk.component_services.IUnknown.Disp instance() { |
| 131 | return s_instance; |
| 132 | } |
| 133 | |
| 134 | private static Disp s_instance = new Disp(); |
| 135 | |
| 136 | protected Disp() { |
| 137 | addEntry(1, (short)2, "getNumber", "()I"); |
| 138 | addEntry(2, (short)2, "getSource", "()Ljava/lang/String;"); |
| 139 | addEntry(0, (short)2, "getDescription", "()Ljava/lang/String;"); |
| 140 | addEntry(3, (short)2, "getHelpFile", "()Ljava/lang/String;"); |
| 141 | addEntry(4, (short)2, "getHelpContext", "()I"); |
| 142 | addEntry(5, (short)2, "getSQLState", "()Ljava/lang/String;"); |
| 143 | addEntry(6, (short)2, "getNativeError", "()I"); |
| 144 | } |
| 145 | } |
| 146 | } |