Class RegisteredFormatIds


  • public class RegisteredFormatIds
    extends java.lang.Object
    Registration of TypedFormat classes.

    A TypedFormat is registered by placing a class name at the correct place in the correct array, driven by the base format number:

    • 2 byte - MIN_TWO_BYTE_FORMAT_ID - TwoByte
    The offset from the base format number (0 based) gives the offset in the array.

    The class name is either:

    • The actual class name of the TypeFormat.
    • The name of a class that extends org.apache.derby.iapi.services.io.FormatableInstanceGetter. In this case the monitor will register an instance of the class after calling its setFormatId() method with format id it is registered as.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String[] TwoByte  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String classNameForTwoByteID​(int idx)
      Return the class name bound to an index into TwoByte
      static int countTwoByteIDs()
      Return the number of two-byte format ids
      • Methods inherited from class java.lang.Object

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

      • TwoByte

        private static final java.lang.String[] TwoByte
    • Constructor Detail

      • RegisteredFormatIds

        public RegisteredFormatIds()
    • Method Detail

      • countTwoByteIDs

        public static int countTwoByteIDs()
        Return the number of two-byte format ids
      • classNameForTwoByteID

        public static java.lang.String classNameForTwoByteID​(int idx)
        Return the class name bound to an index into TwoByte