|
|||||||||||
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(Object disp,
int dispid)
Calls IDispatch::invokev for the property/method exposed by the object. |
VARIANT |
call(Object disp,
int dispid,
Object a1)
Calls IDispatch::invoke for the property/method exposed by the object. |
VARIANT |
call(Object disp,
String name)
Provides access to properties and methods exposed by an object. |
VARIANT |
call(Object disp,
String name,
Object a1)
Calls IDispatch::invoke for the property/method exposed by the object. |
VARIANT |
call(Object disp,
String name,
Object a1,
Object a2)
Calls IDispatch::invoke for the property/method exposed by the object. |
VARIANT |
call(Object disp,
String name,
Object a1,
Object a2,
Object a3)
Calls IDispatch::invoke for the property/method exposed by the object. |
VARIANT |
call(Object disp,
String name,
Object a1,
Object a2,
Object a3,
Object a4)
Calls IDispatch::invoke for the property/method exposed by the object. |
static COMProxy |
create()
Create singular instance of COMProxy |
IDispatch |
createInstance(String progID)
create separate instances of automation object IDispatch |
VARIANT |
get(Object disp,
int dispid)
Calls IDispatch::invoke for the property exposed by the object, with wFlags=DISPATCH_PROPERTYGET |
VARIANT |
get(Object disp,
String name)
Calls IDispatch::invoke for the property exposed by the object, with wFlags=DISPATCH_PROPERTYGET |
int[] |
getIDsOfNames(Object disp,
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(String data)
create new BSTR object |
VARIANT |
newVariant(int type,
Object data)
create VARIANT with specific type |
void |
put(Object disp,
int dispid,
Object val)
Calls IDispatch::invoke for the property exposed by the object with wFlags = DISPATCH_PROPERTYPUT |
void |
put(Object disp,
String name,
Object val)
Calls IDispatchinvoke for the property exposed by the object with wFlags = DISPATCH_PROPERTYPUT |
void |
putRef(Object disp,
int dispid,
Object val)
Calls IDispatch::invoke for the property exposed by the object, with wFlags=DISPATCH_PROPERTYPUTREF |
void |
putRef(Object disp,
String name,
Object val)
Calls IDispatch::invoke for the property exposed by the object, with wFlags=DISPATCH_PROPERTYPUTREF |
Object |
QueryInterface(Object disp,
String iid)
calls IDispatch object's QueryInterface |
void |
release(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 Exception
Exception
public IDispatch createInstance(String progID)
progID
- program identifier
public Object QueryInterface(Object disp, String iid) throws COMError
disp
- IDispatch objectiid
- Identifier of the interface being requested
COMError
public void release(Object disp) throws COMError
disp
- IDispatch object that needs to be released
COMError
public int[] getIDsOfNames(Object disp, 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(Object disp, 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(Object disp, String name, 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(Object disp, String name, Object a1, 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(Object disp, String name, Object a1, Object a2, 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(Object disp, String name, Object a1, Object a2, Object a3, 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(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(Object disp, int dispid, 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(Object disp, String name, 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(Object disp, int dispid, 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(Object disp, 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(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(Object disp, String name, 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(Object disp, int dispid, 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, Object data) throws COMError
type
- refer to the COMConstant typesdata
- data
COMError
public BSTR newBSTR(String data) throws COMError
data
- string
COMError
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |