Class CompositeId


  • public class CompositeId
    extends Object
    V8:CompositeID analog.

    Consists of two parts: int and optional uuid

    • Constructor Detail

      • CompositeId

        public CompositeId​(int id,
                           UUID uuid)
        Constructor
        Parameters:
        id - id
        uuid - uuid, may be null
      • CompositeId

        public CompositeId​(int id)
        Constructor
        Parameters:
        uuid - uuid (not null)
    • Method Detail

      • getId

        public int getId()
        Returns:
        the id
      • getUuid

        public UUID getUuid()
        Returns:
        the uuid
      • isCompositeId

        public static boolean isCompositeId​(String string)
        Checks whether the given string has the format of composite ID or not.
        Parameters:
        string - the string, cannot be null
        Returns:
        true for composit id.
      • fromString

        public static CompositeId fromString​(String str)
        Creates CompositeId instance from string.
        Parameters:
        str - string containing compositeId (not null)
        Returns:
        created CompositeId instance
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object