站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

JDBCDriver (Database Explorer) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.db/0 1.20.0 4

org.netbeans.api.db.explorer
Class JDBCDriver

java.lang.Object
  extended by org.netbeans.api.db.explorer.JDBCDriver

public final class JDBCDriver
extends Object

Encapsulates a JDBC driver.


Method Summary
static JDBCDriver create(String name, String displayName, String clazz, URL[] urls)
          Creates a new JDBCDriver instance.
 String getClassName()
          Returns the JDBC driver class name.
 String getDisplayName()
          Returns the display name of the driver (used for example to display the driver in the UI).
 String getName()
          Return the programmatic driver name.
 URL[] getURLs()
          Returns the array of the JDBC driver files URLs.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static JDBCDriver create(String name,
                                String displayName,
                                String clazz,
                                URL[] urls)
Creates a new JDBCDriver instance.

Parameters:
name - the programmatic name of the driver; must not be null.
displayName - the display name of the driver (used for example to display the driver in the UI); must not be null.
clazz - the JDBC driver class; must not be null.
urls - the array of the JDBC driver files URLs; must not be null.
Throws:
NullPointerException - if any of the parameters is null.

getURLs

public URL[] getURLs()
Returns the array of the JDBC driver files URLs.

Returns:
the non-null array of the JDBC driver files URLs.

getClassName

public String getClassName()
Returns the JDBC driver class name.

Returns:
the JDBC driver class name.

getDisplayName

public String getDisplayName()
Returns the display name of the driver (used for example to display the driver in the UI).

Returns:
the display name of the driver.

getName

public String getName()
Return the programmatic driver name.

Returns:
the programmatic driver name.

toString

public String toString()
Overrides:
toString in class Object

org.netbeans.modules.db/0 1.20.0 4

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.