New Posts New Posts RSS Feed: Generating Custom Primary Key Values in DevForce
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Generating Custom Primary Key Values in DevForce

 Post Reply Post Reply
Author
Customer View Drop Down
Senior Member
Senior Member
Avatar
User Submitted Questions to Support

Joined: 30-May-2007
Location: United States
Posts: 260
Post Options Post Options   Quote Customer Quote  Post ReplyReply Direct Link To This Post Topic: Generating Custom Primary Key Values in DevForce
    Posted: 30-May-2007 at 4:40pm

To use custom IDs (i.e., non-GUID and non-Identity) in DevForce, I understand that my app must include a class that implements your IIdGenerator interface.  I’ve heard you have an implementation of this that generates numeric IDs and maintains different ID pools for different entities.  Where can I find it?

Back to Top
IdeaBlade View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 30-May-2007
Location: United States
Posts: 353
Post Options Post Options   Quote IdeaBlade Quote  Post ReplyReply Direct Link To This Post Posted: 30-May-2007 at 4:41pm

Three implementations of IIDGenerator are shipped with the product, and are installed in the Sample Code directory (e.g., C:\Program Files\IdeaBlade DevForce\Sample Code).  These include:

 

Class

Function

NumericIdGenerator

Generates sequential numeric IDs from a single pool used across all entities.

OracleSequenceIdGenerator

Generates Oracle sequences.

PooledIdGenerator

Generates sequential numeric IDs from multiple, independent pools, one for each entity.

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down