public interface HasGeneratedKeys extends SqlStatement
SqlStatement
that describes the generated keys that can be
set automatically when an insert is done in the database.SqlStatement.Type
Modifier and Type | Method and Description |
---|---|
void |
addGeneratedKey(Long generatedKey)
Adds the specified key to the list of keys that has been generated.
|
List<Field<?>> |
getGeneratedColumnFields()
Returns a list with the fields that are generated automatically by this
insert statement.
|
void |
notifyGeneratedKeyListener()
Notifies the generated key listener that a key has been generated.
|
getSql, getType, getValues
List<Field<?>> getGeneratedColumnFields()
void addGeneratedKey(Long generatedKey)
generatedKey
- to be addedvoid notifyGeneratedKeyListener()
Copyright © 2019 Speedment, Inc.. All rights reserved.