Tabnine Logo
SessionImplementor.setHibernateFlushMode
Code IndexAdd Tabnine 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)

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
  • runOnUiThread (Activity)
  • startActivity (Activity)
  • scheduleAtFixedRate (Timer)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JFileChooser (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now