Class MySQLUTF8SupportInterceptor
java.lang.Object
org.hibernate.EmptyInterceptor
com.atlassian.confluence.impl.content.encoding.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:
-
Field Summary
Fields inherited from class org.hibernate.EmptyInterceptor
INSTANCE
-
Constructor Summary
ConstructorsConstructorDescriptionMySQLUTF8SupportInterceptor
(SingleConnectionProvider databaseHelper, com.atlassian.config.db.HibernateConfig hibernateConfig) -
Method Summary
Modifier and TypeMethodDescriptionboolean
onFlushDirty
(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, org.hibernate.type.Type[] types) boolean
onSave
(Object entity, Serializable id, Object[] state, String[] propertyNames, org.hibernate.type.Type[] types) Methods inherited from class org.hibernate.EmptyInterceptor
afterTransactionBegin, afterTransactionCompletion, beforeTransactionCompletion, findDirty, getEntity, getEntityName, instantiate, isTransient, onCollectionRecreate, onCollectionRemove, onCollectionUpdate, onDelete, onLoad, onPrepareStatement, postFlush, preFlush
-
Constructor Details
-
MySQLUTF8SupportInterceptor
public MySQLUTF8SupportInterceptor(SingleConnectionProvider databaseHelper, com.atlassian.config.db.HibernateConfig hibernateConfig)
-
-
Method Details
-
onFlushDirty
public boolean onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, org.hibernate.type.Type[] types) - Specified by:
onFlushDirty
in interfaceorg.hibernate.Interceptor
- Overrides:
onFlushDirty
in classorg.hibernate.EmptyInterceptor
-
onSave
public boolean onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, org.hibernate.type.Type[] types) - Specified by:
onSave
in interfaceorg.hibernate.Interceptor
- Overrides:
onSave
in classorg.hibernate.EmptyInterceptor
-