# Uses of Interface
org.apache.cayenne.dba.PkGenerator

Packages that use PkGenerator
Package
Description
org.apache.cayenne.configuration.runtime
org.apache.cayenne.dba
Contains database adapter API (DbAdapter) and its default implementation.
org.apache.cayenne.dba.db2
IBM DB2 DbAdapter.
org.apache.cayenne.dba.derby
Apache Derby DbAdapter.
org.apache.cayenne.dba.frontbase
FrontBase DbAdapter.
org.apache.cayenne.dba.h2
org.apache.cayenne.dba.ingres
org.apache.cayenne.dba.mysql
MySQL DbAdapter.
org.apache.cayenne.dba.oracle
Oracle DbAdapter.
org.apache.cayenne.dba.postgres
PostgreSQL DbAdapter.
org.apache.cayenne.dba.sqlserver
MS SQLServer DbAdapter.
org.apache.cayenne.dba.sybase
Sybase DbAdapter.

- ## Uses of PkGenerator in org.apache.cayenne.configuration.runtime

  Methods in org.apache.cayenne.configuration.runtime that return types with arguments of type PkGenerator
  Modifier and Type
  Method
  Description
  `static MapBuilder<PkGenerator>`
  CoreModule.`contributePkGenerators(Binder binder)`
  Deprecated.
  in favor of `CoreModule.extend(Binder)` API
  Methods in org.apache.cayenne.configuration.runtime with parameters of type PkGenerator
  Modifier and Type
  Method
  Description
  `CoreModuleExtender`
  CoreModuleExtender.`addPkGenerator(Class<? extends DbAdapter> adapter, PkGenerator pkGenerator)`
  Adds a custom PK generator per DbAdapter
  Constructors in org.apache.cayenne.configuration.runtime with parameters of type PkGenerator
  Modifier
  Constructor
  Description
  ``
  `PkGeneratorFactoryProvider(Map<String,PkGenerator> perAdapterValues, PkGenerator defaultValue)`
  Constructor parameters in org.apache.cayenne.configuration.runtime with type arguments of type PkGenerator
  Modifier
  Constructor
  Description
  ``
  `PkGeneratorFactoryProvider(Map<String,PkGenerator> perAdapterValues, PkGenerator defaultValue)`

- ## Uses of PkGenerator in org.apache.cayenne.dba

  Classes in org.apache.cayenne.dba that implement PkGenerator
  Modifier and Type
  Class
  Description
  `class`
  `JdbcPkGenerator`
  Default primary key generator implementation.
  Fields in org.apache.cayenne.dba declared as PkGenerator
  Modifier and Type
  Field
  Description
  `protected PkGenerator`
  AutoAdapter.`pkGenerator`
  Methods in org.apache.cayenne.dba that return PkGenerator
  Modifier and Type
  Method
  Description
  `PkGenerator`
  AutoAdapter.`getPkGenerator()`
  Returns a primary key generator.
  `PkGenerator`
  DbAdapter.`getPkGenerator()`
  Returns primary key generator associated with this DbAdapter.
  `PkGenerator`
  JdbcAdapter.`getPkGenerator()`
  Returns primary key generator associated with this DbAdapter.
  Methods in org.apache.cayenne.dba with parameters of type PkGenerator
  Modifier and Type
  Method
  Description
  `void`
  AutoAdapter.`setPkGenerator(PkGenerator pkGenerator)`
  Sets a PK generator override.
  `void`
  DbAdapter.`setPkGenerator(PkGenerator pkGenerator)`
  Set custom PK generator associated with this DbAdapter.
  `void`
  JdbcAdapter.`setPkGenerator(PkGenerator pkGenerator)`
  Sets new primary key generator.

- ## Uses of PkGenerator in org.apache.cayenne.dba.db2

  Classes in org.apache.cayenne.dba.db2 that implement PkGenerator
  Modifier and Type
  Class
  Description
  `class`
  `DB2PkGenerator`
  A sequence-based PK generator used by `DB2Adapter`.

- ## Uses of PkGenerator in org.apache.cayenne.dba.derby

  Classes in org.apache.cayenne.dba.derby that implement PkGenerator
  Modifier and Type
  Class
  Description
  `class`
  `DerbyPkGenerator`
  PK generator for Derby that uses sequences.

- ## Uses of PkGenerator in org.apache.cayenne.dba.frontbase

  Classes in org.apache.cayenne.dba.frontbase that implement PkGenerator
  Modifier and Type
  Class
  Description
  `class`
  `FrontBasePkGenerator`

- ## Uses of PkGenerator in org.apache.cayenne.dba.h2

  Classes in org.apache.cayenne.dba.h2 that implement PkGenerator
  Modifier and Type
  Class
  Description
  `class`
  `H2PkGenerator`
  Default PK generator for H2 that uses sequences for PK generation.

- ## Uses of PkGenerator in org.apache.cayenne.dba.ingres

  Classes in org.apache.cayenne.dba.ingres that implement PkGenerator
  Modifier and Type
  Class
  Description
  `class`
  `IngresPkGenerator`
  Ingres-specific sequence based PK generator.

- ## Uses of PkGenerator in org.apache.cayenne.dba.mysql

  Classes in org.apache.cayenne.dba.mysql that implement PkGenerator
  Modifier and Type
  Class
  Description
  `class`
  `MySQLPkGenerator`

- ## Uses of PkGenerator in org.apache.cayenne.dba.oracle

  Classes in org.apache.cayenne.dba.oracle that implement PkGenerator
  Modifier and Type
  Class
  Description
  `class`
  `OraclePkGenerator`
  Sequence-based primary key generator implementation for Oracle.

- ## Uses of PkGenerator in org.apache.cayenne.dba.postgres

  Classes in org.apache.cayenne.dba.postgres that implement PkGenerator
  Modifier and Type
  Class
  Description
  `class`
  `PostgresPkGenerator`
  Default PK generator for PostgreSQL that uses sequences for PK generation.

- ## Uses of PkGenerator in org.apache.cayenne.dba.sqlserver

  Classes in org.apache.cayenne.dba.sqlserver that implement PkGenerator
  Modifier and Type
  Class
  Description
  `class`
  `SQLServerPkGenerator`
  The default PK generator for MS SQL, which uses sequences to generate a PK for an integer key type and NEWID() for UNIQUEIDENTIFIER key type

- ## Uses of PkGenerator in org.apache.cayenne.dba.sybase

  Classes in org.apache.cayenne.dba.sybase that implement PkGenerator
  Modifier and Type
  Class
  Description
  `class`
  `SybasePkGenerator`
  Primary key generator implementation for Sybase.