Class PostgresInterceptor

java.lang.Object
org.hibernate.EmptyInterceptor
org.bonitasoft.engine.persistence.PostgresInterceptor
All Implemented Interfaces:
Serializable, org.hibernate.Interceptor

public class PostgresInterceptor extends org.hibernate.EmptyInterceptor
Make search case insensitive in postgres by using `ilike` instead of `like`
See Also:
  • Field Summary

    Fields inherited from class org.hibernate.EmptyInterceptor

    INSTANCE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class org.hibernate.EmptyInterceptor

    afterTransactionBegin, afterTransactionCompletion, beforeTransactionCompletion, findDirty, getEntity, getEntityName, instantiate, isTransient, onCollectionRecreate, onCollectionRemove, onCollectionUpdate, onDelete, onFlushDirty, onLoad, onSave, postFlush, preFlush

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PostgresInterceptor

      public PostgresInterceptor()
  • Method Details

    • onPrepareStatement

      public String onPrepareStatement(String sql)
      Specified by:
      onPrepareStatement in interface org.hibernate.Interceptor
      Overrides:
      onPrepareStatement in class org.hibernate.EmptyInterceptor