public class SequenceIdGenerator extends AbstractIdGenerator
adapter, databaseName
Constructor and Description |
---|
SequenceIdGenerator(Adapter adapter,
String databaseName)
Creates an IdGenerator which will work with the specified database.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isConnectionRequired()
A flag to determine whether a Connection is required to
generate an id.
|
boolean |
isGetGeneratedKeysSupported()
A flag to determine whether Statement#getGeneratedKeys()
should be used.
|
boolean |
isPostInsert()
A flag to determine the timing of the id generation
|
boolean |
isPriorToInsert()
A flag to determine the timing of the id generation
|
getId, getIdAsBigDecimal, getIdAsInt, getIdAsLong, getIdAsString, getIdSql
public boolean isPriorToInsert()
isPriorToInsert
in interface IdGenerator
isPriorToInsert
in class AbstractIdGenerator
boolean
valuepublic boolean isPostInsert()
isPostInsert
in interface IdGenerator
isPostInsert
in class AbstractIdGenerator
boolean
valuepublic boolean isConnectionRequired()
isConnectionRequired
in interface IdGenerator
isConnectionRequired
in class AbstractIdGenerator
boolean
valuepublic boolean isGetGeneratedKeysSupported()
isGetGeneratedKeysSupported
in interface IdGenerator
isGetGeneratedKeysSupported
in class AbstractIdGenerator
boolean
valueCopyright © 2000–2020 The Apache Software Foundation. All rights reserved.