类 EnumType<T extends Enum>

    • 构造器详细资料

      • EnumType

        public EnumType()
    • 方法详细资料

      • sqlTypes

        public int[] sqlTypes()
        从接口复制的说明: UserType
        Return the SQL type codes for the columns mapped by this type. The codes are defined on java.sql.Types.
        指定者:
        sqlTypes 在接口中 UserType
        返回:
        int[] the typecodes
        另请参阅:
        Types
      • returnedClass

        public Class<? extends Enum> returnedClass()
        从接口复制的说明: UserType
        The class returned by nullSafeGet().
        指定者:
        returnedClass 在接口中 UserType
        返回:
        Class
      • deepCopy

        public Object deepCopy​(Object value)
                        throws HibernateException
        从接口复制的说明: UserType
        Return a deep copy of the persistent state, stopping at entities and at collections. It is not necessary to copy immutable objects, or null values, in which case it is safe to simply return the argument.
        指定者:
        deepCopy 在接口中 UserType
        参数:
        value - the object to be cloned, which may be null
        返回:
        Object a copy
        抛出:
        HibernateException
      • isMutable

        public boolean isMutable()
        从接口复制的说明: UserType
        Are objects of this type mutable?
        指定者:
        isMutable 在接口中 UserType
        返回:
        boolean
      • disassemble

        public Serializable disassemble​(Object value)
                                 throws HibernateException
        从接口复制的说明: UserType
        Transform the object into its cacheable representation. At the very least this method should perform a deep copy if the type is mutable. That may not be enough for some implementations, however; for example, associations must be cached as identifier values. (optional operation)
        指定者:
        disassemble 在接口中 UserType
        参数:
        value - the object to be cached
        返回:
        a cacheable representation of the object
        抛出:
        HibernateException
      • assemble

        public Object assemble​(Serializable cached,
                               Object owner)
                        throws HibernateException
        从接口复制的说明: UserType
        Reconstruct an object from the cacheable representation. At the very least this method should perform a deep copy if the type is mutable. (optional operation)
        指定者:
        assemble 在接口中 UserType
        参数:
        cached - the object to be cached
        owner - the owner of the cached object
        返回:
        a reconstructed object from the cacheable representation
        抛出:
        HibernateException
      • replace

        public Object replace​(Object original,
                              Object target,
                              Object owner)
                       throws HibernateException
        从接口复制的说明: UserType
        During merge, replace the existing (target) value in the entity we are merging to with a new (original) value from the detached entity we are merging. For immutable objects, or null values, it is safe to simply return the first parameter. For mutable objects, it is safe to return a copy of the first parameter. For objects with component values, it might make sense to recursively replace component values.
        指定者:
        replace 在接口中 UserType
        参数:
        original - the value from the detached entity being merged
        target - the value in the managed entity
        返回:
        the value to be merged
        抛出:
        HibernateException
      • toLoggableString

        public String toLoggableString​(Object value,
                                       SessionFactoryImplementor factory)
        从接口复制的说明: LoggableUserType
        Generate a loggable string representation of the collection (value).
        指定者:
        toLoggableString 在接口中 LoggableUserType
        参数:
        value - The collection to be logged; guaranteed to be non-null and initialized.
        factory - The factory.
        返回:
        The loggable string representation.
      • isOrdinal

        public boolean isOrdinal()