javax.rad.remote
Class SubConnection

java.lang.Object
  extended by javax.rad.remote.AbstractConnection
      extended by javax.rad.remote.SubConnection
All Implemented Interfaces:
ICloseable

public class SubConnection
extends AbstractConnection

The SubConnection uses the connection of a MasterConnection for transfering data to the server. It has no alive check.

See Also:
IConnection

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.rad.remote.AbstractConnection
AbstractConnection.CallBackResultDelegate, AbstractConnection.ListenerDelegate<K>, AbstractConnection.PropertyChangedDelegate
 
Field Summary
 
Fields inherited from class javax.rad.remote.AbstractConnection
coninf, connection
 
Method Summary
protected  void close(boolean pDoCall)
          Close the connection, with or without remote call.
 MasterConnection getMasterConnection()
          Returns the master connection.
protected  UIInvoker getUIInvoker()
          Gets the UI invoker.
 boolean isOpen()
          Checks if the connection is open.
 void openConnection()
          Opens the connection without event handling.
 void reopen()
          Reopens the connection.
 
Methods inherited from class javax.rad.remote.AbstractConnection
addCallBackResultListener, addCallBackResultListener, addConnectionListener, addPropertyChangedListener, addPropertyChangedListener, call, call, call, call, call, call, call, callAction, callAction, callAction, callAction, callAction, callAction, callAction, callBack, callBack, callBack, callBackAction, callBackAction, callBackAction, close, createConnectionProperties, finalize, fireCall, fireCallAction, fireCallBackResult, fireCallError, fireClose, fireOpen, fireReOpen, getApplicationName, getConnection, getConnectionId, getConnectionListener, getLifeCycleName, getPassword, getProperties, getProperty, getTimeout, getUserName, handleCallError, logCommunication, open, removeCallBackResultListener, removeCallBackResultListener, removeCallBackResultListener, removeConnectionListener, removePropertyChangedListener, removePropertyChangedListener, removePropertyChangedListener, setApplicationName, setConnection, setLifeCycleName, setPassword, setProperty, setTimeout, setUserName
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

openConnection

public void openConnection()
                    throws java.lang.Throwable
Opens the connection without event handling.

Specified by:
openConnection in class AbstractConnection
Throws:
java.lang.Throwable - if the connection can not be or is already opened

getUIInvoker

protected UIInvoker getUIInvoker()
Gets the UI invoker.

Specified by:
getUIInvoker in class AbstractConnection
Returns:
the UI invoker
See Also:
UIInvoker

reopen

public void reopen()
            throws java.lang.Throwable
Reopens the connection.

Overrides:
reopen in class AbstractConnection
Throws:
java.lang.Throwable - if an error occurs while opening the connection

isOpen

public boolean isOpen()
Checks if the connection is open.

Overrides:
isOpen in class AbstractConnection
Returns:
true if the connection is open, otherwise false

close

protected void close(boolean pDoCall)
              throws java.lang.Throwable
Close the connection, with or without remote call.

Overrides:
close in class AbstractConnection
Parameters:
pDoCall - true to send close to the server, false to close internal without remote communication (client-side close)
Throws:
java.lang.Throwable - if it is not possible to close the connection

getMasterConnection

public MasterConnection getMasterConnection()
Returns the master connection.

Returns:
the master connection


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.