congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SessionImplementor.evict
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: hibernate/hibernate-orm

@Override
public void evict(Object object) {
  delegate.evict( object );
}
origin: org.hibernate.orm/hibernate-core

@Override
public void evict(Object object) {
  delegate.evict( object );
}
origin: hibernate/hibernate-search

public static Object load(EntityInfo entityInfo, SessionImplementor session) {
  Object maybeProxy = executeLoad( entityInfo, session );
  try {
    HibernateHelper.initialize( maybeProxy );
  }
  catch (RuntimeException e) {
    if ( LoaderHelper.isObjectNotFoundException( e ) ) {
      log.debugf(
          "Object found in Search index but not in database: %s with id %s",
          entityInfo.getType().getName(), entityInfo.getId()
      );
      session.evict( maybeProxy );
      maybeProxy = null;
    }
    else {
      throw e;
    }
  }
  return maybeProxy;
}
org.hibernate.engine.spiSessionImplementorevict

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
  • getSystemService (Context)
  • setScale (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Menu (java.awt)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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