public final class GeneratedKeys extends Object
Constructor and Description |
---|
GeneratedKeys() |
Modifier and Type | Method and Description |
---|---|
void |
add(Column column)
Remembers columns with generated keys.
|
void |
clear(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.
|
String |
toString() |
public void add(Column column)
column
- table columnpublic void clear(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()
Copyright © 2020 JBoss by Red Hat. All rights reserved.