|
Servertec Foundation Classes 1.3.3 09/04/2005 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectstec.sfc.Win32.OdbcManager
public final class OdbcManager
Used to add, remove and enumerate ODBC Data Sources and to enumerate ODBC drivers.
| Constructor Summary | |
|---|---|
OdbcManager()
|
|
| Method Summary | |
|---|---|
static void |
addFileDataSource(java.lang.String name,
java.util.Hashtable attributes)
Adds a File Data Source. |
static void |
addSystemDataSource(java.lang.String name,
java.lang.String driver,
java.util.Hashtable attributes)
Adds a System Data Source. |
static void |
addUserDataSource(java.lang.String name,
java.lang.String driver,
java.util.Hashtable attributes)
Adds a User Data Source. |
static boolean |
existsFileDataSource(java.lang.String name)
Returns whether the named File Data Source exists. |
static java.util.Enumeration |
getDrivers()
Returns an Enumeration of any ODBC Drivers. |
static java.lang.String |
getFileDataSourceDirectory()
Returns the path to the directory where file data sources are stored. |
static java.util.Enumeration |
getFileDataSources()
Returns an Enumeration of any File Data Sources. |
static java.util.Enumeration |
getSystemDataSources()
Returns an Enumeration of any System Data Sources. |
static java.util.Enumeration |
getUserDataSources()
Returns an Enumeration of any User Data Sources. |
static boolean |
removeFileDataSource(java.lang.String name)
Removes the named File Data Source. |
static void |
removeSystemDataSource(java.lang.String name,
java.lang.String driver)
Removes the named System Data Source. |
static void |
removeUserDataSource(java.lang.String name,
java.lang.String driver)
Removes the named User Data Source. |
static void |
setFileDataSourceDirectory(java.lang.String path)
Used to specify the directory where file data sources are stored. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OdbcManager()
| Method Detail |
|---|
public static final java.lang.String getFileDataSourceDirectory()
public static final void setFileDataSourceDirectory(java.lang.String path)
throws java.lang.IllegalArgumentException
path - the path to the directory where file data sources are stored.
java.lang.IllegalArgumentException
public static final void addUserDataSource(java.lang.String name,
java.lang.String driver,
java.util.Hashtable attributes)
throws Win32Exception,
java.io.IOException
name - the name of the Data Source.driver - the name of the ODBC driver.attributes - any attributes.
java.io.IOException - if an IO exception occurs while adding the Data Source.
Win32Exception - if any exception occurs while adding the Data Source.
public static final void addSystemDataSource(java.lang.String name,
java.lang.String driver,
java.util.Hashtable attributes)
throws Win32Exception,
java.io.IOException
name - the name of the Data Source.driver - the name of the ODBC driver.attributes - any attributes.
java.io.IOException - if an IO exception occurs while adding the Data Source.
Win32Exception - if any exception occurs while adding the Data Source.
public static final void addFileDataSource(java.lang.String name,
java.util.Hashtable attributes)
throws Win32Exception,
java.io.FileNotFoundException,
java.io.IOException
name - the name of the Data Source.attributes - any attributes.
java.io.IOException - if an IO exception occurs while adding the Data Source.
Win32Exception - if any exception occurs while adding the Data Source.
java.io.FileNotFoundException
public static final void removeUserDataSource(java.lang.String name,
java.lang.String driver)
throws Win32Exception,
java.io.IOException
name - the name of the Data Source.driver - the name of the ODBC driver.
java.io.IOException - if an IO exception occurs while removing the Data Source.
Win32Exception - if any exception occurs while removing the Data Source.
public static final void removeSystemDataSource(java.lang.String name,
java.lang.String driver)
throws Win32Exception,
java.io.IOException
name - the name of the Data Source.driver - the name of the ODBC driver.
java.io.IOException - if an IO exception occurs while removing the Data Source.
Win32Exception - if any exception occurs while removing the Data Source.public static final boolean removeFileDataSource(java.lang.String name)
name - the name of the Data Source.
public static final boolean existsFileDataSource(java.lang.String name)
name - the name of the Data Source.
public static final java.util.Enumeration getUserDataSources()
throws Win32Exception
Win32Exception - if any exception occurs.
public static final java.util.Enumeration getSystemDataSources()
throws Win32Exception
Win32Exception - if any exception occurs.
public static final java.util.Enumeration getFileDataSources()
throws Win32Exception
Win32Exception - if any exception occurs.
public static final java.util.Enumeration getDrivers()
throws Win32Exception
Win32Exception - if any exception occurs.
|
Servertec Foundation Classes 1.3.3 09/04/2005 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2001-2005 Servertec. All rights reserved.