|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.microfocus.cobol.CobolBean
Class contains methods for constructing a CobolBean
Copyright: Copyright (c) 2002-2003
Constructor Summary | |
CobolBean()
Constructor for a CobolBean Usage: |
Method Summary | |
protected static byte[] |
allocContext()
Method declaration |
protected static int |
attachContext(byte[] attachKey)
attachContext |
protected void |
attachToThread()
Method declaration |
void |
cancel()
Performs a cancel on any COBOL programs used with in this bean. |
int |
cobcall(String program)
Calls a COBOL program with no parameters, return-code is returned as a int. |
int |
cobcall(String program,
ParameterList parameters)
Calls a COBOL program with a ParameterList and returns return-code as a int. |
long |
cobload(String program)
Preload a cobol program without calling the program-id. |
int |
cobrcall(String program)
Calls a COBOL program with no parameters which returns the return-code as a int NB: This method allows the user to call unchanged COBOL programs. |
int |
cobrcall(String program,
ParameterList parameters)
Calls a COBOL program with a set of parameters which returns the return-code as a int NB: This method allows the user to call unchanged COBOL programs. |
protected static int |
createContext(byte[] attachKey)
createContext |
protected static int |
destroyContext(byte[] detatchKey)
Method declaration |
protected static int |
detatchContext(byte[] detatchKey)
detachContext |
void |
dispose()
Dispose this instance of a CobolBean. |
protected static void |
dumpBytes(byte[] bytes)
Method declaration |
protected static int |
freeContext(byte[] getKey)
Method declaration |
protected static int |
getContext(byte[] getKey)
Method declaration |
protected static int |
getKeySize()
getKeySize get size of context (size of void *) |
void |
setBeanIsInitial(boolean beanInitial)
Sets the "Is initial" state of any programs called from a instance of a COBOL Bean. When set to true, it ensures that the COBOL program being "cob[r]call"'ed is always in it's initial state. |
protected static int |
setContext(byte[] setKey)
setContext |
protected void |
throwExceptionIfStatusCodeFailed()
Method declaration |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CobolBean() throws CobolException, Exception
public myCobolBean extends com.microfocus.cobol.CobolBean { public myCobolBean() { super(); // ensure parent constructor is invoked. } public void setName(String name) throws CobolException, Exception { super.cobcall("setName", new ParameterList().add(name)); } }
CobolException
Exception
Method Detail |
protected void attachToThread() throws Exception
Exception
public void setBeanIsInitial(boolean beanInitial)
beanInitial
- required "is initial" statepublic int cobcall(String program) throws CobolException, Exception
program
-
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionprotected void throwExceptionIfStatusCodeFailed() throws CobolException
CobolException
public int cobcall(String program, ParameterList parameters) throws CobolException, Exception
program
- parameters
-
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic void cancel() throws CobolException, Exception
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic int cobrcall(String program) throws CobolException, Exception
program
-
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic int cobrcall(String program, ParameterList parameters) throws CobolException, Exception
program
- parameters
-
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic long cobload(String program) throws CobolException, Exception
program
- name of COBOL program
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionpublic void dispose() throws CobolException, Exception
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionprotected static byte[] allocContext() throws CobolException, Exception
CobolException
- - COBOL Exception
Exception
- - NON COBOL Exceptionprotected static void dumpBytes(byte[] bytes)
bytes
- protected static int getKeySize() throws CobolException, Exception
CobolException
Exception
protected static int createContext(byte[] attachKey) throws CobolException, Exception
attachKey
-
CobolException
Exception
protected static int attachContext(byte[] attachKey) throws CobolException, Exception
attachKey
-
CobolException
Exception
protected static int detatchContext(byte[] detatchKey) throws CobolException, Exception
detatchKey
-
CobolException
Exception
protected static int destroyContext(byte[] detatchKey) throws CobolException, Exception
detatchKey
-
CobolException
Exception
protected static int setContext(byte[] setKey) throws CobolException, Exception
setKey
-
CobolException
Exception
protected static int getContext(byte[] getKey) throws CobolException, Exception
getKey
-
CobolException
Exception
protected static int freeContext(byte[] getKey) throws CobolException, Exception
getKey
-
CobolException
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2000 Micro Focus International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.