MOMIS Wrapper Inrerface
CORBA-IDL interface for a generic MOMIS Wrapper
interface Wrapper {
/* Get the description of teh source in ODLi3. */
string getDescription();
/* Executes a Query OQL on the GlobalSchema specified */
MomisResultSet runQuery( in string oql );
};
interface MomisResultSet {
/*
* Get the number of column in the resultset.
* @return The number of columns in this result set. */
long getColumnCount() raises (momisOqlException);
/*
* Get the name of the specified column in the resultset.
* @param column the number of the chosen column.
* @return The name of the chosen column. */
string getColumnName(in long column) raises (momisOqlException);
/*
* Get the Type of the specified column in the resultset.
* @param column the number of the chosen column.
* @return The type of the chosen column. */
long getColumnType(in long column) raises (momisOqlException);
/*
* Moves the cursor down one row from its current position.
* A ResultSet cursor is initially positioned before the first row; the
* first call to next makes the first row the current row; the second
* call makes the second row the current row, and so on.
* @return true if the new current row is valid;
* false if there are no more rows */
boolean next() raises (momisOqlException);
/*
* Releases this ResultSet object's database and resources immediately
* instead of waiting for this to happen when it is automatically
* closed. */
void close() raises (momisOqlException);
/*
* Get the position of a column identified by name.
* @param column the name of the chosen column.
* @return The position of the chosen column or -1 if such name
* does not exists. */
long getColumnByName(in string column) raises (momisOqlException);
/*
* Get the Long value of the specified column in the resultset.
* @param column the number of the chosen column.
* @return The long value of the choosen cell. */
long getLong(in long column) raises (momisOqlException);
/*
* Get the Char value of the specified column in the resultset.
* @param column the number of the chosen column.
* @return The char value of the choosen cell. */
char getChar(in long column) raises (momisOqlException);
/*
* Get the double value of the specified column in the resultset.
* @param column the number of the chosen column.
* @return The double value of the choosen cell. */
double getDouble(in long column) raises (momisOqlException);
/*
* Get the float value of the specified column in the resultset.
* @param column the number of the chosen column.
* @return The float value of the choosen cell. */
float getFloat(in long column) raises (momisOqlException);
/*
* Get the string value of the specified column in the resultset.
* @param column the number of the chosen column.
* @return The string value of the choosen cell. */
string getString(in long column) raises (momisOqlException);
/*
* String representation.
* Try to put the whole recordset in a string.
* @param column the number of the chosen column.
* @return The string value of the ResultSet. */
string stringSet();
/*
*
* Interface constants.
*
*/
/*
* ResutSet TYPE.
*/
const long TYPE_Unsupported = -1; /* Unsupported Type */
const long TYPE_Long = 1;
const long TYPE_Char = 2;
const long TYPE_Double = 3;
const long TYPE_Float = 4;
const long TYPE_String = 5;
};
The MOMIS Home Page