|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.db.jdbc.KeyDef
A KeyDef object defines the fields in a TableDataSet object that will be used in updates and deletes. A KeyDef is used to construct the WHERE clause of an SQL UPDATE or DELETE statement to uniquely manipulate a record. The attributes associated with a KeyDef object should correspond to a unique key in the database table. A KeyDef's attributes are accessible by name or index position.
For implementation and usage see the Developers Guide.
TableDataSet
Constructor Summary | |
KeyDef()
Constructor initializes a KeyDef object with no attributes in key. |
Method Summary | |
KeyDef |
addAttrib(java.lang.String str)
Adds attributes to an existing KeyDef object. |
boolean |
containsAttrib(java.lang.String colname)
Determines whether a KeyDef contains an attribute name. |
java.lang.String |
getAttrib(int pos)
Returns the attribute name at the specified 1-based index position. |
int |
size()
Returns the number of attributes in a KeyDef object. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public KeyDef()
Method Detail |
public int size()
public KeyDef addAttrib(java.lang.String str) throws DataSetException
str
- Column namepublic java.lang.String getAttrib(int pos)
pos
- 1-based index into a KeyDef's attributespublic boolean containsAttrib(java.lang.String colname)
colname
- Name of a column
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |