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

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

Best Java code snippets using org.hibernate.engine.spi.SessionImplementor.getEnabledFilters (Showing top 7 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: org.jboss.seam/jboss-seam

public Map getEnabledFilters()
{
 return ((SessionImplementor) delegate).getEnabledFilters();
}
origin: org.hibernate/com.springsource.org.hibernate

public boolean isAffectedByEnabledFilters(SessionImplementor session) {
  return filterHelper.isAffectedBy( session.getEnabledFilters() ) ||
      ( isManyToMany() && manyToManyFilterHelper.isAffectedBy( session.getEnabledFilters() ) );
}
origin: org.hibernate/com.springsource.org.hibernate.core

public boolean isAffectedByEnabledFilters(SessionImplementor session) {
  return filterHelper.isAffectedBy( session.getEnabledFilters() ) ||
      ( isManyToMany() && manyToManyFilterHelper.isAffectedBy( session.getEnabledFilters() ) );
}
origin: org.hibernate/com.springsource.org.hibernate

protected CollectionInitializer getAppropriateInitializer(Serializable key, SessionImplementor session) {
  if ( queryLoaderName != null ) {
    // if there is a user-specified loader, return that
    // TODO: filters!?
    return initializer;
  }
  CollectionInitializer subselectInitializer = getSubselectInitializer( key, session );
  if ( subselectInitializer != null ) {
    return subselectInitializer;
  }
  else if ( session.getEnabledFilters().isEmpty() ) {
    return initializer;
  }
  else {
    return createCollectionInitializer( session.getLoadQueryInfluencers() );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

protected CollectionInitializer getAppropriateInitializer(Serializable key, SessionImplementor session) {
  if ( queryLoaderName != null ) {
    // if there is a user-specified loader, return that
    // TODO: filters!?
    return initializer;
  }
  CollectionInitializer subselectInitializer = getSubselectInitializer( key, session );
  if ( subselectInitializer != null ) {
    return subselectInitializer;
  }
  else if ( session.getEnabledFilters().isEmpty() ) {
    return initializer;
  }
  else {
    return createCollectionInitializer( session.getLoadQueryInfluencers() );
  }
}
origin: org.hibernate/com.springsource.org.hibernate.core

if ( !session.getEnabledFilters().isEmpty() && persister.isAffectedByEnabledFilters( session ) ) {
origin: org.hibernate/com.springsource.org.hibernate

if ( !session.getEnabledFilters().isEmpty() && persister.isAffectedByEnabledFilters( session ) ) {
org.hibernate.engine.spiSessionImplementorgetEnabledFilters

Javadoc

Return the currently enabled filters. The filter map is keyed by filter name, with values corresponding to the org.hibernate.internal.FilterImplinstance.

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

  • Finding current android device location
  • putExtra (Intent)
  • onRequestPermissionsResult (Fragment)
  • getApplicationContext (Context)
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • JComboBox (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
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