Codota Logo
SessionImplementor.setHibernateFlushMode
Code IndexAdd Codota to your IDE (free)

How to use
setHibernateFlushMode
method
in
org.hibernate.engine.spi.SessionImplementor

Best Java code snippets using org.hibernate.engine.spi.SessionImplementor.setHibernateFlushMode (Showing top 6 results out of 315)

  • Common ways to obtain SessionImplementor
private void myMethod () {
SessionImplementor s =
  • Codota IconEntityManager entityManager;entityManager.unwrap(SessionImplementor.class)
  • Codota IconFlushEntityEvent flushEntityEvent;flushEntityEvent.getSession()
  • Codota IconLazyInitializer lazyInitializer;lazyInitializer.getSession()
  • Smart code suggestions by Codota
}
origin: hibernate/hibernate-orm

@Override
public void setFlushMode(FlushMode fm) {
  delegate.setHibernateFlushMode( fm );
}
origin: hibernate/hibernate-orm

@Override
public void setHibernateFlushMode(FlushMode flushMode) {
  delegate.setHibernateFlushMode( flushMode );
}
origin: org.hibernate.orm/hibernate-core

@Override
public void setHibernateFlushMode(FlushMode flushMode) {
  delegate.setHibernateFlushMode( flushMode );
}
origin: org.hibernate.orm/hibernate-core

@Override
public void setFlushMode(FlushMode fm) {
  delegate.setHibernateFlushMode( fm );
}
origin: hibernate/hibernate-search

@Override
public void run() {
  log.trace( "started" );
  SessionImplementor session = (SessionImplementor) sessionFactory
      .withOptions()
      .tenantIdentifier( tenantId )
      .openSession();
  session.setHibernateFlushMode( FlushMode.MANUAL );
  session.setCacheMode( cacheMode );
  session.setDefaultReadOnly( true );
  try {
    loadAllFromQueue( session );
  }
  catch (Exception exception) {
    String logMessage = log.massIndexerExceptionWhileTransformingIds();
    //TODO: use an errorHandler instance
    // errorHandler.handleException( logMessage, exception );
    // temporary re-throw the exception as a Runtime
    throw new RuntimeException( logMessage, exception );
  }
  finally {
    producerEndSignal.countDown();
    session.close();
  }
  log.trace( "finished" );
}
origin: hibernate/hibernate-search

@Override
public void run() {
  log.trace( "started" );
  SessionImplementor session = (SessionImplementor) sessionFactory
      .withOptions()
      .tenantIdentifier( tenantId )
      .openSession();
  session.setHibernateFlushMode( FlushMode.MANUAL );
  session.setCacheMode( cacheMode );
  session.setDefaultReadOnly( true );
  try {
    loadAllFromQueue( session );
  }
  catch (Exception exception) {
    errorHandler.handleException( log.massIndexerExceptionWhileTransformingIds(), exception );
  }
  finally {
    producerEndSignal.countDown();
    session.close();
  }
  log.trace( "finished" );
}
org.hibernate.engine.spiSessionImplementorsetHibernateFlushMode

Popular methods of SessionImplementor

  • getFactory
    Get the creating SessionFactoryImplementor
  • getTransactionCoordinator
  • connection
  • getPersistenceContext
    Get the persistence context for this session
  • getLoadQueryInfluencers
    Get the load query influencers associated with this session.
  • isTransactionInProgress
    Does this Session have an active Hibernate transaction or is there a JTA transaction in progress?
  • getEntityPersister
    Get the EntityPersister for any instance
  • getJdbcCoordinator
  • isClosed
    Determine whether the session is closed. Provided separately from #isOpen() as this method does not
  • flush
  • getTenantIdentifier
    Match te method on org.hibernate.Session and org.hibernate.StatelessSession
  • generateEntityKey
  • getTenantIdentifier,
  • generateEntityKey,
  • getContextEntityIdentifier,
  • isOpen,
  • bestGuessEntityName,
  • getFlushMode,
  • getSessionFactory,
  • guessEntityName,
  • immediateLoad,
  • initializeCollection

Popular in Java

  • Reading from database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now