org.eclipse.datatools.sqltools.debugger.core
Class AutoAttachUtil

java.lang.Object
  extended byorg.eclipse.datatools.sqltools.debugger.core.AutoAttachUtil

public class AutoAttachUtil
extends java.lang.Object

Author:
Yang Liu

Constructor Summary
AutoAttachUtil()
           
 
Method Summary
static java.sql.Connection createConnection(IControlConnection controlcon, boolean autoattach, java.lang.String[] connid)
          If can't get connection id, may put "" as connection id.
static void enableAutoAttach(IControlConnection controlCon)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoAttachUtil

public AutoAttachUtil()
Method Detail

createConnection

public static java.sql.Connection createConnection(IControlConnection controlcon,
                                                   boolean autoattach,
                                                   java.lang.String[] connid)
                                            throws java.sql.SQLException,
                                                   CoreException,
                                                   NoSuchProfileException
If can't get connection id, may put "" as connection id. So caller should check.

Parameters:
controlcon -
autoattach -
connid -
Returns:
Throws:
java.sql.SQLException
CoreException
NoSuchProfileException

enableAutoAttach

public static void enableAutoAttach(IControlConnection controlCon)
Parameters:
controlCon -


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