Overview | Module | Use | Devguide | Index

Constants | Constants' Details

:: com :: sun :: star :: sdbcx ::
constants group KeyType
Description determines the type of a key. Developers Guide 12.4.3 Database Access - Database Design - Using SDBCX to Access the Database Design - Key Service

Constants
PRIMARY | indicates that the key is the primary key of a table.
UNIQUE | indicates that the key is unique, NULL values are allowed.
FOREIGN | indicates that the key is a foreign key of a table.

Constants' Details
PRIMARY
const long PRIMARY = 1; Description indicates that the key is the primary key of a table.
UNIQUE
const long UNIQUE = 2; Description indicates that the key is unique, NULL values are allowed.
FOREIGN
const long FOREIGN = 3; Description indicates that the key is a foreign key of a table.

Top of Page

Copyright © 2003 Sun Microsystems, Inc.