|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dbms.DBMSSocket
public class DBMSSocket
This is a public interface socket for accesing the services of the DBMS package
Field Summary | |
---|---|
private static DBMSBase |
conn
|
private static DBMSDrivers |
drivers
|
Constructor Summary | |
---|---|
DBMSSocket()
|
Method Summary | |
---|---|
static void |
getCatalogs(java.util.ArrayList<java.lang.String> catalogs)
Updates an arraylist you provide to contain all the catalogs (databases) in the currently connected DBMS |
static boolean |
getConnection(java.lang.String hostname,
int vendor,
java.lang.String user,
java.lang.String password)
Gets a database connection from supplied information |
static void |
getTables(java.util.ArrayList<java.lang.String> tables,
java.lang.String catalog)
This method allows access to storing inormation on a database. |
static java.lang.String[] |
getVendors()
An array of vendor names. |
static void |
sendDataToDBMS(java.lang.String database,
java.lang.String tableName,
java.util.ArrayList<java.lang.Object> columnNames,
java.util.ArrayList<java.lang.Object> columnTypes,
java.util.List<java.util.List<java.lang.Object>> data)
This method allows access to storing information on a database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static DBMSBase conn
private static DBMSDrivers drivers
Constructor Detail |
---|
public DBMSSocket()
Method Detail |
---|
public static java.lang.String[] getVendors() throws java.lang.Exception
java.lang.Exception
public static boolean getConnection(java.lang.String hostname, int vendor, java.lang.String user, java.lang.String password) throws java.lang.ClassNotFoundException, java.lang.Exception
hostname
- vendor
- user
- password
-
java.lang.ClassNotFoundException
java.lang.Exception
public static void sendDataToDBMS(java.lang.String database, java.lang.String tableName, java.util.ArrayList<java.lang.Object> columnNames, java.util.ArrayList<java.lang.Object> columnTypes, java.util.List<java.util.List<java.lang.Object>> data) throws java.lang.Exception
database
- tableName
- columnNames
- columnTypes
- data
-
java.lang.Exception
public static void getTables(java.util.ArrayList<java.lang.String> tables, java.lang.String catalog) throws java.sql.SQLException
tables
- catalog
-
java.sql.SQLException
public static void getCatalogs(java.util.ArrayList<java.lang.String> catalogs) throws java.sql.SQLException
catalogs
-
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |