|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Defines the methods that an application using a static data tables service may call to access the table information. A service providing this interface must implement these methods.
| Method Summary | |
boolean |
checkForTableInDatabase(java.lang.String aTableName)
Returns true if the table exists in memory or false if it does not. |
void |
connect(java.lang.String aDatabaseURL,
java.lang.String aUser,
java.lang.String aPassword)
Establishes a database connection |
void |
disconnect()
Closes the connection to the database. |
Vector |
getAllRecords(java.lang.String aTableName)
Gets all columns of all the records in the table specified by aTableName. |
void |
getAllRecords(java.lang.String aTableName,
HashtableIndexedCollectionFormat aHashtableICollFormat,
Context aContext)
Gets all columns of all records in table aTableName. |
void |
getAllRecords(java.lang.String aTableName,
HashtableIndexedCollectionFormat aHashtableICollFormat,
Context aContext,
Vector vectorOfColumns)
Gets all columns of all records in table aTableName. |
void |
getAllRecords(java.lang.String aTableName,
java.lang.String aHashtableICollFormatName,
Context aContext)
Gets all columns of all records in table aTableName. |
void |
getAllRecords(java.lang.String aTableName,
java.lang.String aHashtableICollFormatName,
Context aContext,
Vector vectorOfColumns)
Gets the columns specified in vectorOfColumns argument of all records in table aTableName. |
Vector |
getAllRecords(java.lang.String aTableName,
Vector vectorOfColumns)
Gets the columns specified in vectorOfColumns argument of all the records in table specified by aTableName. |
java.lang.String |
getEnterprise()
Returns the enterprise information. |
java.sql.Connection |
getInMemoryConnection()
Returns the inMemoryConnection attribute value. |
java.lang.String |
getLanguage()
Returns the language information. |
Vector |
getNextRecords(java.lang.String aTableName,
int cursorPosition,
int numberOfRecords)
Gets all columns of the next numberOfRecords records from the position set as cursorPosition in table aTableName. |
int |
getNextRecords(java.lang.String aTableName,
int cursorPosition,
int numberOfRecords,
HashtableIndexedCollectionFormat aHashtableICollFormat,
Context aContext)
Gets all columns of the next numberOfRecords records from the cursor position set as cursorPosition in table aTableName. |
int |
getNextRecords(java.lang.String aTableName,
int cursorPosition,
int numberOfRecords,
HashtableIndexedCollectionFormat aHashtableICollFormat,
Context aContext,
Vector vectorOfColumns)
Gets the columns specified in vectorOfColumns argument of the next numberOfRecords records from the cursor position set as cursorPosition in table aTableName. |
int |
getNextRecords(java.lang.String aTableName,
int cursorPosition,
int numberOfRecords,
java.lang.String aHashtableICollFormatName,
Context aContext)
Gets all columns of the next numberOfRecords records from the cursor position set as cursorPosition in table aTableName. |
int |
getNextRecords(java.lang.String aTableName,
int cursorPosition,
int numberOfRecords,
java.lang.String aHashtableICollFormatName,
Context aContext,
Vector vectorOfColumns)
Gets the columns specified in vectorOfColumns argument of the next numberOfRecords records from the cursor position set as cursorPosition in table aTableName. |
Vector |
getNextRecords(java.lang.String aTableName,
int cursorPosition,
int numberOfRecords,
Vector vectorOfColumns)
Gets the columns specified in vectorOfColumns argument of the next numberOfRecords records from the position set as cursorPosition in table aTableName. |
java.lang.String |
getPrimaryKey(java.lang.String aTableName)
Returns the name of the table aTableName column that is primary key. |
Hashtable |
getRecord(java.lang.String aTableName,
java.lang.Object key)
Gets all columns of the record identified by a key from the table aTableName. |
void |
getRecord(java.lang.String aTableName,
java.lang.Object key,
HashtableFormat aHashtableFormat,
Context aContext)
Gets all columns of the record identified by a key from the table aTableName. |
void |
getRecord(java.lang.String aTableName,
java.lang.Object key,
HashtableFormat aHashtableFormat,
Context aContext,
Vector vectorOfColumns)
Gets the columns specified in vectorOfColumns argument of the record identified by key from the table aTableName. |
void |
getRecord(java.lang.String aTableName,
java.lang.Object key,
java.lang.String aHashtableFormatName,
Context aContext)
Gets all columns of the record identified by key from the table aTableName. |
void |
getRecord(java.lang.String aTableName,
java.lang.Object key,
java.lang.String aHashtableFormatName,
Context aContext,
Vector vectorOfColumns)
Gets the columns specified in vectorOfColumns argument of the record identified by key from the table aTableName. |
Hashtable |
getRecord(java.lang.String aTableName,
java.lang.Object key,
Vector vectorOfColumns)
Gets the columns specified in vectorOfColumns argument of the record identified by a key from the table aTableName. |
Vector |
getRecords(java.lang.String aTableName,
java.lang.Object keyFrom,
java.lang.Object keyTo)
Gets all columns of the records with primary key between keyFrom and keyTo values from the table aTableName. |
void |
getRecords(java.lang.String aTableName,
java.lang.Object keyFrom,
java.lang.Object keyTo,
HashtableIndexedCollectionFormat aHashtableICollFormat,
Context aContext)
Gets all columns of the records with primary key between keyFrom and keyTo from the table aTableName. |
void |
getRecords(java.lang.String aTableName,
java.lang.Object keyFrom,
java.lang.Object keyTo,
HashtableIndexedCollectionFormat aHashtableICollFormat,
Context aContext,
Vector vectorOfColumns)
Gets the columns specified in vectorOfColumns argument of the records with primary key between keyFrom and keyTo from the table aTableName. |
void |
getRecords(java.lang.String aTableName,
java.lang.Object keyFrom,
java.lang.Object keyTo,
java.lang.String aHashtableICollFormatName,
Context aContext)
Gets all columns of the records with primary key between keyFrom and keyTo from the table aTableName. |
void |
getRecords(java.lang.String aTableName,
java.lang.Object keyFrom,
java.lang.Object keyTo,
java.lang.String aHashtableICollFormatName,
Context aContext,
Vector vectorOfColumns)
Gets the columns specified in vectorOfColumns argument of the records with primary key between keyFrom and keyTo from the table aTableName. |
Vector |
getRecords(java.lang.String aTableName,
java.lang.Object keyFrom,
java.lang.Object keyTo,
Vector vectorOfColumns)
Gets the columns specified in vectorOfColumns argument of the records with primary key between keyFrom and keyTo from the table aTableName. |
Vector |
getTableNames()
Returns a Vector with the name of all tables created in the memory database. |
java.lang.Object |
getTableRecords(java.lang.String aTableName,
java.lang.String stOrder,
java.lang.String stFilter)
Returns an Object containing all the records in the table aTable name matching the stFilter search condition and ordered as set in the stOrder argument. |
java.lang.Object |
getTableRecords(java.lang.String aTableName,
java.lang.String stOrder,
java.lang.String stFilter,
Vector vectorOfColumns)
Returns an Object containing all records in the table aTable name matching the stFilter search condition and ordered as set in the stOrder argument. |
Hashtable |
manageRecord(java.lang.String aTableName,
java.lang.Object records)
Returns a Hashtable containing the data of the record retrieved by executing the getTableRecords() method. |
Vector |
manageRecords(java.lang.String aTableName,
int cursorPosition,
int numberOfRecords,
java.lang.Object records)
Returns a Vector of Hashtables. |
Vector |
manageRecords(java.lang.String aTableName,
java.lang.Object records)
Returns a Vector of Hashtables. |
| Method Detail |
public boolean checkForTableInDatabase(java.lang.String aTableName)
throws DSESQLException
aTableName - java.lang.String
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 disconnect()
throws DSESQLException
public Vector getAllRecords(java.lang.String aTableName)
throws DSEInvalidArgumentException,
DSESQLException,
DSEException
aTableName - String, the name of the tablevectorOfColumnsValues - Vector, vector with the values of the records columns
public void getAllRecords(java.lang.String aTableName,
HashtableIndexedCollectionFormat aHashtableICollFormat,
Context aContext)
throws DSEInvalidArgumentException,
DSESQLException,
DSEException,
java.io.IOException
aTableName - String, the name of the tableaHashtableICollFormat - HashtableIndexedCollectionFormat, the formatter to be used to unformat the retrieved dataaContext - Context, the context that will be updated with the retrieved data
public void getAllRecords(java.lang.String aTableName,
HashtableIndexedCollectionFormat aHashtableICollFormat,
Context aContext,
Vector vectorOfColumns)
throws DSEInvalidArgumentException,
DSESQLException,
DSEException,
java.io.IOException
aTableName - String, the name of the tableaHashtableICollFormat - HashtableIndexedCollectionFormat, the formatter to be used to unformat the retrieved dataaContext - Context, the context that will be updated with the retrieved datavectorOfColumns - Vector, vector with the name of the columns that will be retrieved from the table
public Vector getAllRecords(java.lang.String aTableName,
Vector vectorOfColumns)
throws DSEInvalidArgumentException,
DSESQLException,
DSEException
aTableName - String, the name of the tablevectorOfColumns - Vector, vector with the name of the columns that will be retrieved from the table
public void getAllRecords(java.lang.String aTableName,
java.lang.String aHashtableICollFormatName,
Context aContext)
throws DSEInvalidArgumentException,
DSESQLException,
DSEException,
java.io.IOException
aTableName - String, the name of the tableaHashtableICollFormatName - String, the name of the formatter to be used to unformat the retrieved dataaContext - Context, the context that will be updated with the retrieved data
public void getAllRecords(java.lang.String aTableName,
java.lang.String aHashtableICollFormatName,
Context aContext,
Vector vectorOfColumns)
throws DSEInvalidArgumentException,
DSESQLException,
DSEException,
java.io.IOException
aTableName - String, the name of the tableaHashtableICollFormatName - String, the name of the formatter to be used to unformat the retrieved dataaContext - Context, the context that will be updated with the retrieved datavectorOfColumns - Vector, vector with the name of the columns that will be retrieved from the tablepublic java.lang.String getEnterprise()
public java.sql.Connection getInMemoryConnection()
public java.lang.String getLanguage()
public Vector getNextRecords(java.lang.String aTableName,
int cursorPosition,
int numberOfRecords)
throws DSESQLException,
DSEInvalidArgumentException,
DSEException
aTableName - String, the name of the tablecursorPosition - int, the cursor position to start retrieving the records fromnumberOfRecords - int, number of records to be retrieved
public int getNextRecords(java.lang.String aTableName,
int cursorPosition,
int numberOfRecords,
HashtableIndexedCollectionFormat aHashtableICollFormat,
Context aContext)
throws DSESQLException,
DSEInvalidArgumentException,
DSEException,
java.io.IOException
aTableName - String, the name of the tablecursorPosition - int, the cursor position to start retrieving the records fromnumberOfRecords - int, number of records to be retrievedaHashtableICollFormat - HashtableIndexedCollectionFormat, the formatter to be used to unformat the retrieved dataaContext - Context, the context that will be updated with the retrieved data
public int getNextRecords(java.lang.String aTableName,
int cursorPosition,
int numberOfRecords,
HashtableIndexedCollectionFormat aHashtableICollFormat,
Context aContext,
Vector vectorOfColumns)
throws DSESQLException,
DSEInvalidArgumentException,
DSEException,
java.io.IOException
aTableName - String, the name of the tablecursorPosition - int, the cursor position to start retrieving the records fromnumberOfRecords - int, number of records to be retrievedaHashtableICollFormat - HashtableIndexedCollectionFormat, the formatter to be used to unformat the retrieved dataaContext - Context, the context that will be updated with the retrieved datavectorOfColumns - Vector, vector with the name of the columns that will be retrieved from the table
public Vector getNextRecords(java.lang.String aTableName,
int cursorPosition,
int numberOfRecords,
Vector vectorOfColumns)
throws DSESQLException,
DSEInvalidArgumentException,
DSEException
aTableName - String, the name of the tablecursorPosition - int, the cursor position to start retrieving the records fromnumberOfRecords - int, number of records to be retrievedvectorOfColumns - Vector, vector with the name of the columns that will be retrieved from the table
public int getNextRecords(java.lang.String aTableName,
int cursorPosition,
int numberOfRecords,
java.lang.String aHashtableICollFormatName,
Context aContext)
throws DSESQLException,
DSEInvalidArgumentException,
DSEException,
java.io.IOException
aTableName - String, the name of the tablecursorPosition - int, the cursor position to start retrieving the records fromnumberOfRecords - int, number of records to be retrievedaHashtableICollFormatName - String, the name of the formatter to be used to unformat the retrieved dataaContext - Context, the context that will be updated with the retrieved data
public int getNextRecords(java.lang.String aTableName,
int cursorPosition,
int numberOfRecords,
java.lang.String aHashtableICollFormatName,
Context aContext,
Vector vectorOfColumns)
throws DSESQLException,
DSEInvalidArgumentException,
DSEException,
java.io.IOException
aTableName - String, the name of the tablecursorPosition - int, the cursor position to start retrieving the records fromnumberOfRecords - int, number of records to be retrievedaHashtableICollFormatName - String, the name of the formatter to be used to unformat the retrieved dataaContext - Context, the context that will be updated with the retrieved datavectorOfColumns - Vector, vector with the name of the columns that will be retrieved from the table
public java.lang.String getPrimaryKey(java.lang.String aTableName)
throws DSESQLException
aTableName - java.lang.String
public Hashtable getRecord(java.lang.String aTableName,
java.lang.Object key)
throws DSESQLException,
DSEInvalidArgumentException,
DSEInvalidRequestException,
DSEException
aTableName - String, the name of the tablekey - Object, Object with the key value that identifies the record to be retrieved
public void getRecord(java.lang.String aTableName,
java.lang.Object key,
HashtableFormat aHashtableFormat,
Context aContext)
throws DSESQLException,
DSEInvalidArgumentException,
DSEInvalidRequestException,
DSEException
aTableName - String, the name of the tablekey - Object, Object with the key value that identifies the record to be retrievedaHashtableFormat - HashtableFormat, the formatter to be used to unformat the retrieved dataaContext - Context, the context that will be updated with the retrieved data
public void getRecord(java.lang.String aTableName,
java.lang.Object key,
HashtableFormat aHashtableFormat,
Context aContext,
Vector vectorOfColumns)
throws DSESQLException,
DSEInvalidArgumentException,
DSEInvalidRequestException,
DSEException
aTableName - String, the name of the tableaHashtableFormat - HashtableFormat, the formatter to be used to unformat the retrieved dataaContext - Context, the context that will be updated with the retrieved datavectorOfColumns - Vector, vector with the name of the columns that will be retrieved from the table
public Hashtable getRecord(java.lang.String aTableName,
java.lang.Object key,
Vector vectorOfColumns)
throws DSESQLException,
DSEInvalidArgumentException,
DSEInvalidRequestException,
DSEException
aTableName - String, the name of the tablekey - Object, Object with the key value that identifies the record to be retrievedvectorOfColumns - Vector, vector with the name of the columns that will be retrieved from the table
public void getRecord(java.lang.String aTableName,
java.lang.Object key,
java.lang.String aHashtableFormatName,
Context aContext)
throws DSESQLException,
DSEInvalidArgumentException,
DSEInvalidRequestException,
DSEException,
java.io.IOException
aTableName - String, the name of the tableaHashtableFormatName - String, the name of the formatter to be used to unformat the retrieved dataaContext - Context, the context that will be updated with the retrieved data
public void getRecord(java.lang.String aTableName,
java.lang.Object key,
java.lang.String aHashtableFormatName,
Context aContext,
Vector vectorOfColumns)
throws DSESQLException,
DSEInvalidArgumentException,
DSEInvalidRequestException,
DSEException,
java.io.IOException
aTableName - String, the name of the tableaHashtableFormatName - String, the name of the formatter to be used to unformat the retrieved dataaContext - Context, the context that will be updated with the retrieved datavectorOfColumns - Vector, vector with the name of the columns that will be retrieved from the table
public Vector getRecords(java.lang.String aTableName,
java.lang.Object keyFrom,
java.lang.Object keyTo)
throws DSESQLException,
DSEInvalidArgumentException,
DSEInvalidRequestException,
DSEException
aTableName - String, the name of the tablekeyFrom - Object, Object with a key value. Only records with primary key value exceeding this value will be retrievedkeyTo - Object, Object with a key value. Only records with primary key value minor than this value will be retrieved
public void getRecords(java.lang.String aTableName,
java.lang.Object keyFrom,
java.lang.Object keyTo,
HashtableIndexedCollectionFormat aHashtableICollFormat,
Context aContext)
throws DSESQLException,
DSEInvalidArgumentException,
DSEInvalidRequestException,
DSEException,
java.io.IOException
aTableName - String, the name of the tablekeyFrom - Object, Object with a key value. Only records with primary key value exceeding this value will be retrievedkeyTo - Object, Object with a key value. Only records with primary key value minor than this value will be retrievedaHashtableICollFormat - HashtableIndexedCollectionFormat, the formatter to be used to unformat the retrieved dataaContext - Context, the context that will be updated with the retrieved data
public void getRecords(java.lang.String aTableName,
java.lang.Object keyFrom,
java.lang.Object keyTo,
HashtableIndexedCollectionFormat aHashtableICollFormat,
Context aContext,
Vector vectorOfColumns)
throws DSESQLException,
DSEInvalidArgumentException,
DSEInvalidRequestException,
DSEException,
java.io.IOException
aTableName - String, the name of the tablekeyFrom - Object, Object with a key value. Only records with primary key value exceeding this value will be retrievedkeyTo - Object, Object with a key value. Only records with primary key value minor than this value will be retrievedaHashtableICollFormat - HashtableIndexedCollectionFormat, the formatter to be used to unformat the retrieved dataaContext - Context, the context that will be updated with the retrieved datavectorOfColumns - Vector, vector with the name of the columns that will be retrieved from the table
public Vector getRecords(java.lang.String aTableName,
java.lang.Object keyFrom,
java.lang.Object keyTo,
Vector vectorOfColumns)
throws DSESQLException,
DSEInvalidArgumentException,
DSEInvalidRequestException,
DSEException
aTableName - String, the name of the tablekeyFrom - Object, Object with a key value. Only records with primary key value exceeding this value will be retrievedkeyTo - Object, Object with a key value. Only records with primary key value minor than this value will be retrievedvectorOfColumns - Vector, vector with the name of the columns that will be retrieved from the table
public void getRecords(java.lang.String aTableName,
java.lang.Object keyFrom,
java.lang.Object keyTo,
java.lang.String aHashtableICollFormatName,
Context aContext)
throws DSESQLException,
DSEInvalidArgumentException,
DSEInvalidRequestException,
DSEException,
java.io.IOException
aTableName - String, the name of the tablekeyFrom - Object, Object with a key value. Only records with primary key value exceeding this value will be retrievedkeyTo - Object, Object with a key value. Only records with primary key value minor than this value will be retrievedaHashtableICollFormatName - String, the name of the formatter to be used to unformat the retrieved dataaContext - Context, the context that will be updated with the retrieved data
public void getRecords(java.lang.String aTableName,
java.lang.Object keyFrom,
java.lang.Object keyTo,
java.lang.String aHashtableICollFormatName,
Context aContext,
Vector vectorOfColumns)
throws DSESQLException,
DSEInvalidArgumentException,
DSEInvalidRequestException,
DSEException,
java.io.IOException
aTableName - String, the name of the tablekeyFrom - Object, Object with a key value. Only records with primary key value exceeding this value will be retrievedkeyTo - Object, Object with a key value. Only records with primary key value minor than this value will be retrievedaHashtableICollFormatName - String, the name of the formatter to be used to unformat the retrieved dataaContext - Context, the context that will be updated with the retrieved datavectorOfColumns - Vector, vector with the name of the columns that will be retrieved from the table
public Vector getTableNames()
throws DSESQLException
public java.lang.Object getTableRecords(java.lang.String aTableName,
java.lang.String stOrder,
java.lang.String stFilter)
throws DSESQLException
aTableName - String, the name of the tablestOrder - String, name of the column the retrieve records will be ordered bystFilter - String, additional search condition
public java.lang.Object getTableRecords(java.lang.String aTableName,
java.lang.String stOrder,
java.lang.String stFilter,
Vector vectorOfColumns)
throws DSESQLException
aTableName - String, the name of the tablestOrder - String, name of the column the retrieve records will be ordered bystFilter - String, additional search conditionvectorOfColumns - Vector, vector with the name of the columns that will be retrieved from the table
public Hashtable manageRecord(java.lang.String aTableName,
java.lang.Object records)
throws DSEInvalidArgumentException,
DSESQLException,
DSEInternalErrorException
aTableName - String, the name of the tablerecords - Object, an Object with the retrieved record information
public Vector manageRecords(java.lang.String aTableName,
int cursorPosition,
int numberOfRecords,
java.lang.Object records)
throws DSEInvalidArgumentException,
DSESQLException,
DSEInternalErrorException
aTableName - String, the name of the tablecursorPosition - int, the cursor position to start retrieving the records fromnumberOfRecords - int, number of records to be retrieved from the set of all retrieved recordsrecords - Object, an Object with the retrieved record information
public Vector manageRecords(java.lang.String aTableName,
java.lang.Object records)
throws DSEInvalidArgumentException,
DSESQLException,
DSEInternalErrorException
aTableName - String, the name of the tablerecords - Object, an Object with the retrieved record information
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||