Package | Description |
---|---|
org.netbeans.api.db.explorer |
Modifier and Type | Method and Description |
---|---|
static DatabaseConnection |
DatabaseConnection.create(JDBCDriver driver,
String databaseURL,
String user,
String schema,
String password,
boolean rememberPassword)
Creates a new DatabaseConnection instance w/ a default display name based
on connection URL and user
|
static DatabaseConnection |
DatabaseConnection.create(JDBCDriver driver,
String databaseURL,
String user,
String schema,
String password,
boolean rememberPassword,
String displayName)
Creates a new DatabaseConnection instance.
|
static DatabaseConnection |
DatabaseConnection.create(JDBCDriver driver,
String databaseURL,
String user,
String schema,
String password,
boolean rememberPassword,
String displayName,
Properties connectionProperties)
Creates a new DatabaseConnection instance.
|
DatabaseConnection |
ConnectionManager.getConnection(String name)
Returns the connection with the specified name.
|
DatabaseConnection[] |
ConnectionManager.getConnections()
Returns the list of connections in the Database Explorer.
|
DatabaseConnection |
DatabaseMetaDataTransfer.Connection.getDatabaseConnection()
Returns the
DatabaseConnection . |
DatabaseConnection |
DatabaseMetaDataTransfer.Table.getDatabaseConnection()
Returns the
DatabaseConnection this table comes from. |
DatabaseConnection |
DatabaseMetaDataTransfer.View.getDatabaseConnection()
Returns the
DatabaseConnection this view comes from. |
DatabaseConnection |
DatabaseMetaDataTransfer.Column.getDatabaseConnection()
Returns the
DatabaseConnection this column comes from. |
DatabaseConnection |
ConnectionManager.showAddConnectionDialogFromEventThread(JDBCDriver driver)
The counterpart of
ConnectionManager.showAddConnectionDialog(JDBCDriver) which returns
the newly created database connection, but must be called from the event dispatching
thread. |
DatabaseConnection |
ConnectionManager.showAddConnectionDialogFromEventThread(JDBCDriver driver,
String databaseUrl)
The counterpart of
ConnectionManager.showAddConnectionDialog(JDBCDriver, String) which returns
the newly created database connection, but must be called from the event dispatching
thread. |
DatabaseConnection |
ConnectionManager.showAddConnectionDialogFromEventThread(JDBCDriver driver,
String databaseUrl,
String user,
String password)
The counterpart of
ConnectionManager.showAddConnectionDialog(JDBCDriver, String, String, String)
which returns the newly created database connection, but must be called
from the event dispatching thread. |
Modifier and Type | Method and Description |
---|---|
void |
ConnectionManager.addConnection(DatabaseConnection dbconn)
Adds a new connection to Database Explorer.
|
boolean |
ConnectionManager.connect(DatabaseConnection dbconn)
Connects this connection to the database without opening any
dialog.
|
void |
ConnectionManager.disconnect(DatabaseConnection dbconn)
Disconnects this connection from the database.
|
void |
ConnectionManager.refreshConnectionInExplorer(DatabaseConnection dbconn)
Refresh the node corresponding to the specified connection in the
Runtime tab.
|
void |
ConnectionManager.removeConnection(DatabaseConnection dbconn)
Remove an existing connection from the Database Explorer.
|
void |
ConnectionManager.selectConnectionInExplorer(DatabaseConnection dbconn)
Selects the node corresponding to the specified connection in the
Runtime tab.
|
void |
ConnectionManager.showConnectionDialog(DatabaseConnection dbconn)
Shows the Connect dialog for the specified connection if not all data
needed to connect, such as the user name or password,
are known), or displays a modal progress dialog and attempts
to connect to the database immediately.
|