public void reset() throws JIException { JICallBuilder callObject = new JICallBuilder(true); callObject.setOpnum(2); Object[] result = comObject.call(callObject); }
@Override public int getTypeInfoCount () throws JIException { final JICallBuilder callObject = new JICallBuilder ( true ); callObject.setOpnum ( 0 ); callObject.addOutParamAsType ( Integer.class, JIFlags.FLAG_NULL ); final Object[] result = this.comObject.call ( callObject ); return ( (Integer)result[0] ).intValue (); }
@Override public int getTypeInfoType ( final int index ) throws JIException { final JICallBuilder callObject = new JICallBuilder ( true ); callObject.setOpnum ( 2 ); callObject.addInParamAsInt ( index, JIFlags.FLAG_NULL ); callObject.addOutParamAsType ( Integer.class, JIFlags.FLAG_NULL ); final Object[] result = this.comObject.call ( callObject ); return ( (Integer)result[0] ).intValue (); }
public int getRefTypeOfImplType(int index) throws JIException { JICallBuilder callObject = new JICallBuilder(true); callObject.setOpnum(5); callObject.addInParamAsInt(index,JIFlags.FLAG_NULL); callObject.addOutParamAsType(Integer.class,JIFlags.FLAG_NULL); return ((Integer)(((Object[])comObject.call(callObject))[0])).intValue(); }
public int getRefTypeOfImplType(int index) throws JIException { JICallBuilder callObject = new JICallBuilder(true); callObject.setOpnum(5); callObject.addInParamAsInt(index,JIFlags.FLAG_NULL); callObject.addOutParamAsType(Integer.class,JIFlags.FLAG_NULL); return ((Integer)(((Object[])comObject.call(callObject))[0])).intValue(); }
public int getTypeInfoType(int index) throws JIException { JICallBuilder callObject = new JICallBuilder(true); callObject.setOpnum(2); callObject.addInParamAsInt(index,JIFlags.FLAG_NULL); callObject.addOutParamAsType(Integer.class,JIFlags.FLAG_NULL); Object[] result = comObject.call(callObject); return ((Integer)result[0]).intValue(); }
public int getImplTypeFlags(int index) throws JIException { JICallBuilder callObject = new JICallBuilder(true); callObject.setOpnum(6); callObject.addInParamAsInt(index,JIFlags.FLAG_NULL); callObject.addOutParamAsType(Integer.class,JIFlags.FLAG_NULL); return ((Integer)(((Object[])comObject.call(callObject))[0])).intValue(); }
public int getTypeInfoCount() throws JIException { JICallBuilder obj = new JICallBuilder(true); obj.setOpnum(0); obj.addInParamAsInt(0, JIFlags.FLAG_NULL); obj.addOutParamAsType(Integer.class,JIFlags.FLAG_NULL); Object[] result = comObject.call(obj); return ((Integer)result[0]).intValue(); }
public IJIEnumVariant Clone() throws JIException { JICallBuilder callObject = new JICallBuilder(true); callObject.setOpnum(3); callObject.addOutParamAsObject(IJIComObject.class,JIFlags.FLAG_NULL); Object[] result = comObject.call(callObject); return (IJIEnumVariant)JIObjectFactory.narrowObject((IJIComObject)result[0]); }
public void setClientName ( final String clientName ) throws JIException { JICallBuilder callObject = new JICallBuilder ( true ); callObject.setOpnum ( 4 ); callObject.addInParamAsString ( clientName, JIFlags.FLAG_REPRESENTATION_STRING_LPWSTR ); getCOMObject ().call ( callObject ); }
public IJITypeInfo getRefTypeInfo(int hrefType) throws JIException { JICallBuilder callObject = new JICallBuilder(true); callObject.setOpnum(11); callObject.addInParamAsInt(hrefType,JIFlags.FLAG_NULL); callObject.addOutParamAsType(IJIComObject.class,JIFlags.FLAG_NULL); Object[] result = comObject.call(callObject); return (IJITypeInfo) JIObjectFactory.narrowObject((IJIComObject)result[0]); }
private void releaseRefs ( final JIArray arrayOfStructs, final boolean fromDestroy ) throws JIException { logger.info ( "In releaseRefs for session : {} , array length is: {}", getSessionIdentifier (), (short) ( (Object[])arrayOfStructs.getArrayInstance () ).length ); final JICallBuilder obj = new JICallBuilder ( true ); obj.setOpnum ( 2 );//release //length obj.addInParamAsShort ( (short) ( (Object[])arrayOfStructs.getArrayInstance () ).length, JIFlags.FLAG_NULL ); obj.addInParamAsArray ( arrayOfStructs, JIFlags.FLAG_NULL ); obj.fromDestroySession = fromDestroy; this.stub2.addRef_ReleaseRef ( obj ); //ignore the results }
public IJIComObject createInstance(String riid) throws JIException { JICallBuilder callObject = new JICallBuilder(true); callObject.setOpnum(13); callObject.addInParamAsUUID(riid,JIFlags.FLAG_NULL); callObject.addOutParamAsType(IJIComObject.class,JIFlags.FLAG_NULL); Object[] result = comObject.call(callObject); return JIObjectFactory.narrowObject((IJIComObject)result[0]); }
public IJITypeInfo getTypeInfo(int index) throws JIException { JICallBuilder callObject = new JICallBuilder(true); callObject.setOpnum(1); callObject.addInParamAsInt(index,JIFlags.FLAG_NULL); callObject.addOutParamAsType(IJIComObject.class,JIFlags.FLAG_NULL); Object[] result = comObject.call(callObject); return (IJITypeInfo) JIObjectFactory.narrowObject((IJIComObject)result[0]); }
@Override public Object[] next ( final int celt ) throws JIException { final JICallBuilder callObject = new JICallBuilder ( true ); callObject.setOpnum ( 0 ); callObject.addInParamAsInt ( celt, JIFlags.FLAG_NULL ); callObject.addOutParamAsObject ( new JIArray ( JIVariant.class, null, 1, true, true ), JIFlags.FLAG_NULL ); callObject.addOutParamAsType ( Integer.class, JIFlags.FLAG_NULL ); final Object[] result = this.comObject.call ( callObject ); return result; }
public Object[] next(int celt) throws JIException { JICallBuilder callObject = new JICallBuilder(true); callObject.setOpnum(0); callObject.addInParamAsInt(celt,JIFlags.FLAG_NULL); callObject.addOutParamAsObject(new JIArray(JIVariant.class,null,1,true,true),JIFlags.FLAG_NULL); callObject.addOutParamAsType(Integer.class,JIFlags.FLAG_NULL); Object[] result = comObject.call(callObject); return result; }
public IJITypeInfo getTypeInfo(int typeInfo) throws JIException { JICallBuilder obj = new JICallBuilder(true); obj.setOpnum(1); obj.addInParamAsInt(typeInfo,JIFlags.FLAG_NULL); obj.addInParamAsInt(0x400,JIFlags.FLAG_NULL); obj.addOutParamAsType(IJIComObject.class,JIFlags.FLAG_NULL); //obj.setUpParams(new Object[]{new Integer(typeInfo),new Integer(0x400)},new Object[]{MInterfacePointer.class},JIFlags.FLAG_NULL,JIFlags.FLAG_NULL); Object[] result = comObject.call(obj); return (IJITypeInfo)JIObjectFactory.narrowObject((IJIComObject)result[0]); }
public int refresh ( final OPCDATASOURCE dataSource, final int transactionID ) throws JIException { final JICallBuilder callObject = new JICallBuilder ( true ); callObject.setOpnum ( 2 ); callObject.addInParamAsShort ( (short)dataSource.id (), JIFlags.FLAG_NULL ); callObject.addInParamAsInt ( transactionID, JIFlags.FLAG_NULL ); callObject.addOutParamAsType ( Integer.class, JIFlags.FLAG_NULL ); final Object result[] = getCOMObject ().call ( callObject ); return (Integer)result[0]; }
public Object[] getDocumentation(int memberId) throws JIException { JICallBuilder callObject = new JICallBuilder(true); callObject.addInParamAsInt(memberId,JIFlags.FLAG_NULL); callObject.addInParamAsInt(0xb,JIFlags.FLAG_NULL);//refPtrFlags , as per the oaidl.idl... callObject.addOutParamAsObject(new JIString(JIFlags.FLAG_REPRESENTATION_STRING_BSTR),JIFlags.FLAG_NULL); callObject.addOutParamAsObject(new JIString(JIFlags.FLAG_REPRESENTATION_STRING_BSTR),JIFlags.FLAG_NULL); callObject.addOutParamAsObject(Integer.class,JIFlags.FLAG_NULL); callObject.addOutParamAsObject(new JIString(JIFlags.FLAG_REPRESENTATION_STRING_BSTR),JIFlags.FLAG_NULL); callObject.setOpnum(9); return comObject.call(callObject); }
public String getErrorString ( final int errorCode, final int localeID ) throws JIException { JICallBuilder callObject = new JICallBuilder ( true ); callObject.setOpnum ( 3 ); callObject.addInParamAsInt ( errorCode, JIFlags.FLAG_NULL ); callObject.addInParamAsInt ( localeID, JIFlags.FLAG_NULL ); callObject.addOutParamAsObject ( new JIPointer ( new JIString ( JIFlags.FLAG_REPRESENTATION_STRING_LPWSTR ) ), JIFlags.FLAG_NULL ); Object[] result = getCOMObject ().call ( callObject ); return ( (JIString) ( (JIPointer)result[0] ).getReferent () ).getString (); }