Best code examples for Hibernate ORM CollectionRegion class (org.hibernate.cache.spi.CollectionRegion)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM CollectionRegion class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Hibernate ORM CollectionRegion examples from Open Source projects
This code example shows how to use the following methods: contains, put
	/** 
	 * {@inheritDoc} 
	 */ 
	public boolean putFromLoad(Object key, Object value, long txTimestamp, Object version, boolean minimalPutOverride) 
			throws CacheException { 
		if ( minimalPutOverride && region.contains( key ) ) { 
			return false; 
		} 
		else { 
			region.put( key, value ); 
			return true; 
		} 
	} 
 
	/** 
	 * Throws UnsupportedOperationException since this cache is read-only 
	 * 
	 * @throws UnsupportedOperationException always 
	 */ 
	public SoftLock lockItem(Object key, Object version) throws UnsupportedOperationException { 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: contains, put
	/** 
	 * {@inheritDoc} 
	 */ 
	public boolean putFromLoad(Object key, Object value, long txTimestamp, Object version, boolean minimalPutOverride) 
			throws CacheException { 
		if ( minimalPutOverride && region.contains( key ) ) { 
			return false; 
		} 
		else { 
			region.put( key, value ); 
			return true; 
		} 
	} 
 
	/** 
	 * Since this is a non-strict read/write strategy item locking is not used. 
	 */ 
	public SoftLock lockItem(Object key, Object version) throws CacheException { 
		return null; 
	} 
Full Snippet Info
5
CodeRank