com.oracle.email.dao

## Class SequenceDAO

- java.lang.Object
- - com.oracle.email.dao.BaseDAO
  - - com.oracle.email.dao.SequenceDAO

-     public class SequenceDAO
      extends BaseDAO

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SequenceDAO()`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `createTable()` Each DAO class need to define how to create the table
    `SequenceTO` | `getSequence(java.lang.String sequenceName)` This method returns the sequence row for the unique sequence name.
    `static void` | `main(java.lang.String[] main)`
    `SequenceTO` | `updateSequence(SequenceTO sequenceTO)` This method updates a Sequence.

    - ### Methods inherited from class com.oracle.email.dao.BaseDAO

      `getHostPort, getKVStore, getStoreName, getTable, getTableAPI, getTableRows, setHostPort, setStoreName`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SequenceDAO

          public SequenceDAO()

  - ### Method Detail

    - #### createTable

          public void createTable()

      Description copied from class: `BaseDAO`
      Each DAO class need to define how to create the table
      Specified by:
        `createTable` in class `BaseDAO`

    - #### getSequence

          public SequenceTO getSequence(java.lang.String sequenceName)

      This method returns the sequence row for the unique sequence name. This row contains information like current sequence number, number of sequences to be cached per insert.
      Parameters:
        `sequenceName` - - Unique name of the sequence
      Returns:
        SequenceTO - TO object with sequence details

    - #### updateSequence

          public SequenceTO updateSequence(SequenceTO sequenceTO)

      This method updates a Sequence.
      Parameters:
        `sequenceTO` - with all the information about the Sequence
      Returns:
        SequenceTO

    - #### main

          public static void main(java.lang.String[] main)