类 YesNoType

    • 字段详细资料

      • INSTANCE

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

      • YesNoType

        public YesNoType()
    • 方法详细资料

      • getName

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

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

        public String objectToSQLString​(Boolean 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<Boolean>
        参数:
        value - The value to convert
        dialect - The SQL dialect
        返回:
        The value's string representation
        抛出:
        Exception - Indicates an issue converting the value to literal string.