|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.peer.LyConnection
public abstract class LyConnection
This class represents the physical link with a data supplier. It implements means to 'send requests' and to 'receive responses' from the underlying physical connection.
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LyConnection(LyApplication application)
Constructs a new connection for the given application. |
Method Summary | |
---|---|
void |
addValue(java.lang.Object key,
java.lang.Object value)
Adds a pair key-value to the session. |
void |
autoCommit(boolean status)
To set the commit mode for this connection. |
boolean |
close()
Close connection : close associated physical connection. |
void |
commit()
To commit a pending transaction for this connection. |
void |
dump()
Dump state of this connection. |
java.lang.String |
getError()
Gets the last error message that occured on this connection. |
java.rmi.server.UID |
getUID()
Gets the UID of this connection. |
java.lang.Object |
getValue(java.lang.Object key)
Retrieves a value from a registered key. |
boolean |
isClosed()
Checks close state. |
boolean |
isReserved()
Checks reserved state. |
boolean |
prepareCommit()
This method is called before a commit. |
void |
released()
Method called when the connection is returned to the data provider. |
void |
reserved()
Method called when the connection is reserved by the data provider. |
void |
rollback()
To rollback a pending transaction for this connection. |
void |
setDataProvider(LyDataProvider provider)
Sets the data provider of this connection. |
void |
setError(java.lang.String error)
Sets the last error message that occured on this connection. |
void |
setUID(java.rmi.server.UID uid)
Sets the UID of this connection. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyConnection(LyApplication application)
application
- Application for which the connection is constructed.Method Detail |
---|
public boolean close()
public boolean prepareCommit()
public void commit()
public void rollback()
public void reserved()
public void released()
public void autoCommit(boolean status)
public void dump()
public java.lang.String getError()
public boolean isClosed()
public final boolean isReserved()
public java.rmi.server.UID getUID()
public void setError(java.lang.String error)
error
- Error message (null means no error).public void setUID(java.rmi.server.UID uid)
uid
- the UID to setpublic void setDataProvider(LyDataProvider provider)
provider
- the data provider of this connection.public void addValue(java.lang.Object key, java.lang.Object value)
key
- The key that must be stored.value
- The value that must be stored with the key.getValue(java.lang.Object)
public java.lang.Object getValue(java.lang.Object key)
key
- The key that must be used.
addValue(java.lang.Object, java.lang.Object)
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |