Interface Identifiable

    • Method Detail

      • getId

        int getId()
        Get the id for the item. If it hasn't yet been saved to the database 0 is returned.
        Returns:
        The id of the item or 0
      • getType

        Item getType()
        Get the type of item represented by the object. The returned value is one of the values defined in the Item enumeration.
        Returns:
        A value indicating the type of item
      • getVersion

        int getVersion()
        Get the version number of the item. The version number is incremented each time the item is updated and is used to prevent that the same item is updated at the same time by two or more different threads or processes.