java.lang.Object
org.seasar.doma.jdbc.id.ReservedIdProvider
- All Implemented Interfaces:
IdProvider
Deprecated.
An identity provider that reserves identity values in advance.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final booleanDeprecated.protected final ConfigDeprecated.protected final EntityType<?>Deprecated.protected long[]Deprecated.protected intDeprecated.protected final intDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionReservedIdProvider(Config config, EntityType<?> entityType, int reservationSize) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected Sql<?>Deprecated.longget()Deprecated.Provides the identity value.protected long[]Deprecated.booleanDeprecated.Whether this provider can return the identity value.protected voidsetupOptions(PreparedStatement preparedStatement) Deprecated.
-
Field Details
-
config
Deprecated. -
entityType
Deprecated. -
reservationSize
protected final int reservationSizeDeprecated. -
available
protected final boolean availableDeprecated. -
identities
protected long[] identitiesDeprecated. -
index
protected int indexDeprecated.
-
-
Constructor Details
-
ReservedIdProvider
Deprecated.
-
-
Method Details
-
isAvailable
public boolean isAvailable()Deprecated.Description copied from interface:IdProviderWhether this provider can return the identity value.- Specified by:
isAvailablein interfaceIdProvider- Returns:
trueif this provider can return the identity value
-
get
public long get()Deprecated.Description copied from interface:IdProviderProvides the identity value.- Specified by:
getin interfaceIdProvider- Returns:
- the identity value
-
getIdentities
protected long[] getIdentities()Deprecated. -
createSql
Deprecated. -
setupOptions
Deprecated.- Throws:
SQLException
-