Klasse SequenceIdGenerator

java.lang.Object
org.apache.torque.oid.AbstractIdGenerator
org.apache.torque.oid.SequenceIdGenerator
Alle implementierten Schnittstellen:
IdGenerator

public class SequenceIdGenerator extends AbstractIdGenerator
This generator works with databases that have an sql syntax for getting an id prior to inserting a row into the database.
Version:
$Id: SequenceIdGenerator.java 1850586 2019-01-06 18:46:35Z tv $
Autor:
John D. McNally
  • Konstruktordetails

    • SequenceIdGenerator

      public SequenceIdGenerator(Adapter adapter, String databaseName)
      Creates an IdGenerator which will work with the specified database.
      Parameter:
      adapter - the adapter that knows the correct sql syntax.
      databaseName - The name of the database to find the correct schema.
  • Methodendetails