Class LongType

    • Field Detail

      • INSTANCE

        public static final LongType INSTANCE
    • Constructor Detail

      • LongType

        public LongType()
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: Type
        Returns the abbreviated name of the type.
        Specified by:
        getName in interface Type
        Returns:
        String the Hibernate type name
      • stringToObject

        public Long stringToObject​(String xml)
                            throws Exception
        Description copied from interface: IdentifierType
        Convert the value from the mapping file to a Java object.
        Specified by:
        stringToObject in interface IdentifierType<Long>
        Parameters:
        xml - the value of discriminator-value or unsaved-value attribute
        Returns:
        The converted value of the string representation.
        Throws:
        Exception - Indicates a problem converting from the string
      • getComparator

        public Comparator<Long> getComparator()
        Description copied from interface: VersionType
        Get a comparator for version values.
        Specified by:
        getComparator in interface VersionType<Long>
        Returns:
        The comparator to use to compare different version values.
      • objectToSQLString

        public String objectToSQLString​(Long value,
                                        Dialect dialect)
                                 throws Exception
        Description copied from interface: LiteralType
        Convert the value into a string representation, suitable for embedding in an SQL statement as a literal.
        Specified by:
        objectToSQLString in interface LiteralType<Long>
        Parameters:
        value - The value to convert
        dialect - The SQL dialect
        Returns:
        The value's string representation
        Throws:
        Exception - Indicates an issue converting the value to literal string.