|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Recordset
A Recordset is a set of records.
| Field Summary | |
|---|---|
static int |
CACHED
The constant indicating that a recordset is not connected to JDBC. |
static int |
LINKED
The constant indicating that a recordset is connected to JDBC. |
| Method Summary | |
|---|---|
void |
close()
Closes the record set. |
int |
columns()
Returns the amount of all columns in a record. |
void |
delete()
Deletes the current record. |
FieldValue[] |
fields()
Gets FieldValue array of a record. |
FieldValue |
fields(int index)
Gets FieldValue indicated by an index. |
FieldValue |
fields(java.lang.String fdName)
Gets FieldValue indicated by a field name. |
boolean |
first()
Cursor moves to the first record. |
boolean |
getBoolean(int index)
Retrieves the value of the designated field in the current row of this ResultSet object as a boolean in the Java programming language. |
boolean |
getBoolean(java.lang.String fdName)
Retrieves the value of the designated field in the current row of this ResultSet object as a boolean in the Java programming language. |
byte |
getByte(int index)
Retrieves the value of the designated field in the current row of this ResultSet object as a byte in the Java programming language. |
byte |
getByte(java.lang.String fdName)
Retrieves the value of the designated field in the current row of this ResultSet object as a byte in the Java programming language. |
byte[] |
getBytes(int index)
Retrieves the value of the designated field in the current row of this ResultSet object as a byte[] in the Java programming language. |
byte[] |
getBytes(java.lang.String fdName)
Retrieves the value of the designated field in the current row of this ResultSet object as a byte[] in the Java programming language. |
java.sql.Date |
getDate(int index)
Retrieves the value of the designated field in the current row of this ResultSet object as a java.sql.Date in the Java programming language. |
java.sql.Date |
getDate(java.lang.String fdName)
Retrieves the value of the designated field in the current row of this ResultSet object as a java.sql.Date in the Java programming language. |
double |
getDouble(int index)
Retrieves the value of the designated field in the current row of this ResultSet object as a double in the Java programming language. |
double |
getDouble(java.lang.String fdName)
Retrieves the value of the designated field in the current row of this ResultSet object as a double in the Java programming language. |
float |
getFloat(int index)
Retrieves the value of the designated field in the current row of this ResultSet object as a float in the Java programming language. |
float |
getFloat(java.lang.String fdName)
Retrieves the value of the designated field in the current row of this ResultSet object as a float in the Java programming language. |
int |
getInt(int index)
Retrieves the value of the designated field in the current row of this ResultSet object as a int in the Java programming language. |
int |
getInt(java.lang.String fdName)
Retrieves the value of the designated field in the current row of this ResultSet object as a int in the Java programming language. |
long |
getLong(int index)
Retrieves the value of the designated field in the current row of this ResultSet object as a long in the Java programming language. |
long |
getLong(java.lang.String fdName)
Retrieves the value of the designated field in the current row of this ResultSet object as a long in the Java programming language. |
int |
getSetType()
Returns the type of the Recordset, which should be one of
jet.server.api.db.Recordset.LINKED or
jet.server.api.db.Recordset.CACHED. |
short |
getShort(int index)
Retrieves the value of the designated field in the current row of this ResultSet object as a short in the Java programming language. |
short |
getShort(java.lang.String fdName)
Retrieves the value of the designated field in the current row of this ResultSet object as a short in the Java programming language. |
java.lang.String |
getString(int index)
Retrieves the value of the designated field in the current row of this ResultSet object as a String in the Java programming language. |
java.lang.String |
getString(java.lang.String fdName)
Retrieves the value of the designated field in the current row of this ResultSet object as a String in the Java programming language. |
java.sql.Time |
getTime(int index)
Retrieves the value of the designated field in the current row of this ResultSet object as a Time in the Java programming language. |
java.sql.Time |
getTime(java.lang.String fdName)
Retrieves the value of the designated field in the current row of this ResultSet object as a Time in the Java programming language. |
java.sql.Timestamp |
getTimestamp(int index)
Retrieves the value of the designated field in the current row of this ResultSet object as a Timestamp in the Java programming language. |
java.sql.Timestamp |
getTimestamp(java.lang.String fdName)
Retrieves the value of the designated field in the current row of this ResultSet object as a Timestamp in the Java programming language. |
java.lang.Object |
getValue(int index)
Gets the value of the specified field by the field index. |
java.lang.Object |
getValue(java.lang.String fdName)
Gets the value of the specified field by the field name. |
boolean |
next()
Cursor moves to the next record from the current record. |
int |
rows()
Returns the amount of all rows in this records set. |
| Field Detail |
|---|
static final int LINKED
static final int CACHED
| Method Detail |
|---|
int getSetType()
Recordset, which should be one of
jet.server.api.db.Recordset.LINKED or
jet.server.api.db.Recordset.CACHED.
Recordset.FieldValue[] fields()
FieldValue array of a record.
FieldValue array of a record.FieldValue fields(int index)
FieldValue indicated by an index.
index -
FieldValue.FieldValue fields(java.lang.String fdName)
FieldValue indicated by a field name.
fdName - the field name
FieldValueint rows()
int columns()
boolean first()
boolean next()
void delete()
void close()
java.lang.Object getValue(int index)
index -
java.lang.Object getValue(java.lang.String fdName)
fdName -
boolean getBoolean(int index)
throws java.sql.SQLException
index - the index of the field.
SQLException - if the index is not valid or if a database access error occurs.
boolean getBoolean(java.lang.String fdName)
throws java.sql.SQLException
fdName - the field name of the field.
SQLException - if the field name is not valid or if a database access error occurs.
byte getByte(int index)
throws java.sql.SQLException
index - the index of the field.
SQLException - if the index is not valid or if a database access error occurs.
byte getByte(java.lang.String fdName)
throws java.sql.SQLException
fdName - the field name of the field.
SQLException - if the index is not valid or if a database access error occurs.
short getShort(int index)
throws java.sql.SQLException
index - the index of the field.
SQLException - if the index is not valid or if a database access error occurs.
short getShort(java.lang.String fdName)
throws java.sql.SQLException
fdName - the field name of the field.
SQLException - if the index is not valid or if a database access error occurs.
int getInt(int index)
throws java.sql.SQLException
index - the index of the field.
SQLException - if the index is not valid or if a database access error occurs.
int getInt(java.lang.String fdName)
throws java.sql.SQLException
fdName - the field name of the field.
SQLException - if the index is not valid or if a database access error occurs.
long getLong(int index)
throws java.sql.SQLException
index - the index of the field.
SQLException - if the index is not valid or if a database access error occurs.
long getLong(java.lang.String fdName)
throws java.sql.SQLException
fdName - the field name of the field.
SQLException - if the index is not valid or if a database access error occurs.
float getFloat(int index)
throws java.sql.SQLException
index - the index of the field.
SQLException - if the index is not valid or if a database access error occurs.
float getFloat(java.lang.String fdName)
throws java.sql.SQLException
fdName - the field name of the field.
SQLException - if the index is not valid or if a database access error occurs.
double getDouble(int index)
throws java.sql.SQLException
index - the index of the field.
SQLException - if the index is not valid or if a database access error occurs.
double getDouble(java.lang.String fdName)
throws java.sql.SQLException
fdName - the field name of the field.
SQLException - if the index is not valid or if a database access error occurs.
java.lang.String getString(int index)
throws java.sql.SQLException
index - the index of the field.
SQLException - if the index is not valid or if a database access error occurs.
java.lang.String getString(java.lang.String fdName)
throws java.sql.SQLException
fdName - the field name of the field.
SQLException - if the index is not valid or if a database access error occurs.
byte[] getBytes(int index)
throws java.sql.SQLException
index - the index of the field.
SQLException - if the index is not valid or if a database access error occurs.
byte[] getBytes(java.lang.String fdName)
throws java.sql.SQLException
fdName - the field name of the field.
SQLException - if the index is not valid or if a database access error occurs.
java.sql.Date getDate(int index)
throws java.sql.SQLException
index - the index of the field.
SQLException - if the index is not valid or if a database access error occurs.
java.sql.Date getDate(java.lang.String fdName)
throws java.sql.SQLException
fdName - the field name of the field.
SQLException - if the index is not valid or if a database access error occurs.
java.sql.Time getTime(int index)
throws java.sql.SQLException
index - the index of the field.
SQLException - if the index is not valid or if a database access error occurs.
java.sql.Time getTime(java.lang.String fdName)
throws java.sql.SQLException
fdName - the field name of the field.
SQLException - if the index is not valid or if a database access error occurs.
java.sql.Timestamp getTimestamp(int index)
throws java.sql.SQLException
index - the index of the field.
SQLException - if the index is not valid or if a database access error occurs.
java.sql.Timestamp getTimestamp(java.lang.String fdName)
throws java.sql.SQLException
fdName - the field name of the field.
SQLException - if the index is not valid or if a database access error occurs.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||