Class PrimaryType

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

    @Embeddable
    public class PrimaryType
    extends java.lang.Object
    implements java.lang.Comparable<PrimaryType>, java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • PrimaryType

        protected PrimaryType()
    • Method Detail

      • getCode

        public java.lang.String getCode()
      • getCharCode

        public char getCharCode()
      • setCharCode

        public void setCharCode​(char collType)
      • hashCode

        public int hashCode()
        Hibernate objects should not have any specific hashCode() implementation since it should always give the same object for the same row anyways.
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • compareTo

        public int compareTo​(PrimaryType collType)
        Specified by:
        compareTo in interface java.lang.Comparable<PrimaryType>
      • toString

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

        public boolean isLessThan​(PrimaryType collType)
      • isGreaterThan

        public boolean isGreaterThan​(PrimaryType collType)
      • get

        public static PrimaryType get​(java.lang.String code)
      • getAllTypes

        public static java.util.List<PrimaryType> getAllTypes()