Tabnine Logo
SessionImplementor.getTenantIdentifier
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: hibernate/hibernate-orm

@Override
public String getTenantIdentifier() {
  return delegate.getTenantIdentifier();
}
origin: hibernate/hibernate-orm

    persister,
    source.getFactory(),
    source.getTenantIdentifier()
);
lock = persister.getCacheAccessStrategy().lockItem( source, ck, null );
origin: hibernate/hibernate-orm

private Object getFromSharedCache(
    final LoadEvent event,
    final EntityPersister persister,
    SessionImplementor source) {
  final EntityDataAccess cache = persister.getCacheAccessStrategy();
  final Object ck = cache.generateCacheKey(
      event.getEntityId(),
      persister,
      source.getFactory(),
      source.getTenantIdentifier()
  );
  final Object ce = CacheHelper.fromSharedCache( source, ck, persister.getCacheAccessStrategy() );
  if ( source.getFactory().getStatistics().isStatisticsEnabled() ) {
    if ( ce == null ) {
      source.getFactory().getStatistics().entityCacheMiss(
          StatsHelper.INSTANCE.getRootEntityRole( persister ),
          cache.getRegion().getName()
      );
    }
    else {
      source.getFactory().getStatistics().entityCacheHit(
          StatsHelper.INSTANCE.getRootEntityRole( persister ),
          cache.getRegion().getName()
      );
    }
  }
  return ce;
}
origin: hibernate/hibernate-orm

final Object ck = cacheAccessStrategy.generateCacheKey( id, persister, factory, source.getTenantIdentifier() );
final Object ce = CacheHelper.fromSharedCache( source, ck, persister.getCacheAccessStrategy() );
origin: hibernate/hibernate-search

@Override
public String getTenantIdentifier() {
  return sessionImplementor.getTenantIdentifier();
}
origin: org.hibernate.orm/hibernate-core

@Override
public String getTenantIdentifier() {
  return delegate.getTenantIdentifier();
}
origin: riotfamily/riot

@Override
public String getTenantIdentifier() {
  return session.getTenantIdentifier();
}
origin: hibernate/hibernate-search

private void createAndPerformWork(IndexedTypeIdentifier type, Serializable id, WorkType workType) {
  Work work = new Work( delegate.getTenantIdentifier(), type, id, workType );
  getSearchIntegrator().getWorker().performWork( work, transactionContext );
}
origin: org.hibernate/com.springsource.org.hibernate

this.tenantId = session.getTenantIdentifier();
origin: org.hibernate/com.springsource.org.hibernate.core

this.tenantId = session.getTenantIdentifier();
origin: org.hibernate/com.springsource.org.hibernate

persister,
persister.getEntityMode(),
session.getTenantIdentifier(),
disableVersionIncrement,
lazyPropertiesAreUnfetched,
origin: org.hibernate/com.springsource.org.hibernate.core

persister,
persister.getEntityMode(),
session.getTenantIdentifier(),
disableVersionIncrement,
lazyPropertiesAreUnfetched,
origin: com.hazelcast/hazelcast-all

this.tenantId = session.getTenantIdentifier();
origin: com.hazelcast/hazelcast-hibernate5

this.tenantId = session.getTenantIdentifier();
origin: com.hazelcast/hazelcast-hibernate52

this.tenantId = session.getTenantIdentifier();
origin: hibernate/hibernate-search

/**
 * Constructs a  <code>FullTextQueryImpl</code> instance.
 *
 * @param hSearchQuery The query
 * @param session Access to the Hibernate session.
 * @param parameterMetadata Additional query metadata.
 */
public FullTextQueryImpl(HSQuery hSearchQuery,
    SessionImplementor session,
    ParameterMetadata parameterMetadata) {
  //TODO handle flushMode
  super( session, parameterMetadata );
  this.session = session;
  ExtendedSearchIntegrator extendedIntegrator = getExtendedSearchIntegrator();
  this.objectLookupMethod = extendedIntegrator.getDefaultObjectLookupMethod();
  this.databaseRetrievalMethod = extendedIntegrator.getDefaultDatabaseRetrievalMethod();
  this.hSearchQuery = hSearchQuery;
  this.hSearchQuery
      .timeoutExceptionFactory( new FullTextQueryTimeoutExceptionFactory() )
      .tenantIdentifier( session.getTenantIdentifier() );
}
origin: org.hibernate/com.springsource.org.hibernate

    maxRows,
    filterKeys,
    session.getTenantIdentifier(),
    customTransformer
);
origin: org.hibernate.orm/hibernate-core

    entityDescriptor.getHierarchy(),
    source.getFactory(),
    source.getTenantIdentifier()
);
lock = cacheAccess.lockItem( source, ck, null );
origin: org.hibernate.orm/hibernate-core

private Object getFromSharedCache(
    final LoadEvent event,
    final EntityTypeDescriptor entityDescriptor,
    SessionImplementor source) {
  final EntityDataAccess cacheAccess = entityDescriptor.getHierarchy().getEntityCacheAccess();
  final Object ck = cacheAccess.generateCacheKey(
      event.getEntityId(),
      entityDescriptor.getHierarchy(),
      source.getFactory(),
      source.getTenantIdentifier()
  );
  final Object ce = CacheHelper.fromSharedCache( source, ck, cacheAccess );
  if ( source.getFactory().getStatistics().isStatisticsEnabled() ) {
    if ( ce == null ) {
      source.getFactory().getStatistics().entityCacheMiss(
          entityDescriptor.getNavigableRole(),
          cacheAccess.getRegion().getName()
      );
    }
    else {
      source.getFactory().getStatistics().entityCacheHit(
          entityDescriptor.getNavigableRole(),
          cacheAccess.getRegion().getName()
      );
    }
  }
  return ce;
}
origin: org.hibernate.orm/hibernate-core

final Object ck = cacheAccess.generateCacheKey( collectionKey, collectionDescriptor, factory, source.getTenantIdentifier() );
final Object ce = CacheHelper.fromSharedCache( source, ck, cacheAccess );
org.hibernate.engine.spiSessionImplementorgetTenantIdentifier

Javadoc

Match te method on org.hibernate.Session and org.hibernate.StatelessSession

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
  • generateEntityKey
  • getContextEntityIdentifier
  • generateEntityKey,
  • getContextEntityIdentifier,
  • isOpen,
  • bestGuessEntityName,
  • getFlushMode,
  • getSessionFactory,
  • guessEntityName,
  • immediateLoad,
  • initializeCollection

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • getApplicationContext (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • JFrame (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top plugins for WebStorm
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