Class Slice

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Slice>

    public class Slice
    extends java.lang.Object
    implements java.lang.Comparable<Slice>, java.io.Serializable
    Represents a database slice of immutable logical name, a configuration and status. A Slice is uniquely identified by its logical name.
    Author:
    Pinaki Poddar
    See Also:
    Serialized Form
    • Constructor Detail

      • Slice

        public Slice​(java.lang.String name,
                     OpenJPAConfiguration conf)
        Supply the logical name and configuration.
    • Method Detail

      • getName

        public java.lang.String getName()
        Gets the immutable logical name.
      • setStatus

        public void setStatus​(Slice.Status status)
      • isActive

        public boolean isActive()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • compareTo

        public int compareTo​(Slice other)
        Specified by:
        compareTo in interface java.lang.Comparable<Slice>
      • equals

        public boolean equals​(java.lang.Object other)
        Equals by name.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object