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

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

Best Java code snippets using org.hibernate.engine.spi.SessionImplementor.setProperty (Showing top 4 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 setProperty(String propertyName, Object value) {
  delegate.setProperty( propertyName, value );
}
origin: org.hibernate.orm/hibernate-core

@Override
public void setProperty(String propertyName, Object value) {
  delegate.setProperty( propertyName, value );
}
origin: hibernate/hibernate-search

workPlanPerTransaction = new HashMap<>();
reference = new TransientReference<>( workPlanPerTransaction );
sessionImplementor.setProperty( WORK_PLAN_PER_TRANSACTION_MAP_KEY, reference );
origin: hibernate/hibernate-search

/**
 * @param sessionImplementor A Hibernate session
 *
 * @return The {@link HibernateOrmSearchManager} to use within the context of the given session.
 */
@SuppressWarnings("unchecked")
public HibernateOrmSearchManager getSearchManager(SessionImplementor sessionImplementor) {
  TransientReference<HibernateOrmSearchManager> reference =
      (TransientReference<HibernateOrmSearchManager>) sessionImplementor.getProperties().get( SEARCH_MANAGER_KEY );
  HibernateOrmSearchManager searchManager = reference == null ? null : reference.get();
  if ( searchManager == null ) {
    searchManager = getMapping().createSearchManager( sessionImplementor );
    reference = new TransientReference<>( searchManager );
    sessionImplementor.setProperty( SEARCH_MANAGER_KEY, reference );
    // Make sure we will ultimately close the query manager
    sessionImplementor.getEventListenerManager().addListener( new SearchManagerClosingListener( sessionImplementor ) );
  }
  return searchManager;
}
org.hibernate.engine.spiSessionImplementorsetProperty

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

  • Creating JSON documents from java classes using gson
  • getSharedPreferences (Context)
  • getContentResolver (Context)
  • onCreateOptionsMenu (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JComboBox (javax.swing)
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