|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object system.DBMSPlug
public class DBMSPlug
This class corresponds directly to the DBMSSocket class. It is the systems plug into the DBMS Package.
Constructor Summary | |
---|---|
DBMSPlug()
|
Method Summary | |
---|---|
static java.util.ArrayList<java.lang.String> |
getCatalogs(java.util.ArrayList<java.lang.String> catalogs)
Gets the catalogs from the DBMS package. |
static boolean |
getConnection(java.lang.String url,
int vendor,
java.lang.String user,
java.lang.String password)
Gets the connection from the DBMS package |
static java.util.ArrayList<java.lang.Object> |
getDBColumnTypes(java.util.ArrayList<java.lang.Object> columnTypesJava)
Sets the database column types based on the column types supplied by the valiadation and the user. |
static java.util.ArrayList<java.lang.String> |
getTables(java.lang.String catalog,
java.util.ArrayList<java.lang.String> tables)
Gets the table names of a particular database file. |
static java.lang.String[] |
getVendors()
Gets the vendors of supplying DBMS. |
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)
Sends the data to the database table to be inserted. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DBMSPlug()
Method Detail |
---|
public static boolean getConnection(java.lang.String url, int vendor, java.lang.String user, java.lang.String password) throws java.lang.ClassNotFoundException, java.lang.Exception
url
- the url of the connection stream.vendor
- the vendor of the conection stream.user
- the username of the conection stream.password
- the password of the conection stream.
java.lang.ClassNotFoundException
- throws all exceptions to be caught in the Bol class.
java.lang.Exception
- throws all exceptions to be caught in the Bol class.public static java.util.ArrayList<java.lang.String> getTables(java.lang.String catalog, java.util.ArrayList<java.lang.String> tables) throws java.sql.SQLException
catalog
- the catalog needed for reference.tables
- the tables needed to be populated.
java.sql.SQLException
- throws all exceptions to be caught in the Bol class.public static java.util.ArrayList<java.lang.String> getCatalogs(java.util.ArrayList<java.lang.String> catalogs) throws java.sql.SQLException
catalogs
- the catalogs needing to be populated.
java.sql.SQLException
- throws all exceptions to be caught in the Bol class.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
- the database the data is to be inserted into.tableName
- the table the data is to be inserted into.columnNames
- the column names the data is grouped under.columnTypes
- the types of data the columns have.data
- the data to be inserted into the database.
java.lang.Exception
- throws all exceptions to be caught in the Bol class.public static java.lang.String[] getVendors() throws java.lang.Exception
java.lang.Exception
- throws all exceptions to be caught in the Bol class.public static java.util.ArrayList<java.lang.Object> getDBColumnTypes(java.util.ArrayList<java.lang.Object> columnTypesJava)
columnTypesJava
- the datatypes of the columns of data.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |