| 1 | // tlb2java |
| 2 | package com.moesol.bindings.microsoft.dao; |
| 3 | |
| 4 | |
| 5 | /** |
| 6 | * <code>IDL: [ helpstring(""), dual, nonextensible, oleautomation, dispatchable ] interface</code> |
| 7 | */ |
| 8 | public interface _Group extends com.moesol.bindings.microsoft.dao._DAO { |
| 9 | public static final Class TYPELIB = TYPELIB_00025E01_0000_0000_C000_000000000046.class; |
| 10 | /** |
| 11 | * <code>IDL: [uuid(00000061-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 | 0x00000061, (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] BSTR*</code> |
| 25 | */ |
| 26 | public String getName(); |
| 27 | |
| 28 | /** |
| 29 | * <code>IDL: [ helpstring("") ]</code> |
| 30 | * |
| 31 | * @param pbstr |
| 32 | * <code>IDL: [in] BSTR</code> |
| 33 | */ |
| 34 | public void setName( |
| 35 | /*[in]*/ String pbstr); |
| 36 | |
| 37 | /** |
| 38 | * <code>IDL: [ helpstring("") ]</code> |
| 39 | * |
| 40 | * @param rhs |
| 41 | * <code>IDL: [in] BSTR</code> |
| 42 | */ |
| 43 | public void setPID( |
| 44 | /*[in]*/ String rhs); |
| 45 | |
| 46 | /** |
| 47 | * <code>IDL: [ helpstring("") ]</code> |
| 48 | * |
| 49 | * @return |
| 50 | * <code>IDL: [out] [retval] Users**</code> |
| 51 | */ |
| 52 | public com.moesol.bindings.microsoft.dao.Users getUsers(); |
| 53 | |
| 54 | /** |
| 55 | * <code>IDL: [ helpstring("") ]</code> |
| 56 | * |
| 57 | * @param Name |
| 58 | * <code>IDL: [in] [optional] VARIANT</code> |
| 59 | * @param PID |
| 60 | * <code>IDL: [in] [optional] VARIANT</code> |
| 61 | * @param Password |
| 62 | * <code>IDL: [in] [optional] VARIANT</code> |
| 63 | * @return |
| 64 | * <code>IDL: [out] [retval] User**</code> |
| 65 | */ |
| 66 | public com.moesol.bindings.microsoft.dao.User CreateUser( |
| 67 | /*[in]*/ Object Name, |
| 68 | /*[in]*/ Object PID, |
| 69 | /*[in]*/ Object Password); |
| 70 | |
| 71 | /** [optional=1] */ |
| 72 | public com.moesol.bindings.microsoft.dao.User CreateUser( |
| 73 | /*[in]*/ Object Name, |
| 74 | /*[in]*/ Object PID); |
| 75 | |
| 76 | /** [optional=2] */ |
| 77 | public com.moesol.bindings.microsoft.dao.User CreateUser( |
| 78 | /*[in]*/ Object Name); |
| 79 | |
| 80 | /** [optional=3] */ |
| 81 | public com.moesol.bindings.microsoft.dao.User CreateUser(); |
| 82 | |
| 83 | |
| 84 | /** <em>Implementation</em>, <small>Java to COM</small>. */ |
| 85 | public static class Jni extends com.moesol.bindings.microsoft.dao._DAO.Jni implements _Group { |
| 86 | |
| 87 | protected Jni () { |
| 88 | } |
| 89 | protected void internalOnSetInterface() { |
| 90 | MoeSolInternal.recordApartment(this); |
| 91 | } |
| 92 | |
| 93 | |
| 94 | private native String jni_getName(); |
| 95 | public String getName() { |
| 96 | |
| 97 | MoeSolInternal.checkApartment(this); |
| 98 | return jni_getName(); |
| 99 | } |
| 100 | |
| 101 | private native void jni_setName( |
| 102 | /*[in]*/ String p0); |
| 103 | public void setName( |
| 104 | /*[in]*/ String p0) { |
| 105 | |
| 106 | MoeSolInternal.checkApartment(this); |
| 107 | jni_setName(p0); |
| 108 | } |
| 109 | |
| 110 | private native void jni_setPID( |
| 111 | /*[in]*/ String p0); |
| 112 | public void setPID( |
| 113 | /*[in]*/ String p0) { |
| 114 | |
| 115 | MoeSolInternal.checkApartment(this); |
| 116 | jni_setPID(p0); |
| 117 | } |
| 118 | |
| 119 | private native com.moesol.bindings.microsoft.dao.Users jni_getUsers(); |
| 120 | public com.moesol.bindings.microsoft.dao.Users getUsers() { |
| 121 | |
| 122 | MoeSolInternal.checkApartment(this); |
| 123 | return jni_getUsers(); |
| 124 | } |
| 125 | |
| 126 | private native com.moesol.bindings.microsoft.dao.User jni_CreateUser( |
| 127 | /*[in]*/ Object p0, |
| 128 | /*[in]*/ Object p1, |
| 129 | /*[in]*/ Object p2); |
| 130 | public com.moesol.bindings.microsoft.dao.User CreateUser( |
| 131 | /*[in]*/ Object p0, |
| 132 | /*[in]*/ Object p1, |
| 133 | /*[in]*/ Object p2) { |
| 134 | |
| 135 | MoeSolInternal.checkApartment(this); |
| 136 | return jni_CreateUser(p0, p1, p2); |
| 137 | } |
| 138 | |
| 139 | /** [optional=1] */ |
| 140 | public com.moesol.bindings.microsoft.dao.User CreateUser( |
| 141 | /*[in]*/ Object p0, |
| 142 | /*[in]*/ Object p1) { |
| 143 | |
| 144 | return CreateUser(p0, p1, null); |
| 145 | } |
| 146 | /** [optional=2] */ |
| 147 | public com.moesol.bindings.microsoft.dao.User CreateUser( |
| 148 | /*[in]*/ Object p0) { |
| 149 | |
| 150 | return CreateUser(p0, null, null); |
| 151 | } |
| 152 | /** [optional=3] */ |
| 153 | public com.moesol.bindings.microsoft.dao.User CreateUser() { |
| 154 | |
| 155 | return CreateUser(null, null, null); |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | /** <em>Implementation</em>, <small>COM to Java</small>. */ |
| 160 | public static class Disp extends com.moesol.bindings.microsoft.dao._DAO.Disp { |
| 161 | public static com.moesol.bindings.platform_sdk.component_services.IUnknown.Disp instance() { |
| 162 | return s_instance; |
| 163 | } |
| 164 | |
| 165 | private static Disp s_instance = new Disp(); |
| 166 | |
| 167 | protected Disp() { |
| 168 | addEntry(1610809344, (short)2, "getName", "()Ljava/lang/String;"); |
| 169 | addEntry(1610809344, (short)4, "setName", "(Ljava/lang/String;)V"); |
| 170 | addEntry(1610809346, (short)4, "setPID", "(Ljava/lang/String;)V"); |
| 171 | addEntry(0, (short)2, "getUsers", "()Lcom/moesol/bindings/microsoft/dao/Users;"); |
| 172 | addEntry(1610809348, (short)1, "CreateUser", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/moesol/bindings/microsoft/dao/User;"); |
| 173 | } |
| 174 | } |
| 175 | } |