Class ReservedIdProvider

java.lang.Object
org.seasar.doma.jdbc.id.ReservedIdProvider
All Implemented Interfaces:
IdProvider

@Deprecated public class ReservedIdProvider extends Object implements IdProvider
Deprecated.
An identity provider that reserves identity values in advance.
  • Field Details

    • config

      protected final Config config
      Deprecated.
    • entityType

      protected final EntityType<?> entityType
      Deprecated.
    • reservationSize

      protected final int reservationSize
      Deprecated.
    • available

      protected final boolean available
      Deprecated.
    • identities

      protected long[] identities
      Deprecated.
    • index

      protected int index
      Deprecated.
  • Constructor Details

    • ReservedIdProvider

      public ReservedIdProvider(Config config, EntityType<?> entityType, int reservationSize)
      Deprecated.
  • Method Details

    • isAvailable

      public boolean isAvailable()
      Deprecated.
      Description copied from interface: IdProvider
      Whether this provider can return the identity value.
      Specified by:
      isAvailable in interface IdProvider
      Returns:
      true if this provider can return the identity value
    • get

      public long get()
      Deprecated.
      Description copied from interface: IdProvider
      Provides the identity value.
      Specified by:
      get in interface IdProvider
      Returns:
      the identity value
    • getIdentities

      protected long[] getIdentities()
      Deprecated.
    • createSql

      protected Sql<?> createSql()
      Deprecated.
    • setupOptions

      protected void setupOptions(PreparedStatement preparedStatement) throws SQLException
      Deprecated.
      Throws:
      SQLException