Primary Key Generator In Java

  • To generate secrete key we can use Java KeyGenerator class which provides the functionality of a secret (symmetric) key generator. Key generators are constructed using one of the getInstance class methods of this class.
  • Public abstract java.lang.String pkColumnValue (Optional) The primary key value in the generator table that distinguishes this set of generated values from others that may be stored in the table. Defaults to a provider-chosen value to store in the primary key column of the generator table Default: ‘.

name

(Required) A unique generator name that can be referenced by one or more classes to be the generator for id values.

table

(Optional) Name of table that stores the generated id values.

catalog

(Optional) The catalog of the table.

schema

(Optional) The schema of the table.

pkColumnName

(Optional) Name of the primary key column in the table.

valueColumnName

(Optional) Name of the column that stores the last value generated.

Primary Key Generator In Java Download

pkColumnValue

(Optional) The primary key value in the generator table that distinguishes this set of generated values from others that may be stored in the table.

initialValue

(Optional) The initial value to be used to initialize the column that stores the last value generated.Default:0

allocationSize

(Optional) The amount to increment by when allocating id numbers from the generator.Default:50

uniqueConstraints

(Optional) Unique constraints that are to be placed on the table. These are only used if table generation is in effect. These constraints apply in addition to primary key constraints.

Primary Key Generator In Java Free

Generated on 10-February-2011 12:41

Primary Key Generator In Java Software

Scripting on this page tracks web page traffic,but does not change the content in any way.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store