com.ibm.ism.content.psdi.tools

Class MaxSequence

  • java.lang.Object
    • com.ibm.ism.content.psdi.tools.MaxSequence


  • public class MaxSequence
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor and Description
      MaxSequence() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static long generateKey(java.sql.Connection con, java.lang.String tbName, java.lang.String name)
      Generates a unique key used by long description and workflow ID columns.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MaxSequence

        public MaxSequence()
    • Method Detail

      • generateKey

        public static long generateKey(java.sql.Connection con,
                                       java.lang.String tbName,
                                       java.lang.String name)
                                throws MXException
        Generates a unique key used by long description and workflow ID columns. If the database is Oracle, it returns the MAXSEQ sequence's next value. If not Oracle then the system system time on the SQLServer database server in milliseconds at the time of the first call is used as a seed for a counter. Each subsiquent call adds one to the seed value.
        Throws:
        MXException