org.eclipse.datatools.sqltools.debugger.core
Interface IControlConnectionExtension


public interface IControlConnectionExtension

This is an adapter interface. It is used for IControlConnection(s) that support auto attach. If auto attach is enabled, new connections will be automatically attached for debug.

Author:
Yang Liu

Method Summary
 java.sql.Connection createConnection(boolean autoattach, java.lang.String[] connId)
          Creates a new connection using same profile as this.
 boolean getAutoAttachEnabled()
          Gets whether currently auto attach is enabled.
 void setAutoAttachEnabled(boolean b)
          Enables/disables auto attach support.
 

Method Detail

getAutoAttachEnabled

public boolean getAutoAttachEnabled()
Gets whether currently auto attach is enabled.

Returns:

setAutoAttachEnabled

public void setAutoAttachEnabled(boolean b)
Enables/disables auto attach support.

Parameters:
b -

createConnection

public java.sql.Connection createConnection(boolean autoattach,
                                            java.lang.String[] connId)
                                     throws java.sql.SQLException,
                                            CoreException,
                                            NoSuchProfileException
Creates a new connection using same profile as this. If can't get connection id, may put 0 as the connection id.

Parameters:
autoattach - if true and auto attach enabled for this, then will also auto attach the new connection. if false, then will skip the connection.
connId - return the new connection's connection id. If null, means don't care.
Returns:
Throws:
java.sql.SQLException
CoreException
NoSuchProfileException


Copyright © 2006 Actuate, IBM Corporation, Sybase, Inc. and others. All rights reserved.