|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.automation.COMProxy
public class COMProxy
Method Summary | |
---|---|
VARIANT |
call(java.lang.Object disp,
int dispid)
Calls IDispatch::invokev for the property/method exposed by the object. |
VARIANT |
call(java.lang.Object disp,
int dispid,
java.lang.Object a1)
Calls IDispatch::invoke for the property/method exposed by the object. |
VARIANT |
call(java.lang.Object disp,
java.lang.String name)
Provides access to properties and methods exposed by an object. |
VARIANT |
call(java.lang.Object disp,
java.lang.String name,
java.lang.Object a1)
Calls IDispatch::invoke for the property/method exposed by the object. |
VARIANT |
call(java.lang.Object disp,
java.lang.String name,
java.lang.Object a1,
java.lang.Object a2)
Calls IDispatch::invoke for the property/method exposed by the object. |
VARIANT |
call(java.lang.Object disp,
java.lang.String name,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3)
Calls IDispatch::invoke for the property/method exposed by the object. |
VARIANT |
call(java.lang.Object disp,
java.lang.String name,
java.lang.Object a1,
java.lang.Object a2,
java.lang.Object a3,
java.lang.Object a4)
Calls IDispatch::invoke for the property/method exposed by the object. |
static COMProxy |
create()
Create singular instance of COMProxy |
IDispatch |
createInstance(java.lang.String progID)
create separate instances of automation object IDispatch |
VARIANT |
get(java.lang.Object disp,
int dispid)
Calls IDispatch::invoke for the property exposed by the object, with wFlags=DISPATCH_PROPERTYGET |
VARIANT |
get(java.lang.Object disp,
java.lang.String name)
Calls IDispatch::invoke for the property exposed by the object, with wFlags=DISPATCH_PROPERTYGET |
int[] |
getIDsOfNames(java.lang.Object disp,
java.lang.String[] names)
Maps a single member and an optional set of argument names to a corresponding set of integer DISPIDs, which can be used on subsequent calls to IDispatch::Invoke. |
BSTR |
newBSTR(java.lang.String data)
create new BSTR object |
VARIANT |
newVariant(int type,
java.lang.Object data)
create VARIANT with specific type |
void |
put(java.lang.Object disp,
int dispid,
java.lang.Object val)
Calls IDispatch::invoke for the property exposed by the object with wFlags = DISPATCH_PROPERTYPUT |
void |
put(java.lang.Object disp,
java.lang.String name,
java.lang.Object val)
Calls IDispatchinvoke for the property exposed by the object with wFlags = DISPATCH_PROPERTYPUT |
void |
putRef(java.lang.Object disp,
int dispid,
java.lang.Object val)
Calls IDispatch::invoke for the property exposed by the object, with wFlags=DISPATCH_PROPERTYPUTREF |
void |
putRef(java.lang.Object disp,
java.lang.String name,
java.lang.Object val)
Calls IDispatch::invoke for the property exposed by the object, with wFlags=DISPATCH_PROPERTYPUTREF |
java.lang.Object |
QueryInterface(java.lang.Object disp,
java.lang.String iid)
calls IDispatch object's QueryInterface |
void |
release(java.lang.Object disp)
call this to explicitly release the com object before gc |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static COMProxy create() throws java.lang.Exception
java.lang.Exception
public IDispatch createInstance(java.lang.String progID)
progID
- program identifier
public java.lang.Object QueryInterface(java.lang.Object disp, java.lang.String iid) throws COMError
disp
- IDispatch objectiid
- Identifier of the interface being requested
COMError
public void release(java.lang.Object disp) throws COMError
disp
- IDispatch object that needs to be released
COMError
public int[] getIDsOfNames(java.lang.Object disp, java.lang.String[] names) throws COMError
disp
- java IDispatch(or COMProxy) object, obtained as a result of
system.createCOMInstance(String progID)names
- array of method names
COMError
public VARIANT call(java.lang.Object disp, java.lang.String name) throws COMError
disp
- java IDispatch(or COMProxy) object, obtained as a result of
system.createCOMInstance(String progID)name
- name of the method/property to be invoked.
COMError
public VARIANT call(java.lang.Object disp, java.lang.String name, java.lang.Object a1) throws COMError
disp
- java IDispatch(or COMProxy) object, obtained as a result of
system.createCOMInstance(String progID)name
- name of the method/property to be invoked.a1
-
COMError
public VARIANT call(java.lang.Object disp, java.lang.String name, java.lang.Object a1, java.lang.Object a2) throws COMError
disp
- java IDispatch(or COMProxy) object, obtained as a result of
system.createCOMInstance(String progID)name
- name of the method/property to be invoked.a1
- a2
-
COMError
public VARIANT call(java.lang.Object disp, java.lang.String name, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3) throws COMError
disp
- java IDispatch(or COMProxy) object, obtained as a result of
system.createCOMInstance(String progID)name
- name of the method/property to be invoked.a1
- a2
- a3
-
COMError
public VARIANT call(java.lang.Object disp, java.lang.String name, java.lang.Object a1, java.lang.Object a2, java.lang.Object a3, java.lang.Object a4) throws COMError
disp
- java IDispatch(or COMProxy) object, obtained as a result of
system.createCOMInstance(String progID)name
- name of the method/property to be invoked.a1
- a2
- a3
- a4
-
COMError
public VARIANT call(java.lang.Object disp, int dispid) throws COMError
disp
- java IDispatch(or COMProxy) object, obtained as a result of
system.createCOMInstance(String progID)dispid
- Identifies the member. Use GetIDsOfNames or the object's
documentation to obtain the dispatch identifier
COMError
public VARIANT call(java.lang.Object disp, int dispid, java.lang.Object a1) throws COMError
disp
- java IDispatch(or COMProxy) object, obtained as a result of
system.createCOMInstance(String progID)dispid
- Identifies the member. Use GetIDsOfNames or the object's
documentation to obtain the dispatch identifiera1
-
COMError
public void put(java.lang.Object disp, java.lang.String name, java.lang.Object val) throws COMError
disp
- java IDispatch(or COMProxy) object, obtained as a result of
system.createCOMInstance(String progID)name
- name of the propertyval
- value to be set
COMError
public void put(java.lang.Object disp, int dispid, java.lang.Object val) throws COMError
disp
- java IDispatch(or COMProxy) object, obtained as a result of
system.createCOMInstance(String progID)dispid
- Identifies the member. Use GetIDsOfNames or the object's
documentation to obtain the dispatch identifierval
-
COMError
public VARIANT get(java.lang.Object disp, java.lang.String name) throws COMError
disp
- java IDispatch(or COMProxy) object, obtained as a result of
system.createCOMInstance(String progID)name
- name of the method/property to be invoked.
COMError
public VARIANT get(java.lang.Object disp, int dispid) throws COMError
disp
- java IDispatch(or COMProxy) object, obtained as a result of
system.createCOMInstance(String progID)dispid
- Identifies the member. Use GetIDsOfNames or the object's
documentation to obtain the dispatch identifier
COMError
public void putRef(java.lang.Object disp, java.lang.String name, java.lang.Object val) throws COMError
disp
- java IDispatch(or COMProxy) object, obtained as a result of
system.createCOMInstance(String progID)name
- name of the method/property to be invoked.val
- value of the property
COMError
public void putRef(java.lang.Object disp, int dispid, java.lang.Object val) throws COMError
disp
- java IDispatch(or COMProxy) object, obtained as a result of
system.createCOMInstance(String progID)dispid
- Identifies the member. Use GetIDsOfNames or the object's
documentation to obtain the dispatch identifierval
- value of the property
COMError
public VARIANT newVariant(int type, java.lang.Object data) throws COMError
type
- refer to the COMConstant typesdata
- data
COMError
public BSTR newBSTR(java.lang.String data) throws COMError
data
- string
COMError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |