Klasse AutoIncrementIdGenerator

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

public class AutoIncrementIdGenerator extends AbstractIdGenerator
This generator works with databases that have an sql syntax that allows the retrieval of the last id used to insert a row for a Connection.
Version:
$Id: AutoIncrementIdGenerator.java 1850586 2019-01-06 18:46:35Z tv $
Autor:
John D. McNally
  • Konstruktordetails

    • AutoIncrementIdGenerator

      public AutoIncrementIdGenerator(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 databaseName to find the correct schema.
  • Methodendetails