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

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

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

@Override
public Map<String, Object> getProperties() {
  return delegate.getProperties();
}
origin: hibernate/hibernate-search

  @Override
  public void end() {
    TransientReference<HibernateOrmSearchManager> reference =
        (TransientReference<HibernateOrmSearchManager>) sessionImplementor.getProperties().get( SEARCH_MANAGER_KEY );
    HibernateOrmSearchManager searchManager = reference == null ? null : reference.get();
    if ( searchManager != null ) {
      searchManager.close();
    }
  }
}
origin: hibernate/hibernate-search

final Transaction transactionIdentifier = sessionImplementor.accessTransaction();
TransientReference<Map<Transaction, PojoWorkPlan>> reference =
    (TransientReference<Map<Transaction, PojoWorkPlan>>) sessionImplementor.getProperties()
        .get( WORK_PLAN_PER_TRANSACTION_MAP_KEY );
Map<Transaction, PojoWorkPlan> workPlanPerTransaction = reference == null ? null : reference.get();
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.spiSessionImplementorgetProperties

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
  • startActivity (Activity)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • JOptionPane (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