Class MySQLUTF8SupportInterceptor

  • All Implemented Interfaces:
    Serializable, org.hibernate.Interceptor

    public class MySQLUTF8SupportInterceptor
    extends org.hibernate.EmptyInterceptor
    A Hibernate Interceptor to validate MySQL Content Support as per its collation setting.
    Since:
    7.3
    See Also:
    Serialized Form
    • Constructor Detail

      • MySQLUTF8SupportInterceptor

        public MySQLUTF8SupportInterceptor​(SingleConnectionProvider databaseHelper,
                                           com.atlassian.config.db.HibernateConfig hibernateConfig)
    • Method Detail

      • onFlushDirty

        public boolean onFlushDirty​(Object entity,
                                    Serializable id,
                                    Object[] currentState,
                                    Object[] previousState,
                                    String[] propertyNames,
                                    org.hibernate.type.Type[] types)
        Specified by:
        onFlushDirty in interface org.hibernate.Interceptor
        Overrides:
        onFlushDirty in class org.hibernate.EmptyInterceptor
      • onSave

        public boolean onSave​(Object entity,
                              Serializable id,
                              Object[] state,
                              String[] propertyNames,
                              org.hibernate.type.Type[] types)
        Specified by:
        onSave in interface org.hibernate.Interceptor
        Overrides:
        onSave in class org.hibernate.EmptyInterceptor