javax.rad.remote
Class SubConnection

java.lang.Object
  extended by javax.rad.remote.AbstractConnection
      extended by javax.rad.remote.SubConnection

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

Field Summary
 
Fields inherited from class javax.rad.remote.AbstractConnection
coninf, connection
 
Method Summary
 void close()
          Close the connection.
 MasterConnection getMasterConnection()
          Returns the master connection.
 boolean isOpen()
          Checks if the connection is open.
 void open()
          Opens the connection.
 
Methods inherited from class javax.rad.remote.AbstractConnection
addConnectionListener, call, call, call, call, call, call, call, callAction, callAction, callAction, callAction, callAction, callAction, callAction, createConnectionProperties, finalize, fireCall, fireCallAction, fireCallError, fireClose, fireOpen, firePropertyChanged, fireReOpen, getApplicationName, getConnection, getConnectionId, getConnectionListener, getLifeCycleName, getPassword, getProperties, getProperty, getTimeout, getUserName, removeConnectionListener, reopen, setApplicationName, setLifeCycleName, setPassword, setProperty, setTimeout, setUserName
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

open

public void open()
          throws Throwable
Opens the connection.

Specified by:
open in class AbstractConnection
Throws:
Throwable - if the connection can not be or is already opened

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

public void close()
           throws Throwable
Close the connection.

Overrides:
close in class AbstractConnection
Throws:
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.