|
Préférences
Moteurs de recherche
|
||||||||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.5.0
javax.sql.rowset
|
Method Summary | |
---|---|
int[] |
getMatchColumnIndexes()
Retrieves the indexes of the match columns that were set for this RowSet object with the method
setMatchColumn(int[] columnIdxes) . |
String[] |
getMatchColumnNames()
Retrieves the names of the match columns that were set for this RowSet object with the method
setMatchColumn(String [] columnNames) . |
void |
setMatchColumn(int columnIdx)
Sets the designated column as the match column for this RowSet
object. |
void |
setMatchColumn(int[] columnIdxes)
Sets the designated columns as the match column for this RowSet
object. |
void |
setMatchColumn(String columnName)
Sets the designated column as the match column for this RowSet
object. |
void |
setMatchColumn(String[] columnNames)
Sets the designated columns as the match column for this RowSet
object. |
void |
unsetMatchColumn(int columnIdx)
Unsets the designated column as the match column for this RowSet
object. |
void |
unsetMatchColumn(int[] columnIdxes)
Unsets the designated columns as the match column for this RowSet
object. |
void |
unsetMatchColumn(String columnName)
Unsets the designated column as the match column for this RowSet
object. |
void |
unsetMatchColumn(String[] columnName)
Unsets the designated columns as the match columns for this RowSet
object. |
Method Detail |
---|
void setMatchColumn(int columnIdx) throws SQLException
RowSet
object. A JoinRowSet
object can now add this RowSet
object based on the match column.
Sub-interfaces such as the CachedRowSet
TM
interface define the method CachedRowSet.setKeyColumns
, which allows
primary key semantics to be enforced on specific columns.
Implementations of the setMatchColumn(int columnIdx)
method
should ensure that the constraints on the key columns are maintained when
a CachedRowSet
object sets a primary key column as a match column.
columnIdx
- an int
identifying the index of the column to be
set as the match column
SQLException
- if an invalid column index is setsetMatchColumn(int[])
,
unsetMatchColumn(int)
void setMatchColumn(int[] columnIdxes) throws SQLException
RowSet
object. A JoinRowSet
object can now add this RowSet
object based on the match column.
columnIdxes
- an array of int
identifying the indexes of the
columns to be set as the match columns
SQLException
- if an invalid column index is setsetMatchColumn(int[])
,
unsetMatchColumn(int[])
void setMatchColumn(String columnName) throws SQLException
RowSet
object. A JoinRowSet
object can now add this RowSet
object based on the match column.
Subinterfaces such as the CachedRowSet
interface define
the method CachedRowSet.setKeyColumns
, which allows
primary key semantics to be enforced on specific columns.
Implementations of the setMatchColumn(String columnIdx)
method
should ensure that the constraints on the key columns are maintained when
a CachedRowSet
object sets a primary key column as a match column.
columnName
- a String
object giving the name of the column
to be set as the match column
SQLException
- if an invalid column name is set, the column name
is a null, or the column name is an empty stringunsetMatchColumn(int)
,
setMatchColumn(int[])
void setMatchColumn(String[] columnNames) throws SQLException
RowSet
object. A JoinRowSet
object can now add this RowSet
object based on the match column.
columnNames
- an array of String
objects giving the names
of the column to be set as the match columns
SQLException
- if an invalid column name is set, the column name
is a null, or the column name is an empty stringunsetMatchColumn(int)
,
setMatchColumn(int[])
int[] getMatchColumnIndexes() throws SQLException
RowSet
object with the method
setMatchColumn(int[] columnIdxes)
.
int
array identifying the indexes of the columns
that were set as the match columns for this RowSet
object
SQLException
- if no match column has been setsetMatchColumn(int)
,
unsetMatchColumn(int)
String[] getMatchColumnNames() throws SQLException
RowSet
object with the method
setMatchColumn(String [] columnNames)
.
String
objects giving the names of the columns
set as the match columns for this RowSet
object
SQLException
- if no match column has been setsetMatchColumn(int)
,
unsetMatchColumn(int)
void unsetMatchColumn(int columnIdx) throws SQLException
RowSet
object.
RowSet
objects that implement the Joinable
interface
must ensure that a key-like constraint continues to be enforced until the
method CachedRowSet.unsetKeyColumns
has been called on the
designated column.
columnIdx
- an int
that identifies the index of the column
that is to be unset as a match column
SQLException
- if an invalid column index is designated or if
the designated column was not previously set as a match
columnsetMatchColumn(int)
void unsetMatchColumn(int[] columnIdxes) throws SQLException
RowSet
object.
columnIdxes
- an arrary of int
that identifies the indexes
of the columns that are to be unset as match columns
SQLException
- if an invalid column index is designated or if
the designated column was not previously set as a match
columnsetMatchColumn(int)
void unsetMatchColumn(String columnName) throws SQLException
RowSet
object.
RowSet
objects that implement the Joinable
interface
must ensure that a key-like constraint continues to be enforced until the
method CachedRowSet.unsetKeyColumns
has been called on the
designated column.
columnName
- a String
object giving the name of the column
that is to be unset as a match column
SQLException
- if an invalid column name is designated or
the designated column was not previously set as a match
columnsetMatchColumn(int)
void unsetMatchColumn(String[] columnName) throws SQLException
RowSet
object.
columnName
- an array of String
objects giving the names of
the columns that are to be unset as the match columns
SQLException
- if an invalid column name is designated or the
designated column was not previously set as a match columnsetMatchColumn(int)