java.lang.Objectcom.microfocus.cobol.connector.transport.CobolConnection
Abstract CobolConnection interface
Copyright: Copyright (c) 2002-2003 Company: Micro Focus International Ltd
Field Summary | |
static int |
OPTYPE_CANCEL
|
static int |
OPTYPE_COBCALL
|
static int |
OPTYPE_COBLOAD
|
static int |
OPTYPE_DISPOSE
|
static int |
OPTYPE_PING
|
static int |
OPTYPE_SETISINITIAL
|
static int |
OPTYPE_TRAN_LOCAL_COMMIT
|
static int |
OPTYPE_TRAN_LOCAL_ROLLBACK
|
static int |
OPTYPE_TRAN_LOCAL_START
|
static int |
OPTYPE_TRAN_XA_COMMIT
|
static int |
OPTYPE_TRAN_XA_END
|
static int |
OPTYPE_TRAN_XA_FORGET
|
static int |
OPTYPE_TRAN_XA_PREPARE
|
static int |
OPTYPE_TRAN_XA_RECOVER
|
static int |
OPTYPE_TRAN_XA_ROLLBACK
|
static int |
OPTYPE_TRAN_XA_START
|
Constructor Summary | |
CobolConnection()
|
Method Summary | |
abstract void |
Activate()
Activate a connection. |
void |
begin()
begin a transaction |
void |
commit()
Commit a transaction |
void |
connect()
Make a logical connection to the server. |
static CobolConnection |
createConnection(String serviceName)
Create a CobolConnection for a specific serviceName and connectionID |
void |
disconnect()
Logically disconnection. |
abstract Object |
execute(int operation,
String className,
String programName,
Class retCodeType,
Object inParameters,
Object outParameters)
Execute a operation on the server. |
Object |
getConnectionProperty(String key2property)
gets a connection property |
Object |
getConnectionProperty(String key2property,
Object defaultProperty)
get a connection property or return a default property |
String |
getServerURN()
getServerURN() for this CobolConnection |
String |
getSessionID()
getSessionID() for this CobolConnection |
abstract boolean |
isActive()
is a CobolConnection active? (method should be overridden) |
abstract void |
Passivate()
Passivate a connection. |
abstract void |
reconnect()
Reconnect transport layer |
static void |
registerConnectionHandler(String name,
Object handler)
register a connection handler |
void |
removeConnectionProperty(String key2property)
Remove a connection property |
void |
rollback()
Rollback a transaction |
void |
setConnectionProperty(String key2property,
Object property)
sets a named property to the connection e.g: username password |
void |
xa_commit()
Method declaration |
void |
xa_commit(Xid xid,
boolean onePhase)
xa_commit method |
void |
xa_end()
Method declaration |
void |
xa_end(Xid xid,
int flags)
Method declaration |
void |
xa_forget()
Method declaration |
void |
xa_forget(Xid xid)
Method declaration |
void |
xa_prepare()
Method declaration |
void |
xa_recover()
Method declaration |
void |
xa_recover(int flags)
Method declaration |
void |
xa_rollback()
Method declaration |
void |
xa_rollback(Xid xid)
Method declaration |
void |
xa_start()
Method declaration |
void |
xa_start(Xid xid)
start a xa transaction |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int OPTYPE_PING
public static final int OPTYPE_COBCALL
public static final int OPTYPE_COBLOAD
public static final int OPTYPE_DISPOSE
public static final int OPTYPE_CANCEL
public static final int OPTYPE_SETISINITIAL
public static final int OPTYPE_TRAN_LOCAL_START
public static final int OPTYPE_TRAN_LOCAL_ROLLBACK
public static final int OPTYPE_TRAN_LOCAL_COMMIT
public static final int OPTYPE_TRAN_XA_PREPARE
public static final int OPTYPE_TRAN_XA_COMMIT
public static final int OPTYPE_TRAN_XA_ROLLBACK
public static final int OPTYPE_TRAN_XA_END
public static final int OPTYPE_TRAN_XA_FORGET
public static final int OPTYPE_TRAN_XA_RECOVER
public static final int OPTYPE_TRAN_XA_START
Constructor Detail |
public CobolConnection()
Method Detail |
public final String getServerURN()
public final String getSessionID()
public static final CobolConnection createConnection(String serviceName) throws com.microfocus.cobol.CobolException
serviceName
-
com.microfocus.cobol.CobolException
public void connect() throws com.microfocus.cobol.CobolException
com.microfocus.cobol.CobolException
public void disconnect() throws com.microfocus.cobol.CobolException
com.microfocus.cobol.CobolException
public abstract void reconnect() throws com.microfocus.cobol.CobolException
com.microfocus.cobol.CobolException
public abstract Object execute(int operation, String className, String programName, Class retCodeType, Object inParameters, Object outParameters) throws com.microfocus.cobol.CobolException, Exception
operation
- className
- programName
- retCodeType
- inParameters
- outParameters
-
com.microfocus.cobol.CobolException
Exception
public abstract boolean isActive() throws com.microfocus.cobol.CobolException
com.microfocus.cobol.CobolException
public void begin() throws com.microfocus.cobol.CobolException
com.microfocus.cobol.CobolException
public void xa_start(Xid xid) throws com.microfocus.cobol.CobolException
xid
- a j2ee xid
com.microfocus.cobol.CobolException
public void xa_start() throws com.microfocus.cobol.CobolException
com.microfocus.cobol.CobolException
public void xa_commit(Xid xid, boolean onePhase) throws com.microfocus.cobol.CobolException
xid
- onePhase
-
com.microfocus.cobol.CobolException
public void xa_commit() throws com.microfocus.cobol.CobolException
com.microfocus.cobol.CobolException
public void xa_end(Xid xid, int flags) throws com.microfocus.cobol.CobolException
xid
- flags
-
com.microfocus.cobol.CobolException
public void xa_end() throws com.microfocus.cobol.CobolException
com.microfocus.cobol.CobolException
public void xa_forget(Xid xid) throws com.microfocus.cobol.CobolException
xid
-
com.microfocus.cobol.CobolException
public void xa_forget() throws com.microfocus.cobol.CobolException
com.microfocus.cobol.CobolException
public void xa_prepare() throws com.microfocus.cobol.CobolException
com.microfocus.cobol.CobolException
public void xa_recover(int flags) throws com.microfocus.cobol.CobolException
flags
-
com.microfocus.cobol.CobolException
public void xa_recover() throws com.microfocus.cobol.CobolException
com.microfocus.cobol.CobolException
public void xa_rollback(Xid xid) throws com.microfocus.cobol.CobolException
xid
-
com.microfocus.cobol.CobolException
public void xa_rollback() throws com.microfocus.cobol.CobolException
com.microfocus.cobol.CobolException
public void commit() throws com.microfocus.cobol.CobolException
com.microfocus.cobol.CobolException
public void rollback() throws com.microfocus.cobol.CobolException
com.microfocus.cobol.CobolException
public static final void registerConnectionHandler(String name, Object handler)
name
- handler
- public void setConnectionProperty(String key2property, Object property)
key2property
- property
- public Object getConnectionProperty(String key2property)
key2property
-
public void removeConnectionProperty(String key2property)
key2property
- public Object getConnectionProperty(String key2property, Object defaultProperty)
key2property
- defaultProperty
-
public abstract void Activate() throws com.microfocus.cobol.CobolException
com.microfocus.cobol.CobolException
public abstract void Passivate() throws com.microfocus.cobol.CobolException
com.microfocus.cobol.CobolException
Copyright © 2000 Micro Focus International Limited. All rights reserved.
This document and the proprietary marks and names used herein are protected by international law.