Class SessionControl.MainContext

java.lang.Object
net.sf.basedb.core.SessionControl.MainContext
Direct Known Subclasses:
ModeInfo.ModeContext
Enclosing class:
SessionControl

public static class SessionControl.MainContext extends Object
Represents a main context for which a "current" subcontext can be assigned. This implementation only consider an item type as different main contexts, but it is possible to create subclasses of this calls for further division of main contexts.
Since:
3.20
See Also:
  • Field Details

    • item

      private final Item item
  • Constructor Details

    • MainContext

      public MainContext(Item item)
  • Method Details

    • item

      public Item item()
      Get the item of this main context.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object