public final class GeneratedKeys
extends java.lang.Object
| Constructor and Description |
|---|
GeneratedKeys() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Column column)
Remembers columns with generated keys.
|
void |
clear(java.lang.Object generatedKeysRequest)
Clears all information from previous runs and sets a new request for
gathering of generated keys.
|
void |
confirmRow(Row tableRow)
Saves row with generated keys if any.
|
LocalResult |
getKeys(Session session)
Returns generated keys.
|
void |
initialize(Table table)
Initializes processing of the specified table.
|
void |
nextRow()
Clears unsaved information about previous row, if any.
|
java.lang.String |
toString() |
public void add(Column column)
column - table columnpublic void clear(java.lang.Object generatedKeysRequest)
generatedKeysRequest - false if generated keys are not needed, true if
generated keys should be configured automatically, int[]
to specify column indices to return generated keys from, or
String[] to specify column names to return generated keys
frompublic void confirmRow(Row tableRow)
tableRow - table row that was insertedpublic LocalResult getKeys(Session session)
session - sessionpublic void initialize(Table table)
clear(), but before other methods.table - tablepublic void nextRow()
public java.lang.String toString()
toString in class java.lang.Object