|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SSRowSet
SSRowSet.java
SwingSet - Open Toolkit For Making Swing Controls Database-Aware
This interface provides functions which can be used by other swingset components to get the values or update the values of a given column. This interface is a stripped down version of RowSet interface.
| Method Summary | |
|---|---|
boolean |
absolute(int row)
Moves the cursor to the given row number in this ResultSet object. |
void |
addRowSetListener(javax.sql.RowSetListener listener)
The listener will be notified whenever an event occurs on this RowSet object. |
void |
beforeFirst()
Moves the cursor to the front of this ResultSet object, just before the first row. |
void |
cancelRowUpdates()
Cancels the updates made to the current row in this ResultSet object. |
void |
deleteRow()
Deletes the current row from this ResultSet object and from the underlying database. |
void |
execute()
Fills this RowSet object with data. |
boolean |
first()
Moves the cursor to the first row in this ResultSet object. |
boolean |
getBoolean(int columnIndex)
Retrieves the value of the designated column in the current row of this DataSet object as a boolean in the Java programming language. |
boolean |
getBoolean(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this DataSet object as a boolean in the Java programming language. |
byte[] |
getBytes(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a byte array in the Java programming language. |
byte[] |
getBytes(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a byte array in the Java programming language. |
int |
getColumnCount()
Returns the number of columns in this ResultSet object |
int |
getColumnIndex(java.lang.String columnName)
Get the designated column's index |
java.lang.String |
getColumnName(int columnIndex)
Maps the given column name to its column index |
int |
getColumnType(int columnIndex)
Retrieves the designated column's type |
int |
getColumnType(java.lang.String columnName)
Retrieves the designated column's type |
java.sql.Date |
getDate(int columnIndex)
Retrieves the value of the designated column in the current row of this DataSet object as a Date in the Java programming language. |
java.sql.Date |
getDate(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this DataSet object as a Date in the Java programming language. |
double |
getDouble(int columnIndex)
Retrieves the value of the designated column in the current row of this DataSet object as a double in the Java programming language. |
double |
getDouble(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this DataSet object as a double in the Java programming language. |
float |
getFloat(int columnIndex)
Retrieves the value of the designated column in the current row of this DataSet object as a float in the Java programming language. |
float |
getFloat(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this DataSet object as a float in the Java programming language. |
int |
getInt(int columnIndex)
Retrieves the value of the designated column in the current row of this DataSet object as a int in the Java programming language. |
int |
getInt(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this DataSet object as a int in the Java programming language. |
long |
getLong(int columnIndex)
Retrieves the value of the designated column in the current row of this DataSet object as a long in the Java programming language. |
long |
getLong(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this DataSet object as a long in the Java programming language. |
java.sql.ResultSetMetaData |
getMetaData()
Retrieves the number, types and properties of underlying ResultSet object's columns. |
java.lang.Object |
getObject(int columnIndex)
Gets the value of the designated column in the current row of this ResultSet object as an Object in the Java programming language. |
java.lang.Object |
getObject(java.lang.String columnName)
Gets the value of the designated column in the current row of this ResultSet object as an Object in the Java programming language. |
int |
getRow()
Retrieves the current row number. |
java.lang.String |
getString(int columnIndex)
Retrieves the value of the designated column in the current row of this DataSet object as a String in the Java programming language. |
java.lang.String |
getString(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this DataSet object as a String in the Java programming language. |
java.sql.Time |
getTime(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language. |
java.sql.Time |
getTime(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language. |
java.sql.Timestamp |
getTimestamp(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language. |
java.sql.Timestamp |
getTimestamp(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object. |
void |
insertRow()
Inserts the contents of the insert row into this ResultSet object and into the database. |
boolean |
isFirst()
Retrieves whether the cursor is on the first row of this ResultSet object. |
boolean |
isLast()
Retrieves whether the cursor is on the last row of this ResultSet object. |
boolean |
last()
Moves the cursor to the last row in this ResultSet object. |
void |
moveToCurrentRow()
Moves the cursor to the remembered cursor position, usually the current row. |
void |
moveToInsertRow()
Moves the cursor to the insert row. |
boolean |
next()
Moves the cursor down one row from its current position. |
boolean |
previous()
Moves the cursor to the previous row in this ResultSet object. |
void |
refreshRow()
Refreshes the current row with its most recent value in the database. |
void |
removeRowSetListener(javax.sql.RowSetListener listener)
Removes the designated object from this RowSet object's list of listeners. |
boolean |
rowDeleted()
Retrieves whether a row has been deleted. |
boolean |
rowInserted()
Retrieves whether the current row has had an insertion. |
boolean |
rowUpdated()
Retrieves whether the current row has been updated. |
void |
updateBoolean(int columnIndex,
boolean x)
Updates the designated column with a boolean value. |
void |
updateBoolean(java.lang.String columnName,
boolean x)
Updates the designated column with a boolean value. |
void |
updateBytes(int columnIndex,
byte[] x)
Updates the designated column with a byte array value. |
void |
updateBytes(java.lang.String columnName,
byte[] x)
Updates the designated column with a byte array value. |
void |
updateDate(int columnIndex,
java.sql.Date x)
Updates the designated column with a Date value. |
void |
updateDate(java.lang.String columnName,
java.sql.Date x)
Updates the designated column with a Date value. |
void |
updateDouble(int columnIndex,
double x)
Updates the designated column with a double value. |
void |
updateDouble(java.lang.String columnName,
double x)
Updates the designated column with a double value. |
void |
updateFloat(int columnIndex,
float x)
Updates the designated column with a float value. |
void |
updateFloat(java.lang.String columnName,
float x)
Updates the designated column with a float value. |
void |
updateInt(int columnIndex,
int x)
Updates the designated column with a int value. |
void |
updateInt(java.lang.String columnName,
int x)
Updates the designated column with a int value. |
void |
updateLong(int columnIndex,
long x)
Updates the designated column with a long value. |
void |
updateLong(java.lang.String columnName,
long x)
Updates the designated column with a long value. |
void |
updateNull(int columnIndex)
Updates the designated column with a null value. |
void |
updateNull(java.lang.String columnName)
Updates the designated column with a null value. |
void |
updateObject(int columnIndex,
java.lang.Object value)
Updates the designated column with an Object value. |
void |
updateObject(java.lang.String columnName,
java.lang.Object x)
Updates the designated column with an Object value. |
void |
updateRow()
Updates the underlying database with the new contents of the current row of this ResultSet object. |
void |
updateString(int columnIndex,
java.lang.String x)
Updates the designated column with a String value. |
void |
updateString(java.lang.String columnName,
java.lang.String x)
Updates the designated column with a String value. |
void |
updateTime(int columnIndex,
java.sql.Time x)
Updates the designated column with a java.sql.Time value. |
void |
updateTime(java.lang.String columnName,
java.sql.Time x)
Updates the designated column with a java.sql.Time value. |
void |
updateTimestamp(int columnIndex,
java.sql.Timestamp x)
Updates the designated column with a java.sql.Timestamp value. |
void |
updateTimestamp(java.lang.String columnName,
java.sql.Timestamp x)
Updates the designated column with a java.sql.Timestamp value. |
| Method Detail |
|---|
boolean getBoolean(int columnIndex)
throws java.sql.SQLException
columnIndex - - column number . first column is 1, second column is 2....
throws - an SQL exception if an access error occurs.
java.sql.SQLException
int getInt(int columnIndex)
throws java.sql.SQLException
columnIndex - - column number . first column is 1, second column is 2....
throws - an SQL exception if an access error occurs.
java.sql.SQLException
long getLong(int columnIndex)
throws java.sql.SQLException
columnIndex - - column number . first column is 1, second column is 2....
throws - an SQL exception if an access error occurs.
java.sql.SQLException
float getFloat(int columnIndex)
throws java.sql.SQLException
columnIndex - - column number . first column is 1, second column is 2....
throws - an SQL exception if an access error occurs.
java.sql.SQLException
double getDouble(int columnIndex)
throws java.sql.SQLException
columnIndex - - column number . first column is 1, second column is 2....
throws - an SQL exception if an access error occurs.
java.sql.SQLException
java.lang.String getString(int columnIndex)
throws java.sql.SQLException
columnIndex - - column number . first column is 1, second column is 2....
throws - an SQL exception if an access error occurs.
java.sql.SQLException
java.sql.Date getDate(int columnIndex)
throws java.sql.SQLException
columnIndex - - column number . first column is 1, second column is 2....
throws - an SQL exception if an access error occurs.
java.sql.SQLException
byte[] getBytes(int columnIndex)
throws java.sql.SQLException
columnIndex - - index number of the column
throws - an SQLException - if a database access error occurs
java.sql.SQLException
void updateBoolean(int columnIndex,
boolean x)
throws java.sql.SQLException
columnIndex - - index number of the column. first column is 1, second column is 2......x - - new column value
throws - an SQL exception if an access error occurs.
java.sql.SQLException
void updateInt(int columnIndex,
int x)
throws java.sql.SQLException
columnIndex - - index number of the column. first column is 1, second column is 2......x - - new column value
throws - an SQL exception if an access error occurs.
java.sql.SQLException
void updateLong(int columnIndex,
long x)
throws java.sql.SQLException
columnIndex - - index number of the column. first column is 1, second column is 2......x - - new column value
throws - an SQL exception if an access error occurs.
java.sql.SQLException
void updateFloat(int columnIndex,
float x)
throws java.sql.SQLException
columnIndex - - index number of the column. first column is 1, second column is 2......x - - new column value
throws - an SQL exception if an access error occurs.
java.sql.SQLException
void updateDouble(int columnIndex,
double x)
throws java.sql.SQLException
columnIndex - - index number of the column. first column is 1, second column is 2......x - - new column value
throws - an SQL exception if an access error occurs.
java.sql.SQLException
void updateString(int columnIndex,
java.lang.String x)
throws java.sql.SQLException
columnIndex - - index number of the column. first column is 1, second column is 2......x - - new column value
throws - an SQL exception if an access error occurs.
java.sql.SQLException
void updateDate(int columnIndex,
java.sql.Date x)
throws java.sql.SQLException
columnIndex - - index number of the column. first column is 1, second column is 2......x - - new column value
throws - an SQL exception if an access error occurs.
java.sql.SQLException
void updateNull(int columnIndex)
throws java.sql.SQLException
columnIndex - - index number of the column. first column is 1, second column is 2......
throws - an SQL exception if an access error occurs.
java.sql.SQLException
void updateBytes(int columnIndex,
byte[] x)
throws java.sql.SQLException
columnIndex - - the index number of the columnx - - the new column value
throws - an SQLException - if a database access error occurs
java.sql.SQLException
boolean getBoolean(java.lang.String columnName)
throws java.sql.SQLException
columnName - - name of the column
throws - an SQL exception if an access error occurs.
java.sql.SQLException
int getInt(java.lang.String columnName)
throws java.sql.SQLException
columnName - - name of the column
throws - an SQL exception if an access error occurs.
java.sql.SQLException
long getLong(java.lang.String columnName)
throws java.sql.SQLException
columnName - - name of the column
throws - an SQL exception if an access error occurs.
java.sql.SQLException
float getFloat(java.lang.String columnName)
throws java.sql.SQLException
columnName - - name of the column
throws - an SQL exception if an access error occurs.
java.sql.SQLException
double getDouble(java.lang.String columnName)
throws java.sql.SQLException
columnName - - name of the column
throws - an SQL exception if an access error occurs.
java.sql.SQLException
java.lang.String getString(java.lang.String columnName)
throws java.sql.SQLException
columnName - - name of the column
throws - an SQL exception if an access error occurs.
java.sql.SQLException
java.sql.Date getDate(java.lang.String columnName)
throws java.sql.SQLException
columnName - - name of the column
throws - an SQL exception if an access error occurs.
java.sql.SQLException
byte[] getBytes(java.lang.String columnName)
throws java.sql.SQLException
columnName - - the SQL name of the column
throws - an SQLException - if a database access error occurs
java.sql.SQLException
void updateBoolean(java.lang.String columnName,
boolean x)
throws java.sql.SQLException
columnName - - name of the columnx - - new column value
throws - an SQL exception if an access error occurs.
java.sql.SQLException
void updateInt(java.lang.String columnName,
int x)
throws java.sql.SQLException
columnName - - name of the columnx - - new column value
throws - an SQL exception if an access error occurs.
java.sql.SQLException
void updateLong(java.lang.String columnName,
long x)
throws java.sql.SQLException
columnName - - name of the columnx - - new column value
throws - an SQL exception if an access error occurs.
java.sql.SQLException
void updateFloat(java.lang.String columnName,
float x)
throws java.sql.SQLException
columnName - - name of the columnx - - new column value
throws - an SQL exception if an access error occurs.
java.sql.SQLException
void updateDouble(java.lang.String columnName,
double x)
throws java.sql.SQLException
columnName - - name of the columnx - - new column value
throws - an SQL exception if an access error occurs.
java.sql.SQLException
void updateString(java.lang.String columnName,
java.lang.String x)
throws java.sql.SQLException
columnName - - name of the columnx - - new column value
throws - an SQL exception if an access error occurs.
java.sql.SQLException
void updateDate(java.lang.String columnName,
java.sql.Date x)
throws java.sql.SQLException
columnName - - name of the columnx - - new column value
throws - an SQL exception if an access error occurs.
java.sql.SQLException
void updateBytes(java.lang.String columnName,
byte[] x)
throws java.sql.SQLException
columnName - - the name of the columnx - - the new column value
throws - an SQLException - if a database access error occurs
java.sql.SQLException
void updateNull(java.lang.String columnName)
throws java.sql.SQLException
columnName - - name of the column
throws - an SQL exception if an access error occurs.
java.sql.SQLExceptionvoid addRowSetListener(javax.sql.RowSetListener listener)
listener - - an object that has implemented the javax.sql.RowSetListener interface
and wants to be notified of any events that occur on this RowSet object; May be nullvoid removeRowSetListener(javax.sql.RowSetListener listener)
listener - - a RowSetListener object that is on the list of listeners for this RowSet object
java.lang.String getColumnName(int columnIndex)
throws java.sql.SQLException
columnIndex - - column number first column is 1, second column is 2 .....
java.sql.SQLException - - if the object does not contain columnIndex or a access
error occurs
int getColumnIndex(java.lang.String columnName)
throws java.sql.SQLException
columnName - - name of the column
java.sql.SQLException - - if a data access error
int getColumnType(java.lang.String columnName)
throws java.sql.SQLException
columnName - - name of the column
java.sql.SQLException - - if a data access error occurs
int getColumnType(int columnIndex)
throws java.sql.SQLException
columnIndex - - column number first column is 1, second column is 2 .....
java.sql.SQLException - - if a data access error occurs
int getRow()
throws java.sql.SQLException
java.sql.SQLException - - if a data access error occurs
int getColumnCount()
throws java.sql.SQLException
java.sql.SQLException - - if a data access error occurs
boolean next()
throws java.sql.SQLException
java.sql.SQLException - - if a data access error occurs
boolean previous()
throws java.sql.SQLException
java.sql.SQLException - - if a data access error occurs
boolean last()
throws java.sql.SQLException
java.sql.SQLException - - if a data access error occurs
boolean first()
throws java.sql.SQLException
java.sql.SQLException - - if a data access error occurs
boolean isFirst()
throws java.sql.SQLException
java.sql.SQLException - - if a data access error occurs
boolean isLast()
throws java.sql.SQLException
java.sql.SQLException - - if a data access error occurs
void beforeFirst()
throws java.sql.SQLException
java.sql.SQLException - - if a data access error occurs
boolean absolute(int row)
throws java.sql.SQLException
Moves the cursor to the given row number in this ResultSet object.
If the row number is positive, the cursor moves to the given row number with
respect to the beginning of the result set. The first row is row 1, the second is
row 2, and so on.
If the given row number is negative, the cursor moves to an absolute row position
with respect to the end of the result set. For example, calling the method absolute(-1)
positions the cursor on the last row; calling the method absolute(-2) moves the cursor
to the next-to-last row, and so on.
An attempt to position the cursor beyond the first/last row in the result set leaves
the cursor before the first row or after the last row.
row - - the number of the row to which the cursor should move.
java.sql.SQLException - - if a database access error occurs
void updateRow()
throws java.sql.SQLException
java.sql.SQLException - - if a data access error occurs or if this method is called when
the cursor is on the insert row
void moveToCurrentRow()
throws java.sql.SQLException
java.sql.SQLException - - if a data access error occurs
void moveToInsertRow()
throws java.sql.SQLException
java.sql.SQLException - - if a data access error occurs
void insertRow()
throws java.sql.SQLException
java.sql.SQLException - - if a data access error occurs,if this method is called when
the cursor is not on the insert row, or if not all of non-nullable columns in the
insert row have been given a value
void deleteRow()
throws java.sql.SQLException
java.sql.SQLException - - if a data access error occurs or if this method is called
when the cursor is on the insert row
void refreshRow()
throws java.sql.SQLException
java.sql.SQLException - - if a data access error occurs or if this method is called
when the cursor is on the insert row
void cancelRowUpdates()
throws java.sql.SQLException
java.sql.SQLException - - if a data access error occurs or if this method is called when
the cursor is on the insert row
void execute()
throws java.sql.SQLException
java.sql.SQLException - - if a data access error occurs or any of the properties necessary
for making a connection have not been set
boolean rowDeleted()
throws java.sql.SQLException
java.sql.SQLException - - if a database access error occurs
boolean rowInserted()
throws java.sql.SQLException
java.sql.SQLException - - if a database access error occurs
boolean rowUpdated()
throws java.sql.SQLException
java.sql.SQLException - - if a database access error occurs
java.sql.ResultSetMetaData getMetaData()
throws java.sql.SQLException
java.sql.SQLException - - if a database access error occurs
java.lang.Object getObject(java.lang.String columnName)
throws java.sql.SQLException
columnName - - the SQL name of the column
java.sql.SQLException - - if a database access error occurs
java.lang.Object getObject(int columnIndex)
throws java.sql.SQLException
columnIndex - - the first column is 1, the second is 2, ...
java.sql.SQLException - - if a database access error occurs
void updateObject(java.lang.String columnName,
java.lang.Object x)
throws java.sql.SQLException
columnName - - the name of the columnx - - the new column value
java.sql.SQLException - - if a database access error occurs
void updateObject(int columnIndex,
java.lang.Object value)
throws java.sql.SQLException
columnIndex - - the first column is 1, the second is 2, ...value - - the new column value
java.sql.SQLException - - if a database access error occurs
java.sql.Time getTime(int columnIndex)
throws java.sql.SQLException
columnIndex - - the first column is 1, the second is 2, ...
java.sql.SQLException - - if a database access error occurs
java.sql.Time getTime(java.lang.String columnName)
throws java.sql.SQLException
columnName - - the SQL name of the column
java.sql.SQLException - - if a database access error occurs
java.sql.Timestamp getTimestamp(int columnIndex)
throws java.sql.SQLException
columnIndex - - the first column is 1, the second is 2, ...
java.sql.SQLException - - if a database access error occurs
java.sql.Timestamp getTimestamp(java.lang.String columnName)
throws java.sql.SQLException
columnName - - the SQL name of the column
java.sql.SQLException - - if a database access error occurs
void updateTime(int columnIndex,
java.sql.Time x)
throws java.sql.SQLException
columnIndex - - the first column is 1, the second is 2, ...x - - the new column value
java.sql.SQLException - - if a database access error occurs
void updateTime(java.lang.String columnName,
java.sql.Time x)
throws java.sql.SQLException
columnName - - the SQL name of the columnx - - the new column value
java.sql.SQLException - - if a database access error occurs
void updateTimestamp(int columnIndex,
java.sql.Timestamp x)
throws java.sql.SQLException
columnIndex - - the first column is 1, the second is 2, ...x - - the new column value
java.sql.SQLException - - if a database access error occurs
void updateTimestamp(java.lang.String columnName,
java.sql.Timestamp x)
throws java.sql.SQLException
columnName - - the SQL name of the columnx - - the new column value
java.sql.SQLException - - if a database access error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||