类 DateType

    • 字段详细资料

      • INSTANCE

        public static final DateType INSTANCE
    • 构造器详细资料

      • DateType

        public DateType()
    • 方法详细资料

      • getName

        public String getName()
        从接口复制的说明: Type
        Returns the abbreviated name of the type.
        指定者:
        getName 在接口中 Type
        返回:
        String the Hibernate type name
      • objectToSQLString

        public String objectToSQLString​(Date value,
                                        Dialect dialect)
                                 throws Exception
        从接口复制的说明: LiteralType
        Convert the value into a string representation, suitable for embedding in an SQL statement as a literal.
        指定者:
        objectToSQLString 在接口中 LiteralType<Date>
        参数:
        value - The value to convert
        dialect - The SQL dialect
        返回:
        The value's string representation
        抛出:
        Exception - Indicates an issue converting the value to literal string.
      • stringToObject

        public Date stringToObject​(String xml)
        从接口复制的说明: IdentifierType
        Convert the value from the mapping file to a Java object.
        指定者:
        stringToObject 在接口中 IdentifierType<Date>
        参数:
        xml - the value of discriminator-value or unsaved-value attribute
        返回:
        The converted value of the string representation.