Skip Headers

# Using Java

Previous

Next

Using Java, you can configure sequencing to use multiple different types of sequence for different descriptors. You configure the sequence objects on the session's login and reference them from the descriptor by their name. The descriptor's sequence name refers to the sequence object's name you register in the session's login.

The following examples assume the session sequence configuration shown in Example: Example Sequences.

Example Sequences

    dbLogin.addSequence(new TableSequence("EMP_SEQ", 25));
    dbLogin.addSequence(new DefaultSequence("PHONE_SEQ", 30));
    dbLogin.addSequence(new UnaryTableSequence("ADD_SEQ", 55));
    dbLogin.addSequence(new NativeSequence("NAT_SEQ", 10));

Using Java code, you can perform the following sequence configurations:

- Configuring a Sequence by Name

- Configuring the Same Sequence for Multiple Descriptors

- Configuring the Platform Default Sequence