|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Defines the methods that must be implemented by a service creating or removing a table to/from memory.
| Method Summary | |
void |
addRecord(java.lang.String aTableName,
Vector vectorOfColumnsValues)
Inserts in memory a new row in the table aTableName with the values set in the vectorOfColumnsValues vector. |
void |
addRecord(java.lang.String aTableName,
Vector vectorOfColumns,
Vector vectorOfColumnsValues)
Inserts a new row in a table that is in memory. |
void |
connect(java.lang.String aDatabaseURL,
java.lang.String aUser,
java.lang.String aPassword)
Establishes a database connection |
void |
createTable(java.lang.String aTableName)
Creates an empty table in memory. |
void |
createTable(java.lang.String aTableName,
Vector vectorOfColumns)
Creates an empty table in memory with columns as specified in vectorOfColumns. |
void |
disconnect()
Closes the connection to the database. |
void |
dropTable(java.lang.String aTableName)
Deletes from memory the table aTableName. |
Vector |
getColumnsNames(java.lang.String aTableName)
Returns a Vector holding the names of the columns in the table. |
java.sql.Connection |
getInMemoryConnection()
Returns the inMemoryConnection attribute value. |
| Method Detail |
public void addRecord(java.lang.String aTableName,
Vector vectorOfColumnsValues)
throws DSESQLException,
DSEInvalidArgumentException
aTableName - String, the name of the tablevectorOfColumnsValues - Vector, vector with the values of the records columns
public void addRecord(java.lang.String aTableName,
Vector vectorOfColumns,
Vector vectorOfColumnsValues)
throws DSESQLException
aTableName - String, the name of the tablevectorOfColumns - Vector, vector with the names of the records columnsvectorOfColumnsValues - Vector, vector with the values of the records columns
public void connect(java.lang.String aDatabaseURL,
java.lang.String aUser,
java.lang.String aPassword)
throws DSESQLException
aDatabaseURL - java.lang.String, the database URLaUser - java.lang.String, the user identification to connect to the databaseaPassword - java.lang.String, the user password to connect to the database
public void createTable(java.lang.String aTableName)
throws DSESQLException,
DSEInvalidRequestException
aTableName - String, the name of the table
public void createTable(java.lang.String aTableName,
Vector vectorOfColumns)
throws DSESQLException
aTableName - String, the name of the tablevectorOfColumns - Vector, vector with the names of the records columns
public void disconnect()
throws DSESQLException
public void dropTable(java.lang.String aTableName)
throws DSESQLException
public Vector getColumnsNames(java.lang.String aTableName)
throws DSESQLException
aTableName - java.lang.Stringpublic java.sql.Connection getInMemoryConnection()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||