Codota Logo
EntityRegionAccessStrategy.get
Code IndexAdd Codota to your IDE (free)

How to use
get
method
in
org.hibernate.cache.spi.access.EntityRegionAccessStrategy

Best Java code snippets using org.hibernate.cache.spi.access.EntityRegionAccessStrategy.get (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: org.hibernate/com.springsource.org.hibernate.core

private boolean isCached(EntityKey entityKey, EntityPersister persister) {
  if ( persister.hasCache() ) {
    CacheKey key = context.getSession().generateCacheKey(
        entityKey.getIdentifier(),
        persister.getIdentifierType(),
        entityKey.getEntityName()
    );
    return persister.getCacheAccessStrategy().get( key, context.getSession().getTimestamp() ) != null;
  }
  return false;
}
origin: org.hibernate/com.springsource.org.hibernate

    persister.getRootEntityName()
);
Object ce = persister.getCacheAccessStrategy().get( ck, source.getTimestamp() );
if ( factory.getStatistics().isStatisticsEnabled() ) {
  if ( ce == null ) {
origin: org.hibernate/com.springsource.org.hibernate.core

    persister.getRootEntityName()
);
Object ce = persister.getCacheAccessStrategy().get( ck, source.getTimestamp() );
if ( factory.getStatistics().isStatisticsEnabled() ) {
  if ( ce == null ) {
origin: org.hibernate/com.springsource.org.hibernate

private boolean isCached(EntityKey entityKey, EntityPersister persister) {
  if ( persister.hasCache() ) {
    CacheKey key = context.getSession().generateCacheKey(
        entityKey.getIdentifier(),
        persister.getIdentifierType(),
        entityKey.getEntityName()
    );
    return persister.getCacheAccessStrategy().get( key, context.getSession().getTimestamp() ) != null;
  }
  return false;
}
origin: org.hibernate/com.springsource.org.hibernate.core

if ( getCacheAccessStrategy().get( ck, session.getTimestamp() ) != null ) {
  return Boolean.FALSE;
origin: org.hibernate/com.springsource.org.hibernate

public Object initializeLazyProperty(String fieldName, Object entity, SessionImplementor session)
    throws HibernateException {
  final Serializable id = session.getContextEntityIdentifier( entity );
  final EntityEntry entry = session.getPersistenceContext().getEntry( entity );
  if ( entry == null ) {
    throw new HibernateException( "entity is not associated with the session: " + id );
  }
  if ( LOG.isTraceEnabled() ) {
    LOG.tracev( "Initializing lazy properties of: {0}, field access: {1}", MessageHelper.infoString( this, id, getFactory() ), fieldName );
  }
  if ( hasCache() ) {
    CacheKey cacheKey = session.generateCacheKey( id, getIdentifierType(), getEntityName() );
    Object ce = getCacheAccessStrategy().get( cacheKey, session.getTimestamp() );
    if (ce!=null) {
      CacheEntry cacheEntry = (CacheEntry) getCacheEntryStructure().destructure(ce, factory);
      if ( !cacheEntry.areLazyPropertiesUnfetched() ) {
        //note early exit here:
        return initializeLazyPropertiesFromCache( fieldName, entity, session, entry, cacheEntry );
      }
    }
  }
  return initializeLazyPropertiesFromDatastore( fieldName, entity, session, id, entry );
}
origin: org.hibernate/com.springsource.org.hibernate.core

public Object initializeLazyProperty(String fieldName, Object entity, SessionImplementor session)
    throws HibernateException {
  final Serializable id = session.getContextEntityIdentifier( entity );
  final EntityEntry entry = session.getPersistenceContext().getEntry( entity );
  if ( entry == null ) {
    throw new HibernateException( "entity is not associated with the session: " + id );
  }
  if ( LOG.isTraceEnabled() ) {
    LOG.tracev( "Initializing lazy properties of: {0}, field access: {1}", MessageHelper.infoString( this, id, getFactory() ), fieldName );
  }
  if ( hasCache() ) {
    CacheKey cacheKey = session.generateCacheKey( id, getIdentifierType(), getEntityName() );
    Object ce = getCacheAccessStrategy().get( cacheKey, session.getTimestamp() );
    if (ce!=null) {
      CacheEntry cacheEntry = (CacheEntry) getCacheEntryStructure().destructure(ce, factory);
      if ( !cacheEntry.areLazyPropertiesUnfetched() ) {
        //note early exit here:
        return initializeLazyPropertiesFromCache( fieldName, entity, session, entry, cacheEntry );
      }
    }
  }
  return initializeLazyPropertiesFromDatastore( fieldName, entity, session, id, entry );
}
origin: org.hibernate/com.springsource.org.hibernate

if ( getCacheAccessStrategy().get( ck, session.getTimestamp() ) != null ) {
  return Boolean.FALSE;
org.hibernate.cache.spi.accessEntityRegionAccessStrategyget

Javadoc

Get the wrapped entity cache region

Popular methods of EntityRegionAccessStrategy

  • getRegion
    Get the wrapped entity cache region
  • afterInsert
  • afterUpdate
  • insert
  • update
  • evict
  • evictAll
  • lockItem
  • lockRegion
  • putFromLoad
  • remove
  • removeAll
  • remove,
  • removeAll,
  • unlockItem,
  • unlockRegion

Popular in Java

  • Start an intent from android
  • getSharedPreferences (Context)
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
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